i'm looking for a possibility to get the DIN A Format (0-4) or the pixels in heigth / width from a document, but couldn't find any solution yet.
Some hints would be great

Thanks so far,
Chris
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
Code: Select all
var aRect = this.getPageBox("Media");
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);
Code: Select all
Parameters
--------------
cBox (optional) The type of box. Values are:
Art
Bleed
BBox
Crop (default)
Trim
nPage (optional) The 0-based index of the page. The default is 0, the first page in the document.