Uses of Interface
com.itextpdf.text.Element
Packages that use Element
Package
Description
Contains classes that can apply css rules on certain
Element
s.Everything to parse HTML tags to pdf used by the
HtmlPipeline
is in here.TagProcessor implementations for tags in HTML head.
Element
s created for specific use when processing HTML.TagProcessor implementations for
table
tags.The pipeline package contains the pipeline implementations
Contains pipeline stuff for HTML
-
Uses of Element in com.itextpdf.text
Subinterfaces of Element in com.itextpdf.textModifier and TypeInterfaceDescriptioninterface
Interface implemented by Element objects that can potentially consume a lot of memory.interface
Interface for a text element to which other objects can be added.Classes in com.itextpdf.text that implement ElementModifier and TypeClassDescriptionclass
AnAnchor
can be a reference or a destination of a reference.class
AnAnnotation
is a little note that can be added to a page on a document.class
AChapter
is a specialSection
.class
Chapter with auto numbering.class
This is the smallest significant part of text that can be added to a document.class
A special-version ofLIST
which use greek-letters.class
This is anElement
that contains some user defined meta information about the document.class
AnImage
is the representation of a graphic element (JPEG, PNG or GIF) that has to be inserted into the documentclass
CCITT Image data that has to be inserted into the documentclass
Support for JBIG2 images.class
Raw Image data that has to be inserted into the documentclass
PdfTemplate that has to be inserted into the documentclass
AnImgWMF
is the representation of a windows metafile that has to be inserted into the documentclass
AnJpeg
is the representation of a graphic element (JPEG) that has to be inserted into the documentclass
AnJpeg2000
is the representation of a graphic element (JPEG) that has to be inserted into the documentclass
AList
contains severalListItem
s.class
AListItem
is aParagraph
that can be added to aList
.class
Deprecated.since 5.5.9.class
Deprecated.since 5.5.9.class
This is anElement
that contains some meta information about the document.class
AParagraph
is a series ofChunk
s and/orPhrases
.class
APhrase
is a series ofChunk
s.class
ARectangle
is the representation of a geometric figure.class
ARectangleReadOnly
is the representation of a geometric figure.class
A special-version ofLIST
which use roman-letters.class
ASection
is a part of aDocument
containing otherSection
s,Paragraph
s,List
and/orTable
s.class
An element that is not an element, it holdsWRITABLE_DIRECT
as Element type.class
A special-version ofLIST
which use zapfdingbats-letters.class
A special-version ofLIST
which use zapfdingbats-numbers (1..10).Fields in com.itextpdf.text declared as ElementModifier and TypeFieldDescriptionprotected Element
MarkedObject.element
Deprecated.The element that is wrapped in a MarkedObject.Fields in com.itextpdf.text with type parameters of type ElementModifier and TypeFieldDescriptionList.list
This is theArrayList
containing the differentListItem
s.Methods in com.itextpdf.text that return types with arguments of type ElementModifier and TypeMethodDescriptionParagraph.breakUp()
Breaks this Paragraph up in different parts, separating paragraphs, lists and tables from each other.List.getItems()
Gets all the items in the list.Methods in com.itextpdf.text with parameters of type ElementModifier and TypeMethodDescriptionboolean
Adds anElement
to theDocument
.boolean
Signals that anElement
was added to theDocument
.boolean
Signals that anElement
was added to theDocument
.boolean
Adds anElement
to theList
.boolean
Adds anElement
to theList
.void
Deprecated.Adds aParagraph
,List
orTable
to thisSection
.boolean
Deprecated.Adds aParagraph
,List
,Table
or anotherSection
to thisSection
.boolean
Adds anElement
to theParagraph
.void
Adds aChunk
, anAnchor
or anotherPhrase
to thisPhrase
.boolean
Adds aChunk
,Anchor
or anotherPhrase
to thisPhrase
.boolean
Adds anElement
to theList
.void
Adds aParagraph
,List
orTable
to thisSection
.boolean
Adds aParagraph
,List
,Table
or anotherSection
to thisSection
.boolean
Adds an element to theTextElementArray
.boolean
Adds anElement
to theList
.boolean
Adds anElement
to theList
.protected void
Phrase.addSpecial
(Element object) Adds anElement
to theParagraph
.Method parameters in com.itextpdf.text with type arguments of type ElementModifier and TypeMethodDescriptionboolean
MarkedSection.addAll
(Collection<? extends Element> collection) Deprecated.Adds a collection ofElement
s to thisSection
.boolean
Phrase.addAll
(Collection<? extends Element> collection) Adds a collection ofChunk
s to thisPhrase
.boolean
Section.addAll
(Collection<? extends Element> collection) Adds a collection ofElement
s to thisSection
.Constructors in com.itextpdf.text with parameters of type Element -
Uses of Element in com.itextpdf.text.html.simpleparser
Classes in com.itextpdf.text.html.simpleparser that implement ElementModifier and TypeClassDescriptionclass
Deprecated.since 5.5.2class
Deprecated.since 5.5.2Fields in com.itextpdf.text.html.simpleparser with type parameters of type ElementModifier and TypeFieldDescriptionHTMLWorker.objectList
Deprecated.The resulting list of elements.HTMLWorker.stack
Deprecated.Stack with the Elements that already have been processed.Methods in com.itextpdf.text.html.simpleparser that return types with arguments of type ElementModifier and TypeMethodDescriptionHTMLWorker.parseToList
(Reader reader, StyleSheet style) Deprecated.Parses an HTML source to a List of Element objectsHTMLWorker.parseToList
(Reader reader, StyleSheet style, HashMap<String, Object> providers) Deprecated.Parses an HTML source to a List of Element objectsHTMLWorker.parseToList
(Reader reader, StyleSheet style, Map<String, HTMLTagProcessor> tags, HashMap<String, Object> providers) Deprecated.Parses an HTML source to a List of Element objectsMethods in com.itextpdf.text.html.simpleparser with parameters of type Element -
Uses of Element in com.itextpdf.text.pdf
Classes in com.itextpdf.text.pdf that implement ElementModifier and TypeClassDescriptionclass
class
A special element to put a collection of elements at an absolute position.class
A cell in a PdfPTable.class
Created by IntelliJ IDEA.class
This is a table that can be put at an absolute position but can also be added to the document as the classTable
.Fields in com.itextpdf.text.pdf with type parameters of type ElementModifier and TypeFieldDescriptionprotected LinkedList<Element>
ColumnText.compositeElements
FloatLayout.content
PdfDiv.content
PdfDocument.floatingElements
Methods in com.itextpdf.text.pdf that return types with arguments of type ElementModifier and TypeMethodDescriptionColumnText.getCompositeElements()
PdfPCell.getCompositeElements()
Returns the list of composite elements of the column.PdfDiv.getContent()
Methods in com.itextpdf.text.pdf with parameters of type ElementModifier and TypeMethodDescriptionboolean
Signals that anElement
was added to theDocument
.void
ColumnText.addElement
(Element element) Adds an element.void
PdfDiv.addElement
(Element element) void
PdfPCell.addElement
(Element element) Adds an iText element to the cell.static boolean
ColumnText.isAllowedElement
(Element element) Method parameters in com.itextpdf.text.pdf with type arguments of type ElementModifier and TypeMethodDescriptionprivate int
FloatLayout.floatingLayout
(List<Element> floatingElements, boolean simulate) void
PdfDiv.setContent
(ArrayList<Element> content) Constructor parameters in com.itextpdf.text.pdf with type arguments of type Element -
Uses of Element in com.itextpdf.text.pdf.draw
Classes in com.itextpdf.text.pdf.draw that implement ElementModifier and TypeClassDescriptionclass
Element that draws a dotted line from left to right.class
Element that draws a solid line from left to right.class
Helper class implementing the DrawInterface. -
Uses of Element in com.itextpdf.tool.xml.css.apply
Methods in com.itextpdf.tool.xml.css.apply that return Element -
Uses of Element in com.itextpdf.tool.xml.html
Classes in com.itextpdf.tool.xml.html with type parameters of type ElementModifier and TypeInterfaceDescriptioninterface
CssApplier<T extends Element>
An interface for applying custom rules to a certain tag.Fields in com.itextpdf.tool.xml.html with type parameters of type ElementModifier and TypeFieldDescriptionprivate Map<Class<?>,
CssApplier<? extends Element>> CssAppliersImpl.map
Methods in com.itextpdf.tool.xml.html that return ElementModifier and TypeMethodDescriptionCssAppliers.apply
(Element e, Tag t, MarginMemory mm, PageSizeContainable psc, HtmlPipelineContext ctx) Given the element e, this method will lookup the right applier for the given Element.CssAppliers.apply
(Element e, Tag t, HtmlPipelineContext ctx) Convenience method.CssAppliersImpl.apply
(Element e, Tag t, MarginMemory mm, PageSizeContainable psc, HtmlPipelineContext ctx) CssAppliersImpl.apply
(Element e, Tag t, HtmlPipelineContext ctx) Methods in com.itextpdf.tool.xml.html that return types with arguments of type ElementModifier and TypeMethodDescriptionAbstractTagProcessor.content
(WorkerContext ctx, Tag tag, String content) Anchor.content
(WorkerContext ctx, Tag tag, String content) Body.content
(WorkerContext ctx, Tag tag, String content) Div.content
(WorkerContext ctx, Tag tag, String content) DummyTagProcessor.content
(WorkerContext ctx, Tag tag, String content) Header.content
(WorkerContext ctx, Tag tag, String content) NonSanitizedTag.content
(WorkerContext ctx, Tag tag, String content) OrderedUnorderedListItem.content
(WorkerContext ctx, Tag tag, String content) ParaGraph.content
(WorkerContext ctx, Tag tag, String content) Span.content
(WorkerContext ctx, Tag tag, String content) TagProcessor.content
(WorkerContext ctx, Tag tag, String content) This method is called if there is text content encountered between the opening and closing tags this TagProcessor is mapped to.AbstractTagProcessor.currentContentToParagraph
(List<Element> currentContent, boolean addNewLines) Default apply CSS to false and tag to null.AbstractTagProcessor.currentContentToParagraph
(List<Element> currentContent, boolean addNewLines, boolean applyCSS, Tag tag, WorkerContext ctx) Adds currentContent list to a paragraph element.AbstractTagProcessor.end
(WorkerContext ctx, Tag tag, List<Element> currentContent) Classes extending AbstractTagProcessor should override this method for actions that should be done inTagProcessor.endElement(WorkerContext, Tag, List)
.Anchor.end
(WorkerContext ctx, Tag tag, List<Element> currentContent) Break.end
(WorkerContext ctx, Tag tag, List<Element> currentContent) Div.end
(WorkerContext ctx, Tag tag, List<Element> currentContent) Header.end
(WorkerContext ctx, Tag tag, List<Element> currentContent) Image.end
(WorkerContext ctx, Tag tag, List<Element> currentContent) NonSanitizedTag.end
(WorkerContext ctx, Tag tag, List<Element> currentContent) OrderedUnorderedList.end
(WorkerContext ctx, Tag tag, List<Element> currentContent) OrderedUnorderedListItem.end
(WorkerContext ctx, Tag tag, List<Element> currentContent) ParaGraph.end
(WorkerContext ctx, Tag tag, List<Element> currentContent) Span.end
(WorkerContext ctx, Tag tag, List<Element> currentContent) AbstractTagProcessor.endElement
(WorkerContext ctx, Tag tag, List<Element> currentContent) Checks forCSS.Property.PAGE_BREAK_AFTER
, if the value is always aChunk.NEXTPAGE
is added to the currentContentList after callingAbstractTagProcessor.end(WorkerContext, Tag, List)
.DummyTagProcessor.endElement
(WorkerContext ctx, Tag tag, List<Element> currentContent) TagProcessor.endElement
(WorkerContext ctx, Tag tag, List<Element> currentContent) This method is called when a closing tag has been encountered of the TagProcessor implementation that is mapped to the tag.OrderedUnorderedList.populateList
(List<Element> currentContent) Fills a java.util.List with all elements found in currentContent.AbstractTagProcessor.start
(WorkerContext ctx, Tag tag) Classes extending AbstractTagProcessor should override this method for actions that should be done inTagProcessor.startElement(WorkerContext, Tag)
.Body.start
(WorkerContext ctx, Tag tag) HorizontalRule.start
(WorkerContext ctx, Tag tag) AbstractTagProcessor.startElement
(WorkerContext ctx, Tag tag) Calculates any found font size to pt values and set it in the CSS before callingAbstractTagProcessor.start(WorkerContext, Tag)
.
Checks forCSS.Property.PAGE_BREAK_BEFORE
, if the value is always aChunk.NEXTPAGE
added before the implementorsAbstractTagProcessor.start(WorkerContext, Tag)
method.DummyTagProcessor.startElement
(WorkerContext ctx, Tag tag) TagProcessor.startElement
(WorkerContext ctx, Tag tag) This method is called when a tag has been encountered.AbstractTagProcessor.textContent
(WorkerContext ctx, Tag tag, String content) Methods in com.itextpdf.tool.xml.html with parameters of type ElementModifier and TypeMethodDescriptionCssAppliers.apply
(Element e, Tag t, MarginMemory mm, PageSizeContainable psc, HtmlPipelineContext ctx) Given the element e, this method will lookup the right applier for the given Element.CssAppliers.apply
(Element e, Tag t, HtmlPipelineContext ctx) Convenience method.CssAppliersImpl.apply
(Element e, Tag t, MarginMemory mm, PageSizeContainable psc, HtmlPipelineContext ctx) CssAppliersImpl.apply
(Element e, Tag t, HtmlPipelineContext ctx) protected void
AbstractTagProcessor.updateParagraphFontIfNeeded
(Phrase p, Element child) In case child font is of bigger size than paragraph font, text overlapping may occur.Method parameters in com.itextpdf.tool.xml.html with type arguments of type ElementModifier and TypeMethodDescriptionprivate void
ParaGraph.addTabIntervalContent
(WorkerContext ctx, Tag tag, List<Element> currentContent, Paragraph p, String value) Applies the tab interval of the p tag on itsTabbedChunk
elements.private void
ParaGraph.addTabStopsContent
(List<Element> currentContent, Paragraph p, String value) Applies the tab stops of the p tag on itsTabbedChunk
elements.AbstractTagProcessor.currentContentToParagraph
(List<Element> currentContent, boolean addNewLines) Default apply CSS to false and tag to null.AbstractTagProcessor.currentContentToParagraph
(List<Element> currentContent, boolean addNewLines, boolean applyCSS, Tag tag, WorkerContext ctx) Adds currentContent list to a paragraph element.AbstractTagProcessor.end
(WorkerContext ctx, Tag tag, List<Element> currentContent) Classes extending AbstractTagProcessor should override this method for actions that should be done inTagProcessor.endElement(WorkerContext, Tag, List)
.Anchor.end
(WorkerContext ctx, Tag tag, List<Element> currentContent) Break.end
(WorkerContext ctx, Tag tag, List<Element> currentContent) Div.end
(WorkerContext ctx, Tag tag, List<Element> currentContent) Header.end
(WorkerContext ctx, Tag tag, List<Element> currentContent) Image.end
(WorkerContext ctx, Tag tag, List<Element> currentContent) NonSanitizedTag.end
(WorkerContext ctx, Tag tag, List<Element> currentContent) OrderedUnorderedList.end
(WorkerContext ctx, Tag tag, List<Element> currentContent) OrderedUnorderedListItem.end
(WorkerContext ctx, Tag tag, List<Element> currentContent) ParaGraph.end
(WorkerContext ctx, Tag tag, List<Element> currentContent) Span.end
(WorkerContext ctx, Tag tag, List<Element> currentContent) AbstractTagProcessor.endElement
(WorkerContext ctx, Tag tag, List<Element> currentContent) Checks forCSS.Property.PAGE_BREAK_AFTER
, if the value is always aChunk.NEXTPAGE
is added to the currentContentList after callingAbstractTagProcessor.end(WorkerContext, Tag, List)
.DummyTagProcessor.endElement
(WorkerContext ctx, Tag tag, List<Element> currentContent) TagProcessor.endElement
(WorkerContext ctx, Tag tag, List<Element> currentContent) This method is called when a closing tag has been encountered of the TagProcessor implementation that is mapped to the tag.OrderedUnorderedList.populateList
(List<Element> currentContent) Fills a java.util.List with all elements found in currentContent.protected void
ParaGraph.processParagraphItems
(WorkerContext ctx, Tag tag, List<Element> paragraphItems, List<Element> l) -
Uses of Element in com.itextpdf.tool.xml.html.head
Methods in com.itextpdf.tool.xml.html.head that return types with arguments of type ElementModifier and TypeMethodDescriptionStyle.content
(WorkerContext ctx, Tag tag, String content) Title.content
(WorkerContext ctx, Tag tag, String content) Link.start
(WorkerContext ctx, Tag tag) Meta.start
(WorkerContext ctx, Tag tag) XML.start
(WorkerContext ctx, Tag tag) -
Uses of Element in com.itextpdf.tool.xml.html.pdfelement
Classes in com.itextpdf.tool.xml.html.pdfelement that implement ElementModifier and TypeClassDescriptionclass
HtmlCell is created to provide more parameters to better mimic the behavior of table cell in HTML.class
ANoNewLineParagraph
is a series ofChunk
s and/orPhrases
.class
A TabbedChunk is a Chunk that contains tabcount and alignment data to allow the HTML to PDF conversion to accept tabstop css.Methods in com.itextpdf.tool.xml.html.pdfelement with parameters of type Element -
Uses of Element in com.itextpdf.tool.xml.html.table
Classes in com.itextpdf.tool.xml.html.table that implement ElementMethods in com.itextpdf.tool.xml.html.table that return types with arguments of type ElementModifier and TypeMethodDescriptionTableData.content
(WorkerContext ctx, Tag tag, String content) Table.end
(WorkerContext ctx, Tag tag, List<Element> currentContent) TableData.end
(WorkerContext ctx, Tag tag, List<Element> currentContent) TableRow.end
(WorkerContext ctx, Tag tag, List<Element> currentContent) Method parameters in com.itextpdf.tool.xml.html.table with type arguments of type ElementModifier and TypeMethodDescriptionprivate float
Table.calculateDivWidestElementWidth
(ArrayList<Element> divContent) An attempt to calculate a valid div width in case it is not fixed.Table.end
(WorkerContext ctx, Tag tag, List<Element> currentContent) TableData.end
(WorkerContext ctx, Tag tag, List<Element> currentContent) TableRow.end
(WorkerContext ctx, Tag tag, List<Element> currentContent) protected void
TableData.processChunkItems
(List<Element> chunks, HtmlCell cell) Constructor parameters in com.itextpdf.tool.xml.html.table with type arguments of type ElementModifierConstructorDescriptionTableRowElement
(List<Element> currentContent, TableRowElement.Place place) Constructor based on the currentContent and aTableRowElement.Place
. -
Uses of Element in com.itextpdf.tool.xml.pipeline
Fields in com.itextpdf.tool.xml.pipeline with type parameters of type ElementMethods in com.itextpdf.tool.xml.pipeline that return types with arguments of type ElementMethods in com.itextpdf.tool.xml.pipeline with parameters of type ElementModifier and TypeMethodDescriptionvoid
Add a single element to the list of elements.Method parameters in com.itextpdf.tool.xml.pipeline with type arguments of type ElementModifier and TypeMethodDescriptionvoid
add all elements to the list.Constructors in com.itextpdf.tool.xml.pipeline with parameters of type Element -
Uses of Element in com.itextpdf.tool.xml.pipeline.html
Fields in com.itextpdf.tool.xml.pipeline.html with type parameters of type ElementMethods in com.itextpdf.tool.xml.pipeline.html that return types with arguments of type ElementMethods in com.itextpdf.tool.xml.pipeline.html with parameters of type ElementModifier and TypeMethodDescriptionvoid
Add an element to this keepers stack.Method parameters in com.itextpdf.tool.xml.pipeline.html with type arguments of type ElementModifier and TypeMethodDescriptionvoid
StackKeeper.add
(Collection<? extends Element> elements) Add all given elements to the stack, according to the natural order.