Skip to main content
Stefan Rakete
Inspiring
Oct 12, 2019 6:29 PM UTC
Question

SaveAs X3

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 is closed to new replies. Start a new post to keep the conversation going.

4 replies

Dov Isaacs
Legend
Oct 13, 2019 8:18 AM UTC

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

Translate
- Dov Isaacs, former Adobe Principal Scientist (April 30, 1990 - May 30, 2021)
Stefan Rakete
Inspiring
Oct 16, 2019 8:02 AM UTC
Thanks, I now created a simple action to convert the document to X3. No need for JavaScript.
Translate
Stefan Rakete
Inspiring
Oct 12, 2019 6:50 PM UTC

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

Translate
Bernd Alheit
Community Expert
Community Expert
Oct 13, 2019 9:05 AM UTC
For the use of preflight profiles in Javascript look at the Acrobat Javascript Reference.
Translate