Category 2D interface, Object ProPDF

Function ProPDFWithProfileExport


Description
Exports a file to PDF format using profile.
Synopsis
#include <ProPDF.h>
ProErrorProPDFWithProfileExport(
ProMdl model
/* (In)
The model to export. The model must be displayed in a window. Currently, this model must be a drawing. This model must be loaded.
*/
ProPath output_file
/* (In)
The full path to the output file, including the extension.
*/
ProPath profile
/* (In)
profile path.
*/
)
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 occurred while processing PDF creation.
PRO_TK_UNSUPPORTEDSupport not available on this platform.
PRO_TK_NOT_EXISTNo profile found. (For NULL profile returns PRO_TK_BAD_INPUTS.)
PRO_TK_INVALID_FILEprofile is not readable.
PRO_TK_BAD_CONTEXTPRO_PDF_ARCHIVE_1 passed for non 2D drawing export.

Manual References:

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