cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Save drawing parameters in custom PDF properties

tthomasson
1-Visitor

Save drawing parameters in custom PDF properties

I have been unable to find any documentation on the ProPDFExport function.

Question - when exporting a drawing to PDF, is it possible to export drawing parameters into custom properties within the new PDF?

For example, say my drawing has two parameters TITLE_LINE_1 and TITLE_LINE_2 with string values "STANDARD WIDGET" and "RED AND BLUE, LARGE" respectively. After exporting to PDF, I would like the newly created PDF to have two custom properties (metadata) with the same names and values.

Has anyone attempted something like this?


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
1 REPLY 1
mender
12-Amethyst
(To:tthomasson)

Though I haven't done it myself, I believe the mechanism is as follows:

ProPDFoptionsAlloc

ProPDFoptionsIntpropertySet(options, PRO_PDFOPT_PARAM_MODE, PRO_PDF_PARAMS_DESIGNATED);

ProPDFExport(model, path, options)

possibly with some tweaking before/after as to which parameters are designated.  Alternatively, you can use PRO_PDF_PARAMS_ALL to get all the parameters.

As a side note, I think that 'Customization' is the right forum instead of the broad Creo one for questions/issues about programmatic interfaces.

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags