Hi all,
I've been trying to figure this out but to no avail. Basically I want to save a Hi and Lo res PDF of an ai file using a script. I've done some searching around on the forum and come across this script. The problem I have is that the 2 PDFs produced are both the same size. I want one to be compressed and one to be Hi res. Where am I going wrong? Below is the script I'm using.
#target illustrator
#targetengine "main"
for (x=0;x<app.documents.length;x++)
{
var workingDoc = app.documents[x];
var workingDocFile = workingDoc.fullName;
// populate these with your settings
var lowResOpts = new PDFSaveOptions();
lowResOpts.colorDownsampling = 150
var lowResOpts = new PDFSaveOptions();
lowResOpts.compressArt = true
var highResOpts = new PDFSaveOptions();
var lowResFile = new File(workingDocFile.toString().replace(".ai","_LR.pdf"));
workingDoc.saveAs(lowResFile,lowResOpts);
var highResFile = new File(workingDocFile.toString().replace(".ai","_HR.pdf"));
workingDoc.saveAs(highResFile,highResOpts);
workingDoc.close(SaveOptions.DONOTSAVECHANGES);
}
Thanks in advance!