pageWidth

pageWidth(): Integer updating;

The pageWidth method of the Printer class returns the width of the page, in pixels. The page width that is returned excludes the borders. An exception is raised if this method is invoked from a server method.