Hi!
I switched to dompdf recently, I was using ufpdf before. I got used to the size of an A4 document when creating some invocies with tables. Now, when I set the paper size to A4 ( $dompdf->set_paper('a4', 'portrait'); ) I get a much bigger area.
I extended the write_log method with the paper size, it says it's A4, as I set it.
The cpdf_adapter.cls.php file states the size of the A4 is 595.28,841.89 points, as I got used to it.
When I open the generated pdf with pdf reader software, it says it's size is 8.27x11.69 in, that is the size of an A4 sheet.
Still, when I try to draw a rectangle to fill the sheet (just a div with a 1px border) I have to make it 791x1101 px big to match the paper size.
The bottom border is then about 20px from the bottom of the page, but if I try to increase the height of the div dompdf just adds one more blank page to the document, like there was an invisible bottom margin for the div, or padding for the page. There is no such, because I set it in the css.
@page { margin: 0in 0in 0in 0in;}
.oldal{width:791px; height:1101px; border:1px solid red;}
Please, help me, why is that happening? Is this size OK or should it be as defined?
Thanks,
Kornel