Copy link to clipboard
Copied
Hello,
I'm looking for a script that takes a couple specific pages from a multi-page document and exports them as separate PDF files. I'd like to be able to specify the PDF type (x-1a:2001) and give each one a unique filename.
I don't know how to script, but I used to do some programming and am pretty certain I could figure out where to edit the code. Does anyone know of a similar script or write out a very basic script I could edit with the appropriate filenames and such?
Thanks!
Copy link to clipboard
Copied
The main problem will be to get the selected pages. (Filling the variable myPageName in the example). Maybe it is possible to get the selection of pages in CS4. I do not know.
var myPDFExportPreset = app.pdfExportPresets.item("mypreset") ;
app.pdfExportPreferences.pageRange = myPageName;
var myFile = new File(myFilePath);
myDoc.exportFile(ExportFormat.pdfType, myFile, false, myPDFExportPreset);
Ralf
Copy link to clipboard
Copied
Check out this script:
http://indesignsecrets.com/page-exporter-utility-peu-5-script-updated-for-cs3.php