View.getPageSize


getPageSize(width, height, paperCode, isPageLandscape, left, bottom, right, top)

Returns the size of paper, and margins, that will be used to print

widthinteger width of paper (in mm)
heightinteger height of paper (in mm)
paperCodeinteger Microsoft standard code to indicate the name of the paper (9 for A4, 8 for A3, etc)
isPageLandscapeboolean true if the orientation is landscape
leftdouble left margin (in mm)
bottomdouble bottom margin (in mm)
rightdouble right margin (in mm)
topdouble top margin (in mm)
Return valuenone 

Back to View

Back to Overview