12.2Class Doc

Used to operate on a document object.

Class Doc
Methods
addPageCreates a new page and adds it after the last page of a document.
getFontGets a font object for the specified font name.
insertPageCreates a new page and inserts it just before the specified page.

Methods

addPage

Creates a new page and adds it after the last page of a document.

Doc.addPage()
ReturnA new Page instance.

getFont

Gets a font object for the specified font name.

Doc.getFont( fontName, [encodingName] )
fontName A valid font name.
encodingName A valid encoding name.
ReturnA Font instance.

insertPage

Creates a new page and inserts it just before the specified page.

Doc.insertPage( page )
page The page in front of which the new page will be inserted.
ReturnA new Page instance.
Made with http://www.falconpl.org