2

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.

apaderno
  • 28,547
  • 16
  • 75
  • 90
Francisc
  • 77,430
  • 63
  • 180
  • 276

1 Answers1

1

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.

H0rizon
  • 53
  • 6