.. highlightlang:: us .. index:: DocPrintPDF .. _docprintpdf: DocPrintPDF =========== .. us.tag DocPrintPDF NOTREADYENGLISH DocSet New520 :ref:`DocPrintPDF` prints the document pages to a PDF file. .. function:: bool = DocPrintPDF(hDoc, ssFile) bool = DocPrintPDF(hDoc, ssFile, nStartPage, nEndPage) .. us.return **Return Value** If the function succeeds, the return value is TRUE (1); otherwise it is FALSE (0). .. us.params **Parameters** .. uparam:: hDoc Identifies the document. .. uparam:: ssFile *ssFile* is the file name. .. uparam:: nStartPage *nStartPage* is the page number of the first page to be printed, *nStartPage* ``>= 1``. .. uparam:: nEndPage *nEndPage* is the page number of the last page to be printed. .. us.comment **Comment** See :ref:`pdf-export` for instructions on how to install Ghostscript. .. us.example **Example** Print all document pages :: hDoc = GetParent(hPage); DocPrintPDF(hDoc, "c:/test.pdf", 1, 256); .. us.history **History** .. list-table:: :header-rows: 1 * - Version - Description * - 5.2.0 - New. .. seealso:: :ref:`overview-documents`, :ref:`DocCreate`, :ref:`PagePrint`, :ref:`AppSetPrinter`, :ref:`GetParent`, :ref:`filemore-file-functionssave-document-pages-as-a-pdf-file` :sub:`id-1148511`