Class PdfDocument
java.lang.Object
com.lowagie.text.Document
com.lowagie.text.pdf.PdfDocument
- All Implemented Interfaces:
DocListener, ElementListener, AutoCloseable, EventListener
Deprecated.
PdfDocument is the class that is used by PdfWriter
to translate a Document into a PDF with different pages.
A PdfDocument always listens to a Document and adds the Pdf representation of every
Element that is added to the Document.
- Since:
- 2.0.8 (class was package-private before)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated.(package private) static classDeprecated.PdfCatalogis the PDF Catalog-object.static classDeprecated.PdfInfois the PDF InfoDictionary.protected static classDeprecated.This is a helper class for adding a Table to a document. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PdfDictionaryDeprecated.protected intDeprecated.This represents the current alignment of the PDF Elements.protected PdfActionDeprecated.The current activePdfActionwhen processing anAnchor.(package private) PdfAnnotationsImpDeprecated.protected HashMap<String, PdfRectangle> Deprecated.This is the size of the several boxes that will be used in the next page.protected PdfCollectionDeprecated.protected floatDeprecated.This is the current height of the document.protected PdfOutlineDeprecated.This is the currentPdfOutlinein the hierarchy of outlines.protected HashMap<String, PdfIndirectReference> Deprecated.protected HashMap<String, PdfIndirectReference> Deprecated.protected intDeprecated.The duration of the pageprotected booleanDeprecated.Signals that OnOpenDocument should be called.protected PdfContentByteDeprecated.This is the PdfContentByte object, containing the borders and other Graphics.(package private) static final StringDeprecated.The characters to be applied the hanging punctuation.protected floatDeprecated.This is the position where the image ends.protected ImageDeprecated.This is the image that could not be shown on a previous page.protected PdfDocument.IndentationDeprecated.protected PdfDocument.PdfInfoDeprecated.some meta information about the Document.private booleanDeprecated.This is the flag meaning whether document is creating footer.protected booleanDeprecated.Signals that onParagraph is valid (to avoid that a Chapter/Section title is treated as a Paragraph).(package private) intDeprecated.Stores a list of document level JavaScript actions.protected intDeprecated.Holds the type of the last element, that has been added to the document.protected floatDeprecated.This represents the leading of the lines.protected intDeprecated.Signals that the current leading has to be subtracted from a YMark object when positive.protected PdfLineDeprecated.The line that is currently being written.Deprecated.The lines that are written until now.Deprecated.Stores the destinations keyed by name.protected intDeprecated.protected floatDeprecated.margin in y direction starting from the bottom.protected floatDeprecated.margin in x direction starting from the left.protected floatDeprecated.margin in x direction starting from the right.protected floatDeprecated.margin in y direction starting from the top.protected RectangleDeprecated.This is the size of the next page.protected PdfActionDeprecated.protected StringDeprecated.protected PdfDictionaryDeprecated.private booleanDeprecated.This checks if the page is empty.protected PdfPageLabelsDeprecated.protected PageResourcesDeprecated.This are the page resources of the current Page.protected PdfOutlineDeprecated.This is the root outline of the document.protected static final DecimalFormatDeprecated.protected booleanDeprecated.Holds value of property strictImageSequence.protected PdfContentByteDeprecated.This is the PdfContentByte object, containing the text.protected intDeprecated.protected HashMap<String, PdfRectangle> Deprecated.This is the size of the several boxes of the current Page.protected PdfIndirectReferenceDeprecated.protected PdfTransitionDeprecated.The page transitionprotected PdfViewerPreferencesImpDeprecated.Contains the Viewer preferences of this PDF document.protected PdfWriterDeprecated.ThePdfWriter.protected byte[]Deprecated.XMP Metadata for the page.Fields inherited from class Document
chapternumber, close, compress, footer, header, htmlStyleClass, javaScript_onLoad, javaScript_onUnLoad, marginBottom, marginLeft, marginMirroring, marginMirroringTopBottom, marginRight, marginTop, open, pageN, pageSize, plainRandomAccess, wmfFontCorrection -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.Signals that anElementwas added to theDocument.protected voidDeprecated.Adds an image to the document.(package private) voidaddAdditionalAction(PdfName actionType, PdfAction action) Deprecated.(package private) voidaddAnnotation(PdfAnnotation annot) Deprecated.(package private) voidaddCalculationOrder(PdfFormField formField) Deprecated.protected voidDeprecated.Occupies space forImagethat will be added later instead of now(package private) voidaddFileAttachment(String description, PdfFileSpecification fs) Deprecated.(package private) voidDeprecated.(package private) voidaddJavaScript(String name, PdfAction js) Deprecated.(package private) voidaddOutline(PdfOutline outline, String name) Deprecated.Adds a named outline to the document .private voidaddPdfTable(Table t) Deprecated.Adds a new table to the document.(package private) voidDeprecated.Adds aPdfPTableto the document.protected voidaddSpacing(float extraspace, float oldleading, Font f) Deprecated.Adds extra space.(package private) voidaddViewerPreference(PdfName key, PdfObject value) Deprecated.voidDeprecated.Adds aPdfWriterto thePdfDocument.protected voidanalyzeRow(List<List<PdfCell>> rows, PdfDocument.RenderingContext ctx) Deprecated.(package private) floatDeprecated.Returns the bottomvalue of aTableif it were added to this document.(package private) voidDeprecated.Updates the count in the outlines.protected voidDeprecated.If the current line is not empty or null, it is added to the arraylist of lines and a new empty line is added.voidDeprecated.Method added by Pelikan Stephanvoidclose()Deprecated.Closes the document.protected voidconsumeRowspan(List<PdfCell> row, PdfDocument.RenderingContext ctx) Deprecated.(package private) static PdfPTablecreateInOneCell(Paragraph paragraph) Deprecated.Integrate a paragraph into a table, so it can be a whole.protected voiddelayTableAddition(PdfPTable table) Deprecated.Occupies space forPdfPTablethat will be added later instead of nowprotected voiddoFooter()Deprecated.protected voiddoHeader()Deprecated.protected voidDeprecated.Ensures that a new line has been started.extractRows(List<PdfCell> cells, PdfDocument.RenderingContext ctx) Deprecated.(package private) booleanDeprecated.Checks if aPdfPTablefits the current page of thePdfDocument.protected floatDeprecated.Writes all the lines to the text-object.protected voidDeprecated.write non-textElementinto document(package private) PdfAcroFormDeprecated.Gets the AcroForm object.(package private) RectanglegetBoxSize(String boxName) Deprecated.Gives the size of a trim, art, crop or bleed box, or null if not defined.(package private) PdfDocument.PdfCataloggetCatalog(PdfIndirectReference pages) Deprecated.Gets thePdfCatalog-object.(package private) HashMap<String, PdfIndirectReference> Deprecated.(package private) HashMap<String, PdfIndirectReference> Deprecated.protected PdfDocument.PdfInfogetInfo()Deprecated.Gets thePdfInfo-object.floatDeprecated.Getter for the current leading.(package private) PdfActiongetLocalGotoAction(String name) Deprecated.(package private) intDeprecated.(package private) PageResourcesDeprecated.Deprecated.Gets the root outline.floatgetVerticalPosition(boolean ensureNewLine) Deprecated.Gets the current vertical page position.(package private) voidDeprecated.(package private) floatDeprecated.Gets the indentation on the bottom side.protected floatDeprecated.Gets the indentation on the left side.protected floatDeprecated.Gets the indentation on the right side.protected floatDeprecated.Gets the indentation on the top side.protected voidinitPage()Deprecated.Initializes a page.(package private) booleanDeprecated.(package private) booleanDeprecated.Getter for property strictImageSequence.(package private) booleanlocalDestination(String name, PdfDestination destination) Deprecated.The local destination to where a local goto with the same name will jump to.(package private) voidDeprecated.Implements a link to other part of the document.protected booleanmayBeRemoved(List<PdfCell> row) Deprecated.protected voidnewLine()Deprecated.Adds the current line to the list of lines and also adds an empty line.booleannewPage()Deprecated.Makes a new page and sends it to thePdfWriter.voidopen()Deprecated.Opens the document.(package private) voidoutlineTree(PdfOutline outline) Deprecated.Recursive method used to write outlines.(package private) voidremoteGoto(String filename, int page, float llx, float lly, float urx, float ury) Deprecated.Implements a link to another document.(package private) voidremoteGoto(String filename, String name, float llx, float lly, float urx, float ury) Deprecated.Implements a link to another document.protected voidrenderCells(PdfDocument.RenderingContext ctx, List cells, boolean hasToFit) Deprecated.voidDeprecated.Resets the footer of this document.voidDeprecated.Resets the header of this document.voidDeprecated.Sets the page number to 0.private voidresetText(boolean move) Deprecated.(package private) voidDeprecated.Implements an action in an area.(package private) voidsetBoxSize(String boxName, Rectangle size) Deprecated.voidsetCollection(PdfCollection collection) Deprecated.Sets the collection dictionary.(package private) voidsetCropBoxSize(Rectangle crop) Deprecated.(package private) voidsetDuration(int seconds) Deprecated.Sets the display duration for the page (for presentations)voidsetFooter(HeaderFooter footer) Deprecated.Changes the footer of this document.voidsetHeader(HeaderFooter header) Deprecated.Changes the header of this document.(package private) voidsetLeading(float leading) Deprecated.Setter for the current leading.booleansetMarginMirroring(boolean MarginMirroring) Deprecated.Set the margin mirroring.booleansetMarginMirroringTopBottom(boolean MarginMirroringTopBottom) Deprecated.Set the margin mirroring.booleansetMargins(float marginLeft, float marginRight, float marginTop, float marginBottom) Deprecated.Sets the margins.protected voidDeprecated.(package private) voidsetOpenAction(PdfAction action) Deprecated.(package private) voidsetOpenAction(String name) Deprecated.(package private) voidsetPageAction(PdfName actionType, PdfAction action) Deprecated.voidsetPageCount(int pageN) Deprecated.Sets the page number.(package private) voidsetPageEmpty(boolean pageEmpty) Deprecated.(package private) voidsetPageLabels(PdfPageLabels pageLabels) Deprecated.Sets the page labelsbooleansetPageSize(Rectangle pageSize) Deprecated.Sets the pagesize.(package private) voidsetSigFlags(int f) Deprecated.(package private) voidsetStrictImageSequence(boolean strictImageSequence) Deprecated.Setter for property strictImageSequence.private voidsetTableWidth(PdfPTable table) Deprecated.(package private) voidsetThumbnail(Image image) Deprecated.(package private) voidsetTransition(PdfTransition transition) Deprecated.Sets the transition for the page(package private) voidsetViewerPreferences(int preferences) Deprecated.voidsetXmpMetadata(byte[] xmpMetadata) Deprecated.Use this method to set the XMP Metadata.(package private) voidtraverseOutlineCount(PdfOutline outline) Deprecated.Recursive method to update the count in the outlines.(package private) voidwriteLineToContent(PdfLine line, PdfContentByte text, PdfContentByte graphics, Object[] currentValues, float ratio) Deprecated.Writes a text line to the document.(package private) voidDeprecated.Writes the outline tree to the body of the PDF document.Methods inherited from class Document
addAuthor, addCreationDate, addCreationDate, addCreator, addDocListener, addHeader, addKeywords, addModificationDate, addModificationDate, addProducer, addProducer, addSubject, addTitle, bottom, bottom, bottomMargin, getDocumentLanguage, getHtmlStyleClass, getJavaScript_onLoad, getJavaScript_onUnLoad, getPageNumber, getPageSize, getProduct, getRelease, getTextRenderingOptions, getVersion, isGlyphSubstitutionEnabled, isMarginMirroring, isOpen, left, left, leftMargin, removeDocListener, right, right, rightMargin, setDocumentLanguage, setGlyphSubstitutionEnabled, setHtmlStyleClass, setJavaScript_onLoad, setJavaScript_onUnLoad, setTextRenderingOptions, top, top, topMargin
-
Field Details
-
SIXTEEN_DIGITS
Deprecated. -
hangingPunctuation
Deprecated.The characters to be applied the hanging punctuation.- See Also:
-
writer
-
text
-
graphics
Deprecated.This is the PdfContentByte object, containing the borders and other Graphics. -
leading
protected float leadingDeprecated.This represents the leading of the lines. -
alignment
protected int alignmentDeprecated.This represents the current alignment of the PDF Elements. -
currentHeight
protected float currentHeightDeprecated.This is the current height of the document. -
isSectionTitle
protected boolean isSectionTitleDeprecated.Signals that onParagraph is valid (to avoid that a Chapter/Section title is treated as a Paragraph).- Since:
- 2.1.2
-
leadingCount
protected int leadingCountDeprecated.Signals that the current leading has to be subtracted from a YMark object when positive.- Since:
- 2.1.2
-
anchorAction
Deprecated.The current activePdfActionwhen processing anAnchor. -
textEmptySize
protected int textEmptySizeDeprecated. -
xmpMetadata
protected byte[] xmpMetadataDeprecated.XMP Metadata for the page. -
nextMarginLeft
protected float nextMarginLeftDeprecated.margin in x direction starting from the left. Will be valid in the next page -
nextMarginRight
protected float nextMarginRightDeprecated.margin in x direction starting from the right. Will be valid in the next page -
nextMarginTop
protected float nextMarginTopDeprecated.margin in y direction starting from the top. Will be valid in the next page -
nextMarginBottom
protected float nextMarginBottomDeprecated.margin in y direction starting from the bottom. Will be valid in the next page -
firstPageEvent
protected boolean firstPageEventDeprecated.Signals that OnOpenDocument should be called. -
line
-
lines
-
lastElementType
protected int lastElementTypeDeprecated.Holds the type of the last element, that has been added to the document. -
indentation
Deprecated. -
info
-
rootOutline
-
currentOutline
Deprecated.This is the currentPdfOutlinein the hierarchy of outlines. -
viewerPreferences
Deprecated.Contains the Viewer preferences of this PDF document. -
pageLabels
Deprecated. -
localDestinations
-
documentLevelJS
Deprecated. -
documentFileAttachment
Deprecated. -
openActionName
Deprecated. -
openActionAction
Deprecated. -
additionalActions
Deprecated. -
collection
Deprecated. -
markPoint
protected int markPointDeprecated. -
nextPageSize
-
thisBoxSize
Deprecated.This is the size of the several boxes of the current Page. -
boxSize
Deprecated.This is the size of the several boxes that will be used in the next page. -
duration
protected int durationDeprecated.The duration of the page -
transition
-
pageAA
Deprecated. -
thumb
Deprecated. -
pageResources
-
strictImageSequence
protected boolean strictImageSequenceDeprecated.Holds value of property strictImageSequence. -
imageEnd
protected float imageEndDeprecated.This is the position where the image ends. -
imageWait
-
jsCounter
int jsCounterDeprecated.Stores a list of document level JavaScript actions. -
annotationsImp
PdfAnnotationsImp annotationsImpDeprecated. -
pageEmpty
private boolean pageEmptyDeprecated.This checks if the page is empty.
-
-
Constructor Details
-
PdfDocument
public PdfDocument()Deprecated.Constructs a new PDF document.
-
-
Method Details
-
createInOneCell
Deprecated.Integrate a paragraph into a table, so it can be a whole.Note: This is not a table with square, it's just like the paragraph, but it cannot be separated.
- Parameters:
paragraph- theParagraphincoming paragraphs to be consolidated- Returns:
PdfPTablethe whole which will be used later
-
addWriter
Deprecated.Adds aPdfWriterto thePdfDocument.- Parameters:
writer- thePdfWriterthat writes everything what is added to this document to an outputstream.- Throws:
DocumentException- on error
-
getLeading
public float getLeading()Deprecated.Getter for the current leading.- Returns:
- the current leading
- Since:
- 2.1.2
-
setLeading
void setLeading(float leading) Deprecated.Setter for the current leading.- Parameters:
leading- the current leading- Since:
- 2.1.6
-
add
Deprecated.Signals that anElementwas added to theDocument.- Specified by:
addin interfaceElementListener- Overrides:
addin classDocument- Parameters:
element- the element to add- Returns:
trueif the element was added,falseif not.- Throws:
DocumentException- when a document isn't open yet, or has been closed
-
open
public void open()Deprecated.Opens the document.You have to open the document before you can begin to add content to the body of the document.
- Specified by:
openin interfaceDocListener- Overrides:
openin classDocument
-
close
public void close()Deprecated.Closes the document.Once all the content has been written in the body, you have to close the body. After that nothing can be written to the body anymore.
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceDocListener- Overrides:
closein classDocument
-
setXmpMetadata
public void setXmpMetadata(byte[] xmpMetadata) Deprecated.Use this method to set the XMP Metadata.- Parameters:
xmpMetadata- The xmpMetadata to set.
-
newPage
public boolean newPage()Deprecated.Makes a new page and sends it to thePdfWriter.- Specified by:
newPagein interfaceDocListener- Overrides:
newPagein classDocument- Returns:
- a
boolean
-
setPageSize
Deprecated.Sets the pagesize.- Specified by:
setPageSizein interfaceDocListener- Overrides:
setPageSizein classDocument- Parameters:
pageSize- the new pagesize- Returns:
trueif the page size was set
-
setMargins
public boolean setMargins(float marginLeft, float marginRight, float marginTop, float marginBottom) Deprecated.Sets the margins.- Specified by:
setMarginsin interfaceDocListener- Overrides:
setMarginsin classDocument- Parameters:
marginLeft- the margin on the leftmarginRight- the margin on the rightmarginTop- the margin on the topmarginBottom- the margin on the bottom- Returns:
- a
boolean
-
setMarginMirroring
public boolean setMarginMirroring(boolean MarginMirroring) Deprecated.Description copied from class:DocumentSet the margin mirroring. It will mirror right/left margins for odd/even pages.Note: it will not work with
Table.- Specified by:
setMarginMirroringin interfaceDocListener- Overrides:
setMarginMirroringin classDocument- Parameters:
MarginMirroring-trueto mirror the margins- Returns:
- always
true - See Also:
-
setMarginMirroringTopBottom
public boolean setMarginMirroringTopBottom(boolean MarginMirroringTopBottom) Deprecated.Description copied from class:DocumentSet the margin mirroring. It will mirror top/bottom margins for odd/even pages.Note: it will not work with
Table.- Specified by:
setMarginMirroringTopBottomin interfaceDocListener- Overrides:
setMarginMirroringTopBottomin classDocument- Parameters:
MarginMirroringTopBottom-trueto mirror the margins- Returns:
- always
true - Since:
- 2.1.6
- See Also:
-
setPageCount
public void setPageCount(int pageN) Deprecated.Sets the page number.- Specified by:
setPageCountin interfaceDocListener- Overrides:
setPageCountin classDocument- Parameters:
pageN- the new page number
-
resetPageCount
public void resetPageCount()Deprecated.Sets the page number to 0.- Specified by:
resetPageCountin interfaceDocListener- Overrides:
resetPageCountin classDocument
-
resetHeader
public void resetHeader()Deprecated.Resets the header of this document.- Specified by:
resetHeaderin interfaceDocListener- Overrides:
resetHeaderin classDocument
-
resetText
private void resetText(boolean move) Deprecated. -
initPage
Deprecated.Initializes a page.If the footer/header is set, it is printed.
- Throws:
DocumentException- on error
-
newLine
Deprecated.Adds the current line to the list of lines and also adds an empty line.- Throws:
DocumentException- on error
-
carriageReturn
protected void carriageReturn()Deprecated.If the current line is not empty or null, it is added to the arraylist of lines and a new empty line is added. -
getVerticalPosition
public float getVerticalPosition(boolean ensureNewLine) Deprecated.Gets the current vertical page position.- Parameters:
ensureNewLine- Tells whether a new line shall be enforced. This may cause side effects for elements that do not terminate the lines they've started because those lines will get terminated.- Returns:
- The current vertical page position.
-
ensureNewLine
protected void ensureNewLine()Deprecated.Ensures that a new line has been started. -
flushLines
Deprecated.Writes all the lines to the text-object.- Returns:
- the displacement that was caused
- Throws:
DocumentException- on error
-
writeLineToContent
void writeLineToContent(PdfLine line, PdfContentByte text, PdfContentByte graphics, Object[] currentValues, float ratio) throws DocumentException Deprecated.Writes a text line to the document. It takes care of all the attributes.Before entering the line position must have been established and the
textargument must be in text object scope (beginText()).- Parameters:
line- the line to be writtentext- thePdfContentBytewhere the text will be written tographics- thePdfContentBytewhere the graphics will be written tocurrentValues- the current font and extra spacing valuesratio-- Throws:
DocumentException- on error
-
indentLeft
protected float indentLeft()Deprecated.Gets the indentation on the left side.- Returns:
- a margin
-
indentRight
protected float indentRight()Deprecated.Gets the indentation on the right side.- Returns:
- a margin
-
indentTop
protected float indentTop()Deprecated.Gets the indentation on the top side.- Returns:
- a margin
-
indentBottom
float indentBottom()Deprecated.Gets the indentation on the bottom side.- Returns:
- a margin
-
addSpacing
Deprecated.Adds extra space. This method should probably be rewritten.- Parameters:
extraspace- extra spaceoldleading- old leadingf- font
-
getInfo
-
getCatalog
Deprecated.Gets thePdfCatalog-object.- Parameters:
pages- an indirect reference to this document pages- Returns:
PdfCatalog
-
addOutline
Deprecated.Adds a named outline to the document .- Parameters:
outline- the outline to be addedname- the name of this local destination
-
getRootOutline
Deprecated.Gets the root outline. All the outlines must be created with a parent. The first level is created with this outline.- Returns:
- the root outline
-
calculateOutlineCount
void calculateOutlineCount()Deprecated.Updates the count in the outlines. -
traverseOutlineCount
Deprecated.Recursive method to update the count in the outlines. -
writeOutlines
-
outlineTree
-
setViewerPreferences
void setViewerPreferences(int preferences) Deprecated.- See Also:
-
addViewerPreference
-
setPageLabels
Deprecated.Sets the page labels- Parameters:
pageLabels- the page labels
-
localGoto
Deprecated.Implements a link to other part of the document. The jump will be made to a local destination with the same name, that must exist.- Parameters:
name- the name for this linkllx- the lower left x corner of the activation areally- the lower left y corner of the activation areaurx- the upper right x corner of the activation areaury- the upper right y corner of the activation area
-
remoteGoto
Deprecated.Implements a link to another document.- Parameters:
filename- the filename for the remote documentname- the name to jump tollx- the lower left x corner of the activation areally- the lower left y corner of the activation areaurx- the upper right x corner of the activation areaury- the upper right y corner of the activation area
-
remoteGoto
Deprecated.Implements a link to another document.- Parameters:
filename- the filename for the remote documentpage- the page to jump tollx- the lower left x corner of the activation areally- the lower left y corner of the activation areaurx- the upper right x corner of the activation areaury- the upper right y corner of the activation area
-
setAction
Deprecated.Implements an action in an area.- Parameters:
action- thePdfActionllx- the lower left x corner of the activation areally- the lower left y corner of the activation areaurx- the upper right x corner of the activation areaury- the upper right y corner of the activation area
-
getLocalGotoAction
-
localDestination
Deprecated.The local destination to where a local goto with the same name will jump to.- Parameters:
name- the name of this local destinationdestination- thePdfDestinationwith the jump coordinates- Returns:
trueif the local destination was added,falseif a local destination with the same name already existed
-
addJavaScript
Deprecated. -
addJavaScript
-
getDocumentLevelJS
HashMap<String, PdfIndirectReference> getDocumentLevelJS()Deprecated. -
addFileAttachment
Deprecated.- Throws:
IOException
-
getDocumentFileAttachment
HashMap<String, PdfIndirectReference> getDocumentFileAttachment()Deprecated. -
setOpenAction
Deprecated. -
setOpenAction
Deprecated. -
addAdditionalAction
-
setCollection
Deprecated.Sets the collection dictionary.- Parameters:
collection- a dictionary of type PdfCollection
-
getAcroForm
PdfAcroForm getAcroForm()Deprecated.Gets the AcroForm object.- Returns:
- the PdfAcroform object of the PdfDocument
-
setSigFlags
void setSigFlags(int f) Deprecated. -
addCalculationOrder
Deprecated. -
addAnnotation
Deprecated. -
getMarkPoint
int getMarkPoint()Deprecated. -
incMarkPoint
void incMarkPoint()Deprecated. -
setCropBoxSize
Deprecated. -
setBoxSize
-
setNewPageSizeAndMargins
protected void setNewPageSizeAndMargins()Deprecated. -
getBoxSize
-
isPageEmpty
boolean isPageEmpty()Deprecated. -
setPageEmpty
void setPageEmpty(boolean pageEmpty) Deprecated. -
setDuration
void setDuration(int seconds) Deprecated.Sets the display duration for the page (for presentations)- Parameters:
seconds- the number of seconds to display the page
-
setTransition
Deprecated.Sets the transition for the page- Parameters:
transition- the PdfTransition object
-
setPageAction
-
setThumbnail
-
getPageResources
PageResources getPageResources()Deprecated. -
isStrictImageSequence
boolean isStrictImageSequence()Deprecated.Getter for property strictImageSequence.- Returns:
- Value of property strictImageSequence.
-
setStrictImageSequence
void setStrictImageSequence(boolean strictImageSequence) Deprecated.Setter for property strictImageSequence.- Parameters:
strictImageSequence- New value of property strictImageSequence.
-
clearTextWrap
public void clearTextWrap()Deprecated.Method added by Pelikan Stephan -
add
Deprecated.Adds an image to the document.- Parameters:
image- theImageto add- Throws:
PdfException- on errorDocumentException- on error
-
flushSpecial
protected void flushSpecial()Deprecated.write non-textElementinto document -
addDelay
Deprecated.Occupies space forImagethat will be added later instead of now- Parameters:
image- the newImage
-
delayTableAddition
Deprecated.Occupies space forPdfPTablethat will be added later instead of now- Parameters:
table- the newPdfPTable
-
addPTable
Deprecated.Adds aPdfPTableto the document.- Parameters:
ptable- thePdfPTableto be added to the document.- Throws:
DocumentException- on error
-
fitsPage
Deprecated.Checks if aPdfPTablefits the current page of thePdfDocument.- Parameters:
table- the table that has to be checkedmargin- a certain margin- Returns:
trueif thePdfPTablefits the page,falseotherwise.
-
setTableWidth
Deprecated. -
addPdfTable
Deprecated.Adds a new table to the document.- Parameters:
t- Table to add. Rendered rows will be deleted after processing.- Throws:
DocumentException- Since:
- iText 2.0.8
-
analyzeRow
Deprecated. -
mayBeRemoved
-
consumeRowspan
Deprecated. -
extractRows
-
renderCells
protected void renderCells(PdfDocument.RenderingContext ctx, List cells, boolean hasToFit) throws DocumentException Deprecated.- Throws:
DocumentException
-
bottom
Deprecated.Returns the bottomvalue of aTableif it were added to this document.- Parameters:
table- the table that may or may not be added to this document- Returns:
- a bottom value
-
doHeader
-