Sg2.9
How to specify page to open i...
Recent RSS
How to specify page to open in multi-page PDF?
Date:  2. May 2012, 12:07

Hi there

I’d like to open each page in a long PDF document, do some things to it, and then save and close. Is there a way to specify which page in the PDF to open?

My code so far looks like this:

var myDirectory = script.file.parent;
var myFile = new File(myDirectory, 'File name.pdf');
var myDoc = new Document(myFile, 'cmyk', 'none');

It’s working fine, but I don’t want to have to manually tell it which page to open each time. So ideally I would change it to something like this:

var myDirectory = script.file.parent;
var myFile = new File(myDirectory, 'ANNUAL REPORT DECEMBER 2011.pdf');
for(i = 0; i
}

I’d appreciate any insights.

Scripts
08.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
25.11.15, 08:19
Script of the Moment
Gearwheels 18.08.08