Crop pdf in switch flow with Acrobat X Pro

Post Reply
major
Newbie
Posts: 8
Joined: Mon May 22, 2017 9:17 am

Crop pdf in switch flow with Acrobat X Pro

Post 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
major
Newbie
Posts: 8
Joined: Mon May 22, 2017 9:17 am

Re: Crop pdf in switch flow with Acrobat X Pro

Post by major »

--Solved--
According to doc, instead of "this" must be "$doc" in script!
Post Reply