Category 2D interface, Object ProPDF

Function ProPDFExport


Description
Exports a file to PDF format.
Synopsis
#include <ProPDF.h>
ProErrorProPDFExport(
ProMdl model
/* (In)
The model to export. The model must be displayed in a window. This model must be loaded.
*/
ProPath output_file
/* (In)
The full path to the output file, including the extension.
*/
ProPDFOptions options
/* (In)
The options used to generate the PDF file.
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_BAD_INPUTSOne or more input arguments was invalid.
PRO_TK_INVALID_TYPEInvalid model type specified.
PRO_TK_NOT_DISPLAYEDModel not displayed
PRO_TK_CANT_WRITECannot find or write to the directory specified.
PRO_TK_NO_LICENSELicense for PDF export is not available.
PRO_TK_GENERAL_ERRORError occured while processing PDF creation.
PRO_TK_UNSUPPORTEDSupport not available on this platform.
PRO_TK_NO_PERMISSIONThe function does not have permission to operate on this model.
PRO_TK_BAD_CONTEXTPRO_PDF_ARCHIVE_1 passed for non 2D drawing export
and/or Design Test Mode is activeThe function is not available in this mode.

Manual References:

  1. Interface: Data Exchange: Exporting to PDF and U3D
  2. Interface: Data Exchange: Exporting to PDF and U3D