Copy link to clipboard
Copied
Hi,
I have more than 200 pages pdf file. I need to place all pages in InDesign, skip the 4 sides about 20mm in InDesign. I did placing using of script. I need to crop all pages, is there any script for the same..?
Thanks in advance.
Hi,
Can you try with below code:
var myDoc = app.activeDocument;
var myGraphics = myDoc.allGraphics;
for (var a = 0; a<myGraphics.length; a++)
{
if (myGraphics.imageTypeName == "Adobe PDF")
{
var myBounds = myGraphics.parent.geometricBounds;
myGraphics.parent.geometricBounds = [(myBounds[0]+20), (myBounds[1]+20), (myBounds[2]-20), (myBounds[3]-20)]
}
}
But make sure your ruler unit should be in mm.
Here is Zanelli script for placing pdf in Indesign.
Shonky
Copy link to clipboard
Copied
Hi,
Can you try with below code:
var myDoc = app.activeDocument;
var myGraphics = myDoc.allGraphics;
for (var a = 0; a<myGraphics.length; a++)
{
if (myGraphics.imageTypeName == "Adobe PDF")
{
var myBounds = myGraphics.parent.geometricBounds;
myGraphics.parent.geometricBounds = [(myBounds[0]+20), (myBounds[1]+20), (myBounds[2]-20), (myBounds[3]-20)]
...
But make sure your ruler unit should be in mm.
Here is Zanelli script for placing pdf in Indesign.
Shonky
Copy link to clipboard
Copied
Thanks alot Shonky for your great help
Find more inspiration, events, and resources on the new Adobe Community
Explore Now