Skip to main content
1-Visitor
Nov 11, 2014 1:18 PM UTC
Question

To export a drw to PDF using J-link

Hello!

 

Has someone already exported a drw to PDF using J-link?

 

Thank you!

7 replies

1-Visitor
Nov 14, 2014 7:38 AM UTC

Hi,

PDFExportInstructions exportInstructions = pfcExport.PDFExportInstructions_Create();

curDrawing.Export("fileName", exportInstructions);

Best Regards,

Translate
1-Visitor
Nov 17, 2014 11:49 AM UTC

Thanks for the help Tommy Bijnens!

The pdf is opening right after it is generated, do you know if there is any way for it not to open?

In my application, it is not necessary to open the pdf to view.

Thanks!

Translate
10-Marble
Nov 17, 2014 7:09 PM UTC

Hello,

We use this for our PDF export.

PDFOption MyPdfOption = pfcExport.PDFOption_Create();

MyPdfOption.SetOptionType(PDFOptionType.PDFOPT_LAUNCH_VIEWER);

MyPdfOption.SetOptionValue(pfcArgument.CreateBoolArgValue(false));

Myoptions.append(MyPdfOption);

Hope it helps.

Regards.

Translate
1-Visitor
Nov 18, 2014 7:46 AM UTC

We use a .DOP file for configuration of the export.

But if you only need to set this one option, Paul's sollution might be more practical.

Translate
1-Visitor
Nov 18, 2014 11:12 AM UTC

Paul,

Only one question. The "myoptions" attribute is StringBuffer?

At first, this solution did not work as expected.

Thank you!

Translate
1-Visitor
Nov 18, 2014 1:03 PM UTC

Thank you!

It worked as I expected.

Translate