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

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

Introduction

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

The text is from its open source code.

Subclass

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

Field

booleanplainRandomAccess
When true the file access is not done through a memory mapped file.
booleanopen
Is the document open or not?
booleanclose
Has the document already been closed?

Constructor

Document()
Constructs a new Document -object.
Document(Rectangle pageSize, float marginLeft, float marginRight, float marginTop, float marginBottom)
Constructs a new Document -object.
Document(Rectangle pageSize)
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.
booleanaddHeader(String name, String content)
Adds a user defined header to the document.
booleanaddKeywords(String keywords)
Adds the keywords to a Document.
booleanaddLanguage(String language)
Adds a language to th 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.
StringgetJavaScript_onLoad()
Gets the JavaScript onLoad command.
intgetPageNumber()
Returns the current page number.
RectanglegetPageSize()
Gets the pagesize.
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.
booleansetMarginMirroring(boolean marginMirroring)
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.