Constructor
new PageLayout()
Constructor to initialize a default page layout. The default layout sets the height as 11 inches and width as 8 inches.
Methods
setPageSize(pageWidthnon-null, pageHeightnon-null)
Sets a custom page size.
Parameters:
Name | Type | Description |
---|---|---|
pageWidth |
Number | Width of the page in inches |
pageHeight |
Number | Height of the page in inches |