Syntax: setPrintableMargins
document
This command sets the margins of a document object equal to the maximum printable area supported by the current print settings. Since this command changes the whole coordinate system of the document, your document must be empty when you call setMargins. Call reset
on your document beforehand just to make sure. After calling setPrintableMargins
, you can use the getMargins
routine to check the results.