Need help or advice?

Call us on
+44 (0) 2077 545 948

PDF Notes

Notes To PDF

Quickly and easily convert Notes to PDF. With only 2 lines of code any Notes / Domino content can be saved as PDF.

Download Now
How do I add page numbers?

There are a couple of ways to add page numbers to PDF files generated from DominoPDF.

1. Use HTMLHeader or HTMLFooter settings.

To add page numbering to a PDF you can control it via the settings option in the DoPDF() method.

Call DoPDF(sURL, sPDF, "HTMLFooter=Page {$PAGE} of {$PAGECOUNT ;BottomMargin=20")

The HTMLFooter= option controls the content of the footer with reserved tags for {$PAGE} and {$PAGECOUNT} and the BottomMargin= option controls the height of the footer area so the text is displayed correctly (by default in MM unless UseInches=True is specified).

2. Use DomPDFPages() and DomPDFAddText() methods.

If you want to add page numbers to a PDF after it has been created or add page numbers to any PDF (not necessarily created with DominoPDF) you can use a combination of the DomPDFPages() and DomPDFAddText() methods.

DomPDFPages() will get the page count of any PDF.

iPage = DomPDFPages(sPDF)

DomPDFAddText() can "stamp" text on any PDF.

for t = 1 to iPage
Call DomPDFAddText(sPDF, "Page " & CStr(t), CStr(t), 10, 10, 50, 0, 9)
next t

Comments (0)add
Write comment
smaller | bigger

busy
 

In the Spotlight

Quick And Easy Notes To PDF Conversion


+ Read More

PDF Forms For Lotus Domino: Compendia Implements DominoPDF

Compendia, a Primeapple partner in Norway, has implemented a stock / fund trading application using DominoPDF for FMG, a multi-manager fund company.
+ Read More

Lotus Notes Attachments To PDF

IBM Notes / Domino is an ideal platform for managing and storing a wide range of rich content, files, objects and attachments.
+ Read More

News Feed

Subscribe to the Primeapple RSS News Feed.