DocPrintPDFΒΆ

DocPrintPDF prints the document pages to a PDF file.

bool = DocPrintPDF(hDoc, ssFile)
bool = DocPrintPDF(hDoc, ssFile, nStartPage, nEndPage)

Return Value

If the function succeeds, the return value is TRUE (1); otherwise it is FALSE (0).

Parameters

hDoc

Identifies the document.

ssFile

ssFile is the file name.

nStartPage

nStartPage is the page number of the first page to be printed, nStartPage >= 1.

nEndPage

nEndPage is the page number of the last page to be printed.

Comment

See File=>PDF-Export 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.

id-1148511