Uses of Class
com.itextpdf.tool.xml.Tag
Packages that use Tag
Package
Description
XMLWorker package provides a framework to parse XML to PDF with iText.
Collection of classes to handle css files, rules, properties.
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.
TagProcessor implementations for
table
tags.The pipeline package contains the pipeline implementations
Contains CSS processing pipeline.
Collection of
CustomContext
and
WorkerContext
implementations.Contains pipelines that can be used as last pipe in the line.
Contains pipeline stuff for HTML
-
Uses of Tag in com.itextpdf.tool.xml
Fields in com.itextpdf.tool.xml declared as TagFields in com.itextpdf.tool.xml with type parameters of type TagMethods in com.itextpdf.tool.xml that return TagModifier and TypeMethodDescriptionprotected Tag
Creates a new Tag object from the given parameters.Finds the first child that matches the given name and namespace.Finds the first child that matches the given name and ns.WorkerContext.getCurrentTag()
protected Tag
XMLWorker.getCurrentTag()
Returns the current tag.Tag.getParent()
Returns the parent tag for this tag.TagUtils.getSibling
(Tag t, int i) Method used for retrieving a sibling of the given tag t.private Tag
Tag.recursiveGetChild
(Tag tag, String name, String ns, boolean recursive) Methods in com.itextpdf.tool.xml that return types with arguments of type TagModifier and TypeMethodDescriptionTag.getChildren()
Returns all children of this tag.Tag.getChildren
(String name) Returns all children of this tag with the given name.Tag.iterator()
Methods in com.itextpdf.tool.xml with parameters of type TagModifier and TypeMethodDescriptionvoid
Add a child tag to this tag.Pipeline<?>
Pipeline.close
(WorkerContext context, Tag t, ProcessObject po) Called when a closing tag has been encountered.boolean
Tag.compareTag
(Tag t) Compare this tag with t for namespace and name equality.Pipeline<?>
Pipeline.content
(WorkerContext context, Tag t, String content, ProcessObject po) Called when content has been encountered.TagUtils.getSibling
(Tag t, int i) Method used for retrieving a sibling of the given tag t.Pipeline<?>
Pipeline.open
(WorkerContext context, Tag t, ProcessObject po) Called when an opening tag has been encountered.private Tag
Tag.recursiveGetChild
(Tag tag, String name, String ns, boolean recursive) private boolean
Tag.recursiveHasChild
(Tag tag, String name, String ns, boolean recursive) void
WorkerContext.setCurrentTag
(Tag t) Contains the current tag.void
Set the tags parent tag. -
Uses of Tag in com.itextpdf.tool.xml.css
Methods in com.itextpdf.tool.xml.css with parameters of type TagModifier and TypeMethodDescriptionprivate boolean
StyleAttrCSSResolver.canInherite
(Tag t, String property) Defaults to true if noCssInheritanceRules
implementation set.float
CssUtils.checkMetricStyle
(Tag t, String style) Use only if value of style is a metric value (CssUtils.isMetricValue(String)
) or a numeric value in pixels (CssUtils.isNumericValue(String)
).
Checks if the style is present in the css of the tag, then parses it to pt.Return CSS declarations for the given tag.Looks for all CSS properties that affect the given tag.Processes a tag and retrieves CSS.float
FontSizeTranslator.getFontSize
(Tag tag) Retrieves the pt font size fromgetCSS()
withCSS.Property.FONT_SIZE
or returns default 12ptfloat
CssUtils.getLeftAndRightMargin
(Tag t, float pageWidth) Returns the sum of the left and right margin of a tag.float
Tries to calculate a width from a tag and it's ancestors.float
boolean
CssInheritanceRules.inheritCssSelector
(Tag tag, String key) Validate inheritance of any CSS property for the given tag.boolean
DefaultCssInheritanceRules.inheritCssSelector
(Tag tag, String key) boolean
private boolean
boolean
void
CssFilesImpl.populateCss
(Tag t, Map<String, String> aggregatedProps) void
StyleAttrCSSResolver.resolveStyles
(Tag t) Also taking into account the CSS properties of any parent tag in the given tag.float
FontSizeTranslator.translateFontSize
(Tag tag) Returns the css value of the style font-size in a pt-value. -
Uses of Tag in com.itextpdf.tool.xml.css.apply
Methods in com.itextpdf.tool.xml.css.apply with parameters of type TagModifier and TypeMethodDescriptionChunkCssApplier.apply
(Chunk c, Tag t, MarginMemory mm, PageSizeContainable psc, HtmlPipelineContext ctx) DivCssApplier.apply
(PdfDiv div, Tag t, MarginMemory memory, PageSizeContainable psc, HtmlPipelineContext context) HtmlCellCssApplier.apply
(HtmlCell cell, Tag t, MarginMemory memory, PageSizeContainable psc) Applies css to a HtmlCellHtmlCellCssApplier.apply
(HtmlCell cell, Tag t, MarginMemory memory, PageSizeContainable psc, HtmlPipelineContext ctx) Applies CSS to an Image.ImageCssApplier.apply
(Image img, Tag tag, MarginMemory mm, PageSizeContainable psc, HtmlPipelineContext ctx) LineSeparatorCssApplier.apply
(LineSeparator ls, Tag t, MarginMemory mm, PageSizeContainable psc, HtmlPipelineContext ctx) LineSeparatorCssApplier.apply
(LineSeparator ls, Tag t, PageSizeContainable psc) Applies CSS to LineSeparatorsUtility method applying style to a list when no ImageProvider is available.ListStyleTypeCssApplier.apply
(List list, Tag t, MarginMemory memory, PageSizeContainable psc, HtmlPipelineContext context) ListStyleTypeCssApplier.apply
(List list, Tag t, HtmlPipelineContext context) The ListCssApplier has the capabilities to change the type of the givenList
dependable on the css.NoNewLineParagraphCssApplier.apply
(NoNewLineParagraph p, Tag t, MarginMemory configuration) Styles a NoNewLineParagraphNoNewLineParagraphCssApplier.apply
(NoNewLineParagraph p, Tag t, MarginMemory configuration, PageSizeContainable psc, HtmlPipelineContext ctx) ParagraphCssApplier.apply
(Paragraph p, Tag t, MarginMemory configuration) Styles a paragraphParagraphCssApplier.apply
(Paragraph p, Tag t, MarginMemory configuration, PageSizeContainable psc, HtmlPipelineContext ctx) ChunkCssApplier.applyFontStyles
(Tag t) MaxLeadingAndSize.calculateLeading
(Tag t) Calculates the leading of the given tag.void
MaxLeadingAndSize.setLeading
(Tag tag) Set the largest leading based on calculateLeading only.void
MaxLeadingAndSize.setVariablesBasedOnChildren
(Tag t) Sets largest font size and largest leading based on the css styles "font-size" and "line-height" of a given tag and its children.Method parameters in com.itextpdf.tool.xml.css.apply with type arguments of type TagModifier and TypeMethodDescriptionfloat
MaxLeadingAndSize.getLargestFontFromChildren
(List<Tag> children) Iterates over all children in a List and returns the largest font size found.private float
MaxLeadingAndSize.getLargestLeadingFromChildren
(List<Tag> children) Iterates over all children in a List and returns the largest leading found. -
Uses of Tag in com.itextpdf.tool.xml.css.parser
Methods in com.itextpdf.tool.xml.css.parser with parameters of type TagModifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
boolean
boolean
-
Uses of Tag in com.itextpdf.tool.xml.html
Fields in com.itextpdf.tool.xml.html with type parameters of type TagMethods in com.itextpdf.tool.xml.html that return TagMethods in com.itextpdf.tool.xml.html with parameters of type TagModifier 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.CssApplier.apply
(T e, Tag t, MarginMemory mm, PageSizeContainable psc, HtmlPipelineContext ctx) Styles an elementCssAppliers.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) private float
OrderedUnorderedList.calculateTopOrBottomSpacing
(boolean isTop, boolean storeMarginBottom, Tag tag, Tag child, WorkerContext ctx) Calculates top or bottom spacing of the list.AbstractTagProcessor.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, 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.private Tag
ParaGraph.getLastChild
(Tag tag) private int
protected int
AbstractTagProcessor.getRunDirection
(Tag tag) protected void
ParaGraph.processListItems
(WorkerContext ctx, Tag tag, List<ListItem> listItems, List<Element> l) protected void
ParaGraph.processParagraphItems
(WorkerContext ctx, Tag tag, List<Element> paragraphItems, List<Element> l) 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) -
Uses of Tag in com.itextpdf.tool.xml.html.head
Methods in com.itextpdf.tool.xml.html.head with parameters of type TagModifier 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 Tag in com.itextpdf.tool.xml.html.table
Methods in com.itextpdf.tool.xml.html.table with parameters of type TagModifier and TypeMethodDescriptionprivate float
Table.calculateTargetWidth
(Tag tag, float[] columnWidths, float outerWidth, WorkerContext ctx) Calculates the target width.TableData.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) private float
Table.getTableOuterWidth
(Tag tag, float horBorderSpacing, WorkerContext ctx) Adds horizontal values of a table and its parent if present.protected void
TableData.processListItems
(WorkerContext ctx, Tag tag, List<ListItem> listItems, HtmlCell cell) static TableStyleValues
Table.setBorderAttributeForCell
(Tag tag) static TableStyleValues
Table.setStyleValues
(Tag tag) Set the table style values in aTableStyleValues
object based on attributes and css of the given tag.private void
Table.setVerticalMargin
(PdfPTable table, Tag t, TableStyleValues values, WorkerContext ctx) Sets the top and bottom margin of the given table. -
Uses of Tag in com.itextpdf.tool.xml.pipeline
Methods in com.itextpdf.tool.xml.pipeline with parameters of type TagModifier and TypeMethodDescriptionPipeline<?>
AbstractPipeline.close
(WorkerContext context, Tag t, ProcessObject po) Just calls getNext.
Override this to get notified on encountered closing tags.Pipeline<?>
AbstractPipeline.content
(WorkerContext ctx, Tag currentTag, String text, ProcessObject po) Just calls getNext.
Override this to get notified on encountered content.Pipeline<?>
AbstractPipeline.open
(WorkerContext context, Tag t, ProcessObject po) Just calls getNext.
Override this to get notified on encountered opening tags. -
Uses of Tag in com.itextpdf.tool.xml.pipeline.css
Methods in com.itextpdf.tool.xml.pipeline.css with parameters of type TagModifier and TypeMethodDescriptionPipeline<?>
CssResolverPipeline.open
(WorkerContext context, Tag t, ProcessObject po) void
CSSResolver.resolveStyles
(Tag t) This method should resolve css, meaning, it will look at the css and retrieve relevant css rules for the given tag. -
Uses of Tag in com.itextpdf.tool.xml.pipeline.ctx
Fields in com.itextpdf.tool.xml.pipeline.ctx declared as TagMethods in com.itextpdf.tool.xml.pipeline.ctx that return TagMethods in com.itextpdf.tool.xml.pipeline.ctx with parameters of type Tag -
Uses of Tag in com.itextpdf.tool.xml.pipeline.end
Methods in com.itextpdf.tool.xml.pipeline.end with parameters of type TagModifier and TypeMethodDescriptionElementHandlerPipeline.close
(WorkerContext context, Tag t, ProcessObject po) Pipeline<?>
PdfWriterPipeline.close
(WorkerContext context, Tag t, ProcessObject po) Pipeline<?>
ElementHandlerPipeline.content
(WorkerContext ctx, Tag currentTag, String text, ProcessObject po) Pipeline<?>
PdfWriterPipeline.content
(WorkerContext context, Tag currentTag, String text, ProcessObject po) ElementHandlerPipeline.open
(WorkerContext context, Tag t, ProcessObject po) Pipeline<?>
PdfWriterPipeline.open
(WorkerContext context, Tag t, ProcessObject po) -
Uses of Tag in com.itextpdf.tool.xml.pipeline.html
Fields in com.itextpdf.tool.xml.pipeline.html declared as TagMethods in com.itextpdf.tool.xml.pipeline.html that return TagMethods in com.itextpdf.tool.xml.pipeline.html with parameters of type TagModifier and TypeMethodDescriptionprotected void
HtmlPipeline.addStackKeeper
(Tag t, HtmlPipelineContext hcc, TagProcessor tp) Pipeline<?>
AutoDocPipeline.close
(WorkerContext context, Tag t, ProcessObject po) Pipeline<?>
HtmlPipeline.close
(WorkerContext context, Tag t, ProcessObject po) Pipeline<?>
HtmlPipeline.content
(WorkerContext context, Tag t, String text, ProcessObject po) Pipeline<?>
AutoDocPipeline.open
(WorkerContext context, Tag t, ProcessObject po) Pipeline<?>
HtmlPipeline.open
(WorkerContext context, Tag t, ProcessObject po) Constructors in com.itextpdf.tool.xml.pipeline.html with parameters of type Tag -
Uses of Tag in com.itextpdf.tool.xml.util
Methods in com.itextpdf.tool.xml.util that return types with arguments of type TagModifier and TypeMethodDescriptionParentTreeUtil.getParentTagTree
(Tag tag, List<Tag> tree) creates a parentTree of all parent Tag objects of a given TagMethods in com.itextpdf.tool.xml.util with parameters of type TagModifier and TypeMethodDescriptionParentTreeUtil.getParentTagTree
(Tag tag, List<Tag> tree) creates a parentTree of all parent Tag objects of a given TagParentTreeUtil.getParentTree
(Tag t) creates a parentTree of all parents of a given TagMethod parameters in com.itextpdf.tool.xml.util with type arguments of type Tag