Reputation: 80455
Is it possible to get the page width and page height for a PDF during creation with AlivePDF?
I need this to place a shape to the right side of the page, no margin or padding, sticked to the right side.
Upvotes: 2
Views: 603
Reputation: 53
Hopefully this will help you. Looking at the AlivePDF API documentation for the Page object (See here) I've found the public properties "width" and "height".
In my code, given a PDF object called myPDF, I use:
var sizeWidth:int = myPDF.getPage(i).width;
var sizeHeight:int = myPDF.getPage(i).height;
to get the width and height of page i.
Upvotes: 1