PrintDoc
Viewer interaction, rendering and printing
Description
Prints the displayed document, optionally collecting the printer, page range, copy count and collation through the standard Windows print dialog. With ShowPrintDialog False every page goes straight to the default printer without any UI; the job itself is spooled through
Syntax
Delphi
Function TPDFlibViewer.PrintDoc(ShowPrintDialog: Boolean= True): Integer;Parameters
| ShowPrintDialog | True opens the standard Windows print dialog, False prints every page to the default printer directly; defaults to True |
|---|
Return values
| 0 | No document is open or the user cancelled the dialog |
|---|---|
| 1 | The job was handed to the print spooler |