Quick way of showing the trim size in Acrobat Reader and Pro
I entered this as an answer to a question elsewhere but I suppose this is something many would like to know since there's no good built-in way to do it. So here it is again:
What you need to do is to add a simple javascript to Acrobat that creates a new meny option. Here's how:
Open a text editor and paste this into it:
function PageSize(){
var aRect = this.getPageBox("Trim");
var width = aRect[2] - aRect[0];
var height = aRect[1] - aRect[3];
app.alert("Trim: " + Math.round(width*0.3528) + " mm x "
+ Math.round(height*0.3528) + " mm");
}
app.addMenuItem ({cName: "Show trim size", cParent: "File", cExec: "PageSize()" });
Then you save the file as something like trimsize.js on your desktop or elsewhere.
Then open in Windows:
C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\Javascripts\
and copy the file there. You might have to allow it to copy as administrator.
After this you restart Acrobat, and at the bottom of the file menu you will find a new option for showing the trim size.
The path will be a little different if you're using Acrobat Pro or if you're on a Mac but I'm sure you can find it.
Mac path:
/Applications/Adobe Acrobat DC/Adobe Acrobat.app/Contents/Resources/JavaScripts/
The nice thing about this script is that it works for Acrobat Reader as well as Pro. In my company the sales people use Reader and don't have access to the trim size at all, so this was very nice for them to have.
Hope you like it and that my little script works for you. ![]()
