开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜