Skip to main content
Stefan Rakete
Inspiring
October 12, 2019
Question

SaveAs X3

  • October 12, 2019
  • 2 replies
  • 650 views

Hi,

I am trying to to save my document with JavaScript as PDF/X3

 

I tried the optional parameters for the saveAs

curDoc.saveAs(outputpath, "com.callas.preflight.pdfx");

 

but it will not save it as X3.

It there a way to go through the optimizer by script, change preferences ..

 

Thanks for any help.

Stefan

This topic has been closed for replies.

2 replies

Dov Isaacs
Legend
October 13, 2019

I am assuming the JavaScript is within the PDF file you are trying to convert to PDF/X-3? If so, be aware that none of the ISO PDF/X specifications (including PDF/X-1a, PDF/X-3, PDF/X-4, and the upcoming PDF/X-6 specifications support Javascript within the PDF file. Thus, any attempt to use the Acrobat Pro functions to create a PDF/X file from a PDF file with embedded JavaScript will succeed.

 

              - Dov

- Dov Isaacs, former Adobe Principal Scientist (April 30, 1990 - May 30, 2021)
Stefan Rakete
Inspiring
October 16, 2019
Thanks, I now created a simple action to convert the document to X3. No need for JavaScript.
Stefan Rakete
Inspiring
October 12, 2019

Execute the preflight? But how. Any examples. Thanks Stefan

Bernd Alheit
Community Expert
Community Expert
October 13, 2019
For the use of preflight profiles in Javascript look at the Acrobat Javascript Reference.