DocPrintPDF prints the document pages to a PDF file.
Return Value
If the function succeeds, the return value is TRUE (1); otherwise it is FALSE (0).
Parameters
Identifies the document.
ssFile is the file name.
nStartPage is the page number of the first page to be printed, nStartPage >= 1.
nEndPage is the page number of the last page to be printed.
Comment
See File=>More File Functions=>Save document pages as a PDF file for instructions on how to install Ghostscript.
Example
Print all document pages
hDoc = GetParent(hPage);
DocPrintPDF(hDoc, "c:/test.pdf", 1, 256);
History
| Version | Description |
|---|---|
| 5.2.0 | New. |
See also
Overview Documents, DocCreate, PagePrint, AppSetPrinter, GetParent, File=>More File Functions=>Save document pages as a PDF file
id-1148511