- Dennis Eisler
- PowerBuilder
- Tuesday, 19 December 2023 08:29 PM UTC
Good morning/evening. I am trying to use the new PB2022R2 PDF Builder feature to add page numbers and a table of contents to a new PDF document that I generate. The documentation that describes the feature (PDF Builder enhancements - - What's New (appeon.com)) mentions "Creating links in a PDF document that points to other areas of the document"
I have reviewed the examples that describe creating PDF documents (Examples - - Application Techniques (appeon.com)) but:
- Cannot get most of them to work
- Do not see a part where you can create a page number and how to reference that page number in a table of contents (TOC)
I also can't really see whether you can reference an imported datawindow in the same way that you can reference another page in the PDF Document. I have been able to use the PDF Builder datawindow import feature to create a PDF file that has the following format:
- Title page
- Main Table of Contents (a datawindow)
- Consolidated Summary Report
-- Each department from the main TOC
-- TOC for the department listing the financial statements
-- Consolidated summary for the dept
--- List of individual financial statement reports
So, it is a nested format and is made up of imported datawindow reports. From the help documentation on the Appeon site, I see that the PDF Document image contains a PDFPage object which contains the PDFText objects which I guess will be used for the page numbering. I do not see PDF Datawindow Import on the PDF Builder overview page (https://docs.appeon.com/pb2022r3/application_techniques/ch08s04s01.html) but each imported DW seems to be counted as individual PDF pages when I run a PDF pagecount.
Could anyone provide a simple example of a PDF builder script that:
- Adds a page number to an imported datawindow
- Creates a table of contents with a link to the imported datawindow's page
Thank you very much for any help or further documentation that you can provide!
Dennis
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.