Hello Forum,
I want to get the Trimbox of my PDF Documents and rename them to e.g.
Document210x297mm.pdf
I found a script in the Java Api modified by Mr.Kaiser here in the forum, but the conversion is from points to inches, I need mm.
var aRect = this.getPageBox("Trim");
var width = aRect[2] - aRect[0];
var height = aRect[1] - aRect[3];
console.println("Page 1 has a width of " + width + " and a height of " +
height);
// now just add the conversion from points to inches
console.println("Page 1 has a width of " + (width * (1/72) )+ " inches and a height of " +
(height * (1/72) ) + " inches");
//here the code for renaming e.g.Document210x297mm.pdf
Later I will made a folderscript(I know how this will be done)
Thank you very much
Gebhard
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com