Constructor
new PageLayout()
- Description:
Constructor to initialize a default page layout. The default layout sets the height as 11 inches and width as 8.5 inches.
Methods
setPageSize(pageWidthnon-null, pageHeightnon-null)
- Description:
Sets a custom page size.
Page size and orientation can also be set using paged media CSS which overrides the SDK Page Layout settings.
Parameters:
Name | Type | Description |
---|---|---|
pageWidth |
Number | Width of the page in inches |
pageHeight |
Number | Height of the page in inches |