Get page size using AlivePDF
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 pa开发者_开发知识库dding, sticked to the right side.
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.
精彩评论