The following commands are used get and set the attributes of a PrintOMatic document:
setDocumentName
Sets the name of the document
setLandscapeMode
Sets landscape or portrait orientation
getLandscapeMode
Returns the landscape mode of the document
setMargins
Sets the margins of the document
getMargins
Returns the margin settings of the document
setPrintableMargins
Sets the document margins to the maximum area the printer can print
getPageWidth
Returns the width between left and right margins
getPageHeight
Returns the height between the top and bottom margins
getPaperWidth
Returns the width of the physical paper
getPaperHeight
Returns the height of the physical paper
Routines that alter the size or orientation of a document, such as setLandscapeMode
, setMargins
, and setPrintableMargins
, can only be called when your document is empty.