I am following the example to add a footer with the page number to a page “Headers and Footers Example” from the abcpdf documentation site.
The problem is that my pdf document has multiple pages with different orientations and different page sizes.
Mostly the pages are either portrait and A4 or landscape and A3 but there is a possibility the A3 could be in portrait.
Is there a way to easily put the footer in the correct part of the document for each of these pages, particularly given that once the document has been added it doesn’t seem that I am able to tell easily what orientation/page size is being used.
Currently I am building separate documents for each section and setting the orientation and then appending them to a master document.
I need to put the page number in the format "Page X of Y", I am able to get page numbers working correctly if I do it per sub document but I need it for the overall document