Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
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.
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.
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