Next: Page related
Commands Up: The
available Commands Previous: The available Commands Index
- CloseDoc()
- Closes the actual document. Returns true if successful.
- GetUnit()
- Returns the Measurement Unit of the document. Possible Values
for Unit are:
0 = Typographic Points
1 = Millimeters
2 = Inches
3 = Picas
- HaveDoc()
- Returns true if there is a document open.
- NewDoc(size, margins, orientation, firstPageNumber, unit, Facingpages, FirstSideLeft)
- Creates a new document. The parameters have the following
meaning:
size = A Tuple (width, height) describing the size of
the document.
margins = A Tuple (Left, Right, Top, Bottom) describing the margins
of the document.
orientation = the page orientation, 0 means Portrait, 1 is
Landscape
firstpageNumer is the number of the first page in the document used
for pagenumbering
unit: this value sets the measurement Unit of the
document
0 = Typograpic Points
1 = Millimeters
2 = Inches
3 = Picas
Facingpages: 1 means Facingpages turned on, 0 means
Facingpages turned off
FirstSideLeft: 1 means that the first page in the document is a
left page, 0 means a right page as first page
The values for width, height and the margins are expressed in the
given unit for the document.
- OpenDoc(``name'')
- Opens the document ``name''. Returns true if successful.
- SaveDoc()
- Saves the document under its actual name, returns true if
successful.
- SaveDocAs(``name'')
- Saves the actual document under the new Name ``name''. Returns
true if successful.
- SetInfo(``Author'', ''Info'', ''Description'')
- Sets the document information.
- SetMargins(lr, rr, tr, br)
- Sets the Printmargins of the document, Left(lr), Right(rr),
Top(tr) and Bottom(br) Margins are given in the actual measurement
Unit of the document.
- SetDocType(Facingpages, FirstSideLeft)
- Sets the type of the documents, to get facing pages set the
first parameter to 1, to switch Facingpages off use 0 instead. If
you want to be the first page a left side set the second parameter
to 1, for a right page use 0.
- SetUnit(unit)
- Changes the measurement unit of the document. Permitted values
for Unit are:
0 = Typographic Points
1 = Millimeters
2 = Inches
3 = Picas
Next: Page related
Commands Up: The
available Commands Previous: The available Commands Index