Java com.lowagie.text Document fields, constructors, methods, implement or subclass

Example usage for Java com.lowagie.text Document fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.lowagie.text Document.

The text is from its open source code.

Subclass

com.lowagie.text.Document has subclasses.
Click this link to see all its subclasses.

Field

booleancompress
Allows the pdf documents to be produced without compression for debugging purposes.
booleanopen
Is the document open or not?
booleanclose
Has the document already been closed?

Constructor

Document(Rectangle pageSize, float marginLeft, float marginRight, float marginTop, float marginBottom)
Constructs a new Document -object.
Document(Rectangle pageSize)
Constructs a new Document -object.
Document()
Constructs a new Document -object.

Method

booleanadd(Element element)
Adds an Element to the Document.
booleanaddAuthor(String author)
Adds the author to a Document.
booleanaddCreationDate()
Adds the current date and time to a Document.
booleanaddCreator(String creator)
Adds the creator to a Document.
voidaddDocListener(DocListener listener)
Adds a DocListener to the Document.
booleanaddHeader(String name, String content)
Adds a user defined header to the document.
booleanaddKeywords(String keywords)
Adds the keywords to a Document.
booleanaddProducer()
Adds the producer to a Document.
booleanaddSubject(String subject)
Adds the subject to a Document.
booleanaddTitle(String title)
Adds the title to a Document.
floatbottom()
Returns the lower left y-coordinate.
floatbottom(float margin)
Returns the lower left y-coordinate, considering a given margin.
floatbottomMargin()
Returns the bottom margin.
intgetPageNumber()
Returns the current page number.
RectanglegetPageSize()
Gets the pagesize.
StringgetVersion()
Gets the iText version.
booleanisOpen()
Checks if the document is open.
floatleft()
Returns the lower left x-coordinate.
floatleft(float margin)
Returns the lower left x-coordinate considering a given margin.
floatleftMargin()
Returns the left margin.
booleannewPage()
Signals that an new page has to be started.
voidresetPageCount()
Sets the page number to 0.
floatright()
Returns the upper right x-coordinate.
floatright(float margin)
Returns the upper right x-coordinate, considering a given margin.
floatrightMargin()
Return the right margin.
voidsetFooter(HeaderFooter footer)
Changes the footer of this document.
voidsetHeader(HeaderFooter header)
Changes the header of this document.
booleansetMarginMirroring(boolean marginMirroring)
Set the margin mirroring.
booleansetMarginMirroringTopBottom(boolean marginMirroringTopBottom)
Set the margin mirroring.
booleansetMargins(float marginLeft, float marginRight, float marginTop, float marginBottom)
Sets the margins.
voidsetPageCount(int pageN)
Sets the page number.
booleansetPageSize(Rectangle pageSize)
Sets the pagesize.
floattop()
Returns the upper right y-coordinate.
floattop(float margin)
Returns the upper right y-coordinate, considering a given margin.
floattopMargin()
Returns the top margin.