1

Hello.

Dirst of all, thanx for this great script.

I am experiencing som problems:
1. I am setting margins but the text is outside of the PDF.
$html2pdf = new HTML2PDF( 'P','A4','en', true, 'UTF-8', array( 10, 10, 10, 10 ) );
<page style="font-family: freeserif" backtop="7mm" backbottom="7mm" backleft="10mm" backright="10mm">

2. I am creating an PDF with 5 pages and only text and the filesize is 1.6 MB, can i do something about it?

Thanx for any help

2

1. do you use table or div tag ? if yes, you must specify the width of all the elements

2. it is because you use a big font
Ancien pseudo : lolo

3

Thank you for the quick response.

1. Yes i use div's. That means, that i have to set width of all div's? i have noticed, that i have this problem only whne i specify the margins either in page tag or HTML2PDF contructor. If i dont specify it, then the text is not outside. Isnt there a option to specify max width of element? Or some "hack" in the code?

2. Thank you. I've changed it to another unicode font and its better.