Quantcast
Channel: PTC Community : Unanswered Discussions - Creo
Viewing all articles
Browse latest Browse all 8685

Creating a PDF with Web.Link?

$
0
0

I have been trying to use Web.Link to create PDFs of drawings from CREO 2.0 Parametric.  I can successfully get it to create the PDF with all of the standard settings but i need to change the output color to monochrome and have it only PDF the first sheet.  The users guide is not very helpful with this, it lists the available options and option values but I can not figure out how to apply them to the pdf instructions.  I can not seem to assign the OptionValue as per the UG -

 

OptionValue—Specifies the value of the option in terms of the pfcArgValue object. Set this option using

the property pfcExport.PDFOption.SetOptionValue.

 

I can set the OptionType by assigning the desired value -

 


var color = pfcCreate ("pfcPDFOptionType").PDFOPT_COLOR_DEPTH;
var colorSet = (pfcCreate ("pfcPDFColorDepth").PDF_CD_MONO);
var pdfColor = pfcCreate ("pfcPDFOption").Create();
pdfColor.OptionType = color;


But if I do the same with the OptionValue it fails, or if i use SetOptionValue it fails.

 

Also how do you set the collection of PDF options? -

 

Use the property pfcPDFExportInstructions.Options to set the collection of PDF export options.

 

Any help is much appreciated.

 

Thanks,

-Alex


Viewing all articles
Browse latest Browse all 8685

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>