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

 

In the Spotlight

Lotus Domino migration to Documentum - Challenges and Solutions

article thumbnailErwin Verstraelan of EMD writes about the challenges he faced and the solutions he adopted whilst managing a Lotus Notes data migration to Documentum project for a major pharmaceutical company.
+ Read More

Procurement System using Domino and DominoPDF - Case Study from First Choice Airways

article thumbnailFirst Choice IT department developed a Procurement application to manage the entire cycle of operation. Jeff Harris of First Choice writes about his experience in building a centralized...
+ Read More

Domino to Exchange Migration: Tips using DominoPDF

article thumbnailDon Koepnick of JC Steele, a mid-sized US manufacturing company talks about his experience in managing a Lotus Domino to Microsoft Exchange migration project using DominoPDF.
+ Read More

News Feed

Subscribe to the Primeapple RSS News Feed.