The Document type exposes the following members.

Collapse imageConstructors

  NameDescription
Public methodDocument()()()()
Constructs a new Document-object.
Public methodDocument(Rectangle)
Constructs a new Document-object.
Public methodDocument(Rectangle, Single, Single, Single, Single)
Constructs a new Document-object.

Collapse imageMethods

  NameDescription
Public methodAdd
Adds an Element to the Document.
Public methodAddAuthor
Adds the author to a Document.
Public methodAddCreationDate
Adds the current date and time to a Document.
Public methodAddCreator
Adds the creator to a Document.
Public methodAddDocListener
Adds a IDocListener to the Document.
Public methodAddHeader
Adds a user defined header to the document.
Public methodAddKeywords
Adds the keywords to a Document.
Public methodAddProducer
Adds the producer to a Document.
Public methodAddSubject
Adds the subject to a Document.
Public methodAddTitle
Adds the title to a Document.
Public methodClose
Closes the document.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetBottom
Returns the lower left y-coordinate, considering a given margin.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetLeft
Returns the lower left x-coordinate considering a given margin.
Public methodGetRight
Returns the upper right x-coordinate, considering a given margin.
Public methodGetTop
Returns the upper right y-coordinate, considering a given margin.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsMarginMirroring
Public methodIsOpen
Checks if the document is open.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodNewPage
Signals that an new page has to be started.
Public methodOpen
Opens the document.
Public methodRemoveIDocListener
Removes a IDocListener from the Document.
Public methodResetFooter
Resets the footer of this document.
Public methodResetHeader
Resets the header of this document.
Public methodResetPageCount
Sets the page number to 0.
Public methodSetMarginMirroring
Public methodSetMarginMirroringTopBottom
Public methodSetMargins
Sets the margins.
Public methodSetPageSize
Sets the pagesize.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

Collapse imageFields

  NameDescription
Protected fieldchapternumber
Protected fieldclose
Has the document allready been closed?
Public fieldStatic memberCompress
Allows the pdf documents to be produced without compression for debugging purposes.
Protected fieldfooter
This is the textual part of the footer
Protected fieldheader
This is the textual part of a Page; it can contain a header
Protected fieldhtmlStyleClass
Style class in HTML body tag
Protected fieldjavaScript_onLoad
Content of JavaScript onLoad function
Protected fieldjavaScript_onUnLoad
Content of JavaScript onUnLoad function
Protected fieldmarginBottom
margin in y direction starting from the bottom
Protected fieldmarginLeft
margin in x direction starting from the left
Protected fieldmarginMirroring
Protected fieldmarginMirroringTopBottom
Protected fieldmarginRight
margin in x direction starting from the right
Protected fieldmarginTop
margin in y direction starting from the top
Protected fieldopen
Is the document open or not?
Protected fieldpageN
Current pagenumber
Protected fieldpageSize
The size of the page.
Public fieldStatic memberWmfFontCorrection
Scales the WMF font size. The default value is 0.86.

Collapse imageProperties

  NameDescription
Public propertyBottom
Returns the lower left y-coordinate.
Public propertyBottomMargin
Returns the bottom margin.
Public propertyFooter
Changes the footer of this document.
Public propertyHeader
Changes the header of this document.
Public propertyHtmlStyleClass
Gets the style class of the HTML body tag
Public propertyJavaScript_onLoad
Gets the JavaScript onLoad command.
Public propertyJavaScript_onUnLoad
Gets the JavaScript onUnLoad command.
Public propertyLeft
Returns the lower left x-coordinate.
Public propertyLeftMargin
Returns the left margin.
Public propertyPageCount
Sets the page number.
Public propertyPageNumber
Returns the current page number.
Public propertyPageSize
Gets the pagesize.
Public propertyStatic memberProduct
Public propertyStatic memberRelease
Public propertyRight
Returns the upper right x-coordinate.
Public propertyRightMargin
Return the right margin.
Public propertyTop
Returns the upper right y-coordinate.
Public propertyTopMargin
Returns the top margin.
Public propertyStatic memberVersion
Gets the iText version.

Collapse imageSee Also