We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Creating PDF higher than 1 page does not take bottom margin settings

When printing html to PDF that has a table that is longer than 1 page, the page margins i specify are not kept.

This is my code:

Aspose.Pdf.Generator.Pdf pdf = new Aspose.Pdf.Generator.Pdf();
pdf.PageSetup.Margin.Outer = pdf.PageSetup.Margin.Inner = 0;
pdf.PageSetup.Margin.Top = pdf.PageSetup.Margin.Right = pdf.PageSetup.Margin.Left = pdf.PageSetup.Margin.Bottom = 10;

And I add my content using Text element that has html content to it.

But bottom margin appears not to work on multiple pages. Instead the content goes all the way to the end of the page, and even clipped under it in some cases.

Please let me know if you can reproduce, or if you need me to submit a sample html.

(Just simple html with simple table is all i got, have a lot of rows and some rows have multiple row text using br or div ).

Hi Shai,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Please share your complete sample code with HTML file to help us regenerate the exact issue at our end. This will help us figure out the issue.

Thank You & Best Regards,