Quantcast
Channel: Adobe Community : Discussion List - Illustrator Scripting
Viewing all articles
Browse latest Browse all 3671

Open all pages in a PDF and save them as sequential files

$
0
0

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.


Viewing all articles
Browse latest Browse all 3671

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>