Answered
Hi
I must retrieve the pdf page size through Javascripting. Like for instance return the x and y value as an integer.
Ive been succesfull with rotating and deleting pages through javascripting, but this I cant figure out.
Is this possible?
Thank you
Braam Ekermans
The JavaScript API Reference example:
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);
// 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");
George Kaiser