Uses of Interface
com.itextpdf.text.Element
Packages that use Element
Package
Description
XMLWorker package provides a framework to parse XML to PDF with iText.
Contains classes that can apply css rules on certain
Elements.Everything to parse HTML tags to pdf used by the
HtmlPipeline is in here.TagProcessor implementations for tags in HTML head.
Elements 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 TypeInterfaceDescriptioninterfaceInterface implemented by Element objects that can potentially consume a lot of memory.interfaceInterface for a text element to which other objects can be added.Classes in com.itextpdf.text that implement ElementModifier and TypeClassDescriptionclassAnAnchorcan be a reference or a destination of a reference.classAnAnnotationis a little note that can be added to a page on a document.classAChapteris a specialSection.classChapter with auto numbering.classThis is the smallest significant part of text that can be added to a document.classA special-version ofLISTwhich use greek-letters.classThis is anElementthat contains some user defined meta information about the document.classAnImageis the representation of a graphic element (JPEG, PNG or GIF) that has to be inserted into the documentclassCCITT Image data that has to be inserted into the documentclassSupport for JBIG2 images.classRaw Image data that has to be inserted into the documentclassPdfTemplate that has to be inserted into the documentclassAnImgWMFis the representation of a windows metafile that has to be inserted into the documentclassAnJpegis the representation of a graphic element (JPEG) that has to be inserted into the documentclassAnJpeg2000is the representation of a graphic element (JPEG) that has to be inserted into the documentclassAListcontains severalListItems.classAListItemis aParagraphthat can be added to aList.classDeprecated.since 5.5.9.classDeprecated.since 5.5.9.classThis is anElementthat contains some meta information about the document.classAParagraphis a series ofChunks and/orPhrases.classAPhraseis a series ofChunks.classARectangleis the representation of a geometric figure.classARectangleReadOnlyis the representation of a geometric figure.classA special-version ofLISTwhich use roman-letters.classASectionis a part of aDocumentcontaining otherSections,Paragraphs,Listand/orTables.classAn element that is not an element, it holdsElement.WRITABLE_DIRECTas Element type.classA special-version ofLISTwhich use zapfdingbats-letters.classA special-version ofLISTwhich use zapfdingbats-numbers (1..10).Subclasses with type arguments of type Element in com.itextpdf.textModifier and TypeClassDescriptionclassAPhraseis a series ofChunks.classASectionis a part of aDocumentcontaining otherSections,Paragraphs,Listand/orTables.Fields in com.itextpdf.text declared as ElementModifier and TypeFieldDescriptionprotected ElementMarkedObject.elementDeprecated.The element that is wrapped in a MarkedObject.Fields in com.itextpdf.text with type parameters of type ElementModifier and TypeFieldDescriptionList.listThis is theArrayListcontaining the differentListItems.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 TypeMethodDescriptionbooleanAdds anElementto theDocument.booleanSignals that anElementwas added to theDocument.booleanSignals that anElementwas added to theDocument.booleanAdds anElementto theList.booleanAdds anElementto theList.voidDeprecated.Adds aParagraph,ListorTableto thisSection.booleanDeprecated.Adds aParagraph,List,Tableor anotherSectionto thisSection.booleanAdds anElementto theParagraph.voidAdds aChunk, anAnchoror anotherPhraseto thisPhrase.booleanAdds aChunk,Anchoror anotherPhraseto thisPhrase.booleanAdds anElementto theList.voidAdds aParagraph,ListorTableto thisSection.booleanAdds aParagraph,List,Tableor anotherSectionto thisSection.booleanAdds an element to theTextElementArray.booleanAdds anElementto theList.booleanAdds anElementto theList.protected voidPhrase.addSpecial(Element object) Adds anElementto theParagraph.Method parameters in com.itextpdf.text with type arguments of type ElementModifier and TypeMethodDescriptionbooleanMarkedSection.addAll(Collection<? extends Element> collection) Deprecated.Adds a collection ofElements to thisSection.booleanPhrase.addAll(Collection<? extends Element> collection) Adds a collection ofChunks to thisPhrase.booleanSection.addAll(Collection<? extends Element> collection) Adds a collection ofElements 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 TypeClassDescriptionclassDeprecated.since 5.5.2classDeprecated.since 5.5.2Fields in com.itextpdf.text.html.simpleparser with type parameters of type ElementModifier and TypeFieldDescriptionHTMLWorker.objectListDeprecated.The resulting list of elements.HTMLWorker.stackDeprecated.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 TypeClassDescriptionclassclassA special element to put a collection of elements at an absolute position.classA cell in a PdfPTable.classCreated by IntelliJ IDEA.classThis 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.compositeElementsFloatLayout.contentPdfDiv.contentPdfDocument.floatingElementsMethods 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 TypeMethodDescriptionbooleanSignals that anElementwas added to theDocument.voidColumnText.addElement(Element element) Adds an element.voidPdfDiv.addElement(Element element) voidPdfPCell.addElement(Element element) Adds an iText element to the cell.static booleanColumnText.isAllowedElement(Element element) Method parameters in com.itextpdf.text.pdf with type arguments of type ElementModifier and TypeMethodDescriptionprivate intFloatLayout.floatingLayout(List<Element> floatingElements, boolean simulate) voidPdfDiv.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 TypeClassDescriptionclassElement that draws a dotted line from left to right.classElement that draws a solid line from left to right.classHelper class implementing the DrawInterface. -
Uses of Element in com.itextpdf.tool.xml
Subclasses with type arguments of type Element in com.itextpdf.tool.xmlModifier and TypeClassDescriptionclassImplementation of theElementHandlerinterface that helps you build a list of iTextElements. -
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 TypeInterfaceDescriptioninterfaceCssApplier<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.mapMethods 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.NEXTPAGEis 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.NEXTPAGEadded 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 voidAbstractTagProcessor.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 voidParaGraph.addTabIntervalContent(WorkerContext ctx, Tag tag, List<Element> currentContent, Paragraph p, String value) Applies the tab interval of the p tag on itsTabbedChunkelements.private voidParaGraph.addTabStopsContent(List<Element> currentContent, Paragraph p, String value) Applies the tab stops of the p tag on itsTabbedChunkelements.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.NEXTPAGEis 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 voidParaGraph.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 TypeClassDescriptionclassHtmlCell is created to provide more parameters to better mimic the behavior of table cell in HTML.classANoNewLineParagraphis a series ofChunks and/orPhrases.classA 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 floatTable.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 voidTableData.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 TypeMethodDescriptionvoidAdd a single element to the list of elements.Method parameters in com.itextpdf.tool.xml.pipeline with type arguments of type ElementModifier and TypeMethodDescriptionvoidadd 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 TypeMethodDescriptionvoidAdd an element to this keepers stack.Method parameters in com.itextpdf.tool.xml.pipeline.html with type arguments of type ElementModifier and TypeMethodDescriptionvoidStackKeeper.add(Collection<? extends Element> elements) Add all given elements to the stack, according to the natural order.