Different margins for first and last page in iText

2019-08-29 08:38发布

问题:

Is there a way to specify different margins for my first and last pages in iText? I have a large header to be placed in first page and a large footer to be present in the last page.

The trouble is when I position the footer absolutely the content of the page might overlap it because of the absolute positioning.

回答1:

yes. before creating last page, set margins and then call newpage() method of Document object.



标签: java itext