printGDIOverlay

Event at the end of each printed page.
[event] printGDIOverlay([in] LONG dc, [in] int pageNum, [in] int pageWidth, [in] int pageHeight, [in] int hDPI, [in] int vDPI)
This event is called at the end of each printed page. The event handler can use standard Windows GDI calls to add arbitrary overlays to the printed output.

The event will be called with the following arguments:

The GDI overlay callback is only called in GDI mode (i.e., for non-PostScript printers, or if printForceGDI has been set to true).
VB6:
Sub viewer_printGDIOverlay(ByVal dc As Long, ByVal pageNum As Long, _ ByVal pageWidth As Long, ByVal pageHeight As Long, _ ByVal hDPI As Long, ByVal vDPI As Long) ' draw overlay content using the HDC handle, dc ... End Sub
addPrintOverlayText