Page 1 of 1

Crop pdf in switch flow with Acrobat X Pro

Posted: Tue Jun 06, 2017 10:21 am
by major
Hi,
I created a simple switch 13 flow:
input folder - Acrobat - Output folder

Acrobat Flow Item parameters:
Open - Automatic
Command - Use Script with path to .js file

This is the contens of this file:

for(var i=0 ; i<this.numPages; i+=1)
{
this.setPageBoxes({ cBox: "Crop", nStart: i, nEnd: i, rBox: this.getPageBox("Trim", i)});
}

This works in Acrobat console window, but not in switch flow. Where i'm making a mistake? I forgot something?

Thanks for any help in advance!
M

Re: Crop pdf in switch flow with Acrobat X Pro

Posted: Tue Jun 06, 2017 12:19 pm
by major
--Solved--
According to doc, instead of "this" must be "$doc" in script!