Free Support Forum - aspose.com

PDF margin error's when printing

Hi,

I have set my page margins to:

PageMarginLeft="2cm"

But when i print the PDF on paper. i get a margin of 2.4 cm

I also tried to set PageMarginLeft="0cm" and i get a PDF that have indeed a margin of 0, but when i print it i get a margin of 0.5.

Even a PageMarginLeft="4cm" will print a margin of 4.5 cm

any idea why is there always a 0.5 cm extra when printing the PDF?

Regards,

Tjiper

Hello Tjiper,

We are looking into this matter and soon will udpate you with the status of this issue.

Dear Tjiper,

I have reproduced the problem and logged it as PDFNET-5541 in our defect tracking system. We will try our best to fix it ASAP and give you an update then. Thanks.

Best regards.

Hi Tjiper,

I tested this issue and found it is not a bug. This problem is related to printer setting. When I print the document with default setting I get the same result as your. But when I set "Page Scaling" to None and uncheck the "Auto-Rotate and Center", the margin in the paper is correct.

Hi forever,

thank you for the support. indeed it was caused by the page scalling and rotating.

Regards,