Skip to main content
Participating Frequently
September 18, 2023
Question

Exprot PDF/X-4:2008 with Illustrator settings

  • September 18, 2023
  • 1 reply
  • 342 views

Hello everyone, I tried to show with the pictures

what I want to do with the script.

Is there someone who can help me with this?

 

1-) File -> Save As

2-) Change pdf file name

3-) Adobe PDF presett -> PDF/X-4:2008 

 

 

This topic has been closed for replies.

1 reply

femkeblanco
Legend
September 18, 2023
var myName = "myPDF";
var myFile = new File("~/Desktop/" + myName);
var myPDF = new PDFSaveOptions();
myPDF.pDFPreset = "[PDF/X-4:2008]";
app.activeDocument.saveAs(myFile, myPDF);
// app.activeDocument.close();

You can change the name of the file in line 1, the location the file is saved to (presetnly the desktop) in line 2, or the name of the preset in line 4. Uncomment (remove // from) line 6 to close the doc after it is saved.

Participating Frequently
September 19, 2023

It's exactly the solution I want. Thank you