I'm trying to make a script that will open all pages in a multi-page PDF and save them as sequential files, but I have had no luck with the simple script in the "Adobe Ilustrator CS5 Reference: JavaScript".
there example to open a PDF to a designated page does not work for me in Illustrator CS 5.
// Opens a PDF file with specified options
var pdfOptions = app.preferences.PDFFileOptions;
pdfOptions.pDFCropToBox = PDFBoxType.PDFBOUNDINGBOX;
pdfOptions.pageToOpen = 2;
// Open a file using these preferences
var fileRef = filePath;
if (fileRef != null) {
var docRef = open(fileRef, DocumentColorSpace.RGB);
}
if anyone can get me on the right path it would be appreciated.