#1 2016-02-05 14:09:48

jeanmilost
Member
Registered: 2016-01-21
Posts: 35

How to select and draw again on a previously painted page?

Hello,

I encounter the following situation:
I created a PDF document from a source provided by an user. I don't know in advance nor the content of each page, which can contain many graphic elements, nor the number of pages that my PDF document will contain after the export. Now I want to add a page footer, that shows for each page the current page / total pages numbers. Because the export method is complex, I can not count the total of pages before exporting each page.

To paint the footer, I need to access again the VCL canvas of an already painted page, after all my pages were exported for the first time, because it's the only moment where I know the total page count. I seen that the page catalog is accessible from my PDF document, but I not found a way to select back a previously painted page in the document, and paint again some new text on it. What is the correct way to do that?

Regards

Offline

Board footer

Powered by FluxBB