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

Export PDF from Wildfire 5.0 Jlink

Highlighted
Newbie

Export PDF from Wildfire 5.0 Jlink

I am trying to export a PDF using JLink in Wildfire 5.0


I have successfully done this for dxf and stp but no luck with PDF.


I have tried the following


PDFExportInstructions pdf_instrs = null;
pdf_instrs.SetFilePath("C:\\TEMP\\pdfFileName.pdf");
drawing.Export("test", pdf_instrs);



Any help would be appreciated.

2 REPLIES 2
Highlighted

RE: Export PDF from Wildfire 5.0 Jlink


The SetFilePath doesn't seem to specify where to store the pdf (maybe this is where to store the export instructions??). I believe the pdfis storedin your working (start in) directroy by default and I haven't figured out how to store it anywhere else, yet.

Highlighted

RE: Export PDF from Wildfire 5.0 Jlink

I think u should create the ExportInstructions not let it be null.


PDFExportInstructions pdf_instrs = pfcExport.PDFExportInstructions_Create();


pdf_instrs.SetFilePath("C:\\TEMP\\pdfFileName.pdf");


drawing.Export("test", pdf_instrs);


Don't know its the right to direct export from a drawing. But I have no Pro/E Lic. right now to check it.



In WF5-API setFilePath described as "The name of the output file.". Often u can use path in this description. Sometimes it's only the name and u must set the working directory path to the right location. Don't forget to reset the working directory.



Regards,


Eike

Announcements