Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
It's exactly the solution I want. Thank you
Find more inspiration, events, and resources on the new Adobe Community
Explore Now