PDFDocument: How to Add New Content to a Given Page

Originally published at: PDFDocument: How to Add New Content to a Given Page – Xojo Programming Blog

When we create a PDF document is impossible (in most of the cases) to anticipate how many pages it will have. And yet, that is something that we are going to need if, for example, we want to add a footer reflecting the current page number over the total of pages in the document. The solution is using the PageCount and CurrentPage properties in the PDFDocument class.

6 Likes