Uses of Class
com.itextpdf.tool.xml.Tag
-
Packages that use Tag Package Description com.itextpdf.tool.xml XMLWorker package provides a framework to parse XML to PDF with iText.com.itextpdf.tool.xml.css Collection of classes to handle css files, rules, properties.com.itextpdf.tool.xml.css.apply Contains classes that can apply css rules on certainElements.com.itextpdf.tool.xml.css.parser com.itextpdf.tool.xml.html Everything to parse HTML tags to pdf used by theHtmlPipelineis in here.com.itextpdf.tool.xml.html.head TagProcessor implementations for tags in HTML head.com.itextpdf.tool.xml.html.table TagProcessor implementations fortabletags.com.itextpdf.tool.xml.pipeline The pipeline package contains the pipeline implementationscom.itextpdf.tool.xml.pipeline.css Contains CSS processing pipeline.com.itextpdf.tool.xml.pipeline.ctx Collection ofCustomContextandWorkerContextimplementations.com.itextpdf.tool.xml.pipeline.end Contains pipelines that can be used as last pipe in the line.com.itextpdf.tool.xml.pipeline.html Contains pipeline stuff for HTMLcom.itextpdf.tool.xml.util -
-
Uses of Tag in com.itextpdf.tool.xml
Fields in com.itextpdf.tool.xml declared as Tag Modifier and Type Field Description private TagTag. parentFields in com.itextpdf.tool.xml with type parameters of type Tag Modifier and Type Field Description private java.util.List<Tag>Tag. childrenMethods in com.itextpdf.tool.xml that return Tag Modifier and Type Method Description protected TagXMLWorker. createTag(java.lang.String tag, java.util.Map<java.lang.String,java.lang.String> attr, java.lang.String ns)Creates a new Tag object from the given parameters.TagTag. getChild(java.lang.String name, java.lang.String ns)Finds the first child that matches the given name and namespace.TagTag. getChild(java.lang.String name, java.lang.String ns, boolean recursive)Finds the first child that matches the given name and ns.TagWorkerContext. getCurrentTag()protected TagXMLWorker. getCurrentTag()Returns the current tag.TagTag. getParent()Returns the parent tag for this tag.TagTagUtils. getSibling(Tag t, int i)Method used for retrieving a sibling of the given tag t.private TagTag. recursiveGetChild(Tag tag, java.lang.String name, java.lang.String ns, boolean recursive)Methods in com.itextpdf.tool.xml that return types with arguments of type Tag Modifier and Type Method Description java.util.List<Tag>Tag. getChildren()Returns all children of this tag.java.util.List<Tag>Tag. getChildren(java.lang.String name)Returns all children of this tag with the given name.java.util.Iterator<Tag>Tag. iterator()Methods in com.itextpdf.tool.xml with parameters of type Tag Modifier and Type Method Description voidTag. addChild(Tag t)Add a child tag to this tag.Pipeline<?>Pipeline. close(WorkerContext context, Tag t, ProcessObject po)Called when a closing tag has been encountered.booleanTag. compareTag(Tag t)Compare this tag with t for namespace and name equality.Pipeline<?>Pipeline. content(WorkerContext context, Tag t, java.lang.String content, ProcessObject po)Called when content has been encountered.TagTagUtils. 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 TagTag. recursiveGetChild(Tag tag, java.lang.String name, java.lang.String ns, boolean recursive)private booleanTag. recursiveHasChild(Tag tag, java.lang.String name, java.lang.String ns, boolean recursive)voidWorkerContext. setCurrentTag(Tag t)Contains the current tag.voidTag. setParent(Tag parent)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 Tag Modifier and Type Method Description private booleanStyleAttrCSSResolver. canInherite(Tag t, java.lang.String property)Defaults to true if noCssInheritanceRulesimplementation set.floatCssUtils. checkMetricStyle(Tag t, java.lang.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.java.util.List<CssRule>CssFile. get(Tag t)Return CSS declarations for the given tag.java.util.List<CssRule>CssFileImpl. get(Tag t)java.util.List<CssRule>CSSFileWrapper. get(Tag t)java.util.Map<java.lang.String,java.lang.String>CssFiles. getCSS(Tag t)Looks for all CSS properties that affect the given tag.java.util.Map<java.lang.String,java.lang.String>CssFilesImpl. getCSS(Tag t)Processes a tag and retrieves CSS.floatFontSizeTranslator. getFontSize(Tag tag)Retrieves the pt font size fromgetCSS()withCSS.Property.FONT_SIZEor returns default 12ptjava.lang.FloatHeightCalculator. getHeight(Tag tag, float pageHeight)floatCssUtils. getLeftAndRightMargin(Tag t, float pageWidth)Returns the sum of the left and right margin of a tag.floatWidthCalculator. getWidth(Tag tag, java.util.List<java.lang.String> roottags, float pagewidth)Tries to calculate a width from a tag and it's ancestors.floatWidthCalculator. getWidth(Tag tag, java.util.List<java.lang.String> roottags, float pagewidth, float initialTotalWidth)booleanCssInheritanceRules. inheritCssSelector(Tag tag, java.lang.String key)Validate inheritance of any CSS property for the given tag.booleanDefaultCssInheritanceRules. inheritCssSelector(Tag tag, java.lang.String key)booleanCssSelector. matches(Tag t)private booleanCssSelector. matches(Tag t, int index)booleanCssSelectorItem. matches(Tag t)voidCssFilesImpl. populateCss(Tag t, java.util.Map<java.lang.String,java.lang.String> aggregatedProps)voidStyleAttrCSSResolver. resolveStyles(Tag t)Also taking into account the CSS properties of any parent tag in the given tag.floatFontSizeTranslator. 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 Tag Modifier and Type Method Description ChunkChunkCssApplier. apply(Chunk c, Tag t)ChunkChunkCssApplier. apply(Chunk c, Tag t, MarginMemory mm, PageSizeContainable psc, HtmlPipelineContext ctx)PdfDivDivCssApplier. apply(PdfDiv div, Tag t, MarginMemory memory, PageSizeContainable psc, HtmlPipelineContext context)HtmlCellHtmlCellCssApplier. apply(HtmlCell cell, Tag t, MarginMemory memory, PageSizeContainable psc)Applies css to a HtmlCellHtmlCellHtmlCellCssApplier. apply(HtmlCell cell, Tag t, MarginMemory memory, PageSizeContainable psc, HtmlPipelineContext ctx)ImageImageCssApplier. apply(Image img, Tag tag)Applies CSS to an Image.ImageImageCssApplier. apply(Image img, Tag tag, MarginMemory mm, PageSizeContainable psc, HtmlPipelineContext ctx)LineSeparatorLineSeparatorCssApplier. apply(LineSeparator ls, Tag t, MarginMemory mm, PageSizeContainable psc, HtmlPipelineContext ctx)LineSeparatorLineSeparatorCssApplier. apply(LineSeparator ls, Tag t, PageSizeContainable psc)Applies CSS to LineSeparatorsElementListStyleTypeCssApplier. apply(List e, Tag t)Utility method applying style to a list when no ImageProvider is available.ListListStyleTypeCssApplier. apply(List list, Tag t, MarginMemory memory, PageSizeContainable psc, HtmlPipelineContext context)ListListStyleTypeCssApplier. apply(List list, Tag t, HtmlPipelineContext context)The ListCssApplier has the capabilities to change the type of the givenListdependable on the css.NoNewLineParagraphNoNewLineParagraphCssApplier. apply(NoNewLineParagraph p, Tag t, MarginMemory configuration)Styles a NoNewLineParagraphNoNewLineParagraphNoNewLineParagraphCssApplier. apply(NoNewLineParagraph p, Tag t, MarginMemory configuration, PageSizeContainable psc, HtmlPipelineContext ctx)ParagraphParagraphCssApplier. apply(Paragraph p, Tag t, MarginMemory configuration)Styles a paragraphParagraphParagraphCssApplier. apply(Paragraph p, Tag t, MarginMemory configuration, PageSizeContainable psc, HtmlPipelineContext ctx)FontChunkCssApplier. applyFontStyles(Tag t)java.lang.FloatMaxLeadingAndSize. calculateLeading(Tag t)Calculates the leading of the given tag.voidMaxLeadingAndSize. setLeading(Tag tag)Set the largest leading based on calculateLeading only.voidMaxLeadingAndSize. 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 Tag Modifier and Type Method Description floatMaxLeadingAndSize. getLargestFontFromChildren(java.util.List<Tag> children)Iterates over all children in a List and returns the largest font size found.private floatMaxLeadingAndSize. getLargestLeadingFromChildren(java.util.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 Tag Modifier and Type Method Description booleanCssSelectorParser.CssAttributeSelector. matches(Tag t)booleanCssSelectorParser.CssClassSelector. matches(Tag t)booleanCssSelectorParser.CssIdSelector. matches(Tag t)booleanCssSelectorParser.CssPseudoSelector. matches(Tag t)booleanCssSelectorParser.CssSeparatorSelector. matches(Tag t)booleanCssSelectorParser.CssTagSelector. matches(Tag t) -
Uses of Tag in com.itextpdf.tool.xml.html
Fields in com.itextpdf.tool.xml.html with type parameters of type Tag Modifier and Type Field Description private java.util.List<Tag>AbstractTagProcessor. treeMethods in com.itextpdf.tool.xml.html that return Tag Modifier and Type Method Description private TagParaGraph. getLastChild(Tag tag)Methods in com.itextpdf.tool.xml.html with parameters of type Tag Modifier and Type Method Description private voidParaGraph. addTabIntervalContent(WorkerContext ctx, Tag tag, java.util.List<Element> currentContent, Paragraph p, java.lang.String value)Applies the tab interval of the p tag on itsTabbedChunkelements.TCssApplier. apply(T e, Tag t, MarginMemory mm, PageSizeContainable psc, HtmlPipelineContext ctx)Styles an elementElementCssAppliers. 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.ElementCssAppliers. apply(Element e, Tag t, HtmlPipelineContext ctx)Convenience method.ElementCssAppliersImpl. apply(Element e, Tag t, MarginMemory mm, PageSizeContainable psc, HtmlPipelineContext ctx)ElementCssAppliersImpl. apply(Element e, Tag t, HtmlPipelineContext ctx)private floatOrderedUnorderedList. calculateTopOrBottomSpacing(boolean isTop, boolean storeMarginBottom, Tag tag, Tag child, WorkerContext ctx)Calculates top or bottom spacing of the list.java.util.List<Element>AbstractTagProcessor. content(WorkerContext ctx, Tag tag, java.lang.String content)java.util.List<Element>Anchor. content(WorkerContext ctx, Tag tag, java.lang.String content)java.util.List<Element>Body. content(WorkerContext ctx, Tag tag, java.lang.String content)java.util.List<Element>Div. content(WorkerContext ctx, Tag tag, java.lang.String content)java.util.List<Element>DummyTagProcessor. content(WorkerContext ctx, Tag tag, java.lang.String content)java.util.List<Element>Header. content(WorkerContext ctx, Tag tag, java.lang.String content)java.util.List<Element>NonSanitizedTag. content(WorkerContext ctx, Tag tag, java.lang.String content)java.util.List<Element>OrderedUnorderedListItem. content(WorkerContext ctx, Tag tag, java.lang.String content)java.util.List<Element>ParaGraph. content(WorkerContext ctx, Tag tag, java.lang.String content)java.util.List<Element>Span. content(WorkerContext ctx, Tag tag, java.lang.String content)java.util.List<Element>TagProcessor. content(WorkerContext ctx, Tag tag, java.lang.String content)This method is called if there is text content encountered between the opening and closing tags this TagProcessor is mapped to.java.util.List<Element>AbstractTagProcessor. currentContentToParagraph(java.util.List<Element> currentContent, boolean addNewLines, boolean applyCSS, Tag tag, WorkerContext ctx)Adds currentContent list to a paragraph element.java.util.List<Element>AbstractTagProcessor. end(WorkerContext ctx, Tag tag, java.util.List<Element> currentContent)Classes extending AbstractTagProcessor should override this method for actions that should be done inTagProcessor.endElement(WorkerContext, Tag, List).java.util.List<Element>Anchor. end(WorkerContext ctx, Tag tag, java.util.List<Element> currentContent)java.util.List<Element>Break. end(WorkerContext ctx, Tag tag, java.util.List<Element> currentContent)java.util.List<Element>Div. end(WorkerContext ctx, Tag tag, java.util.List<Element> currentContent)java.util.List<Element>Header. end(WorkerContext ctx, Tag tag, java.util.List<Element> currentContent)java.util.List<Element>Image. end(WorkerContext ctx, Tag tag, java.util.List<Element> currentContent)java.util.List<Element>NonSanitizedTag. end(WorkerContext ctx, Tag tag, java.util.List<Element> currentContent)java.util.List<Element>OrderedUnorderedList. end(WorkerContext ctx, Tag tag, java.util.List<Element> currentContent)java.util.List<Element>OrderedUnorderedListItem. end(WorkerContext ctx, Tag tag, java.util.List<Element> currentContent)java.util.List<Element>ParaGraph. end(WorkerContext ctx, Tag tag, java.util.List<Element> currentContent)java.util.List<Element>Span. end(WorkerContext ctx, Tag tag, java.util.List<Element> currentContent)java.util.List<Element>AbstractTagProcessor. endElement(WorkerContext ctx, Tag tag, java.util.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).java.util.List<Element>DummyTagProcessor. endElement(WorkerContext ctx, Tag tag, java.util.List<Element> currentContent)java.util.List<Element>TagProcessor. endElement(WorkerContext ctx, Tag tag, java.util.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 TagParaGraph. getLastChild(Tag tag)private intHeader. getLevel(Tag tag)protected intAbstractTagProcessor. getRunDirection(Tag tag)protected voidParaGraph. processListItems(WorkerContext ctx, Tag tag, java.util.List<ListItem> listItems, java.util.List<Element> l)protected voidParaGraph. processParagraphItems(WorkerContext ctx, Tag tag, java.util.List<Element> paragraphItems, java.util.List<Element> l)java.util.List<Element>AbstractTagProcessor. start(WorkerContext ctx, Tag tag)Classes extending AbstractTagProcessor should override this method for actions that should be done inTagProcessor.startElement(WorkerContext, Tag).java.util.List<Element>Body. start(WorkerContext ctx, Tag tag)java.util.List<Element>HorizontalRule. start(WorkerContext ctx, Tag tag)java.util.List<Element>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.java.util.List<Element>DummyTagProcessor. startElement(WorkerContext ctx, Tag tag)java.util.List<Element>TagProcessor. startElement(WorkerContext ctx, Tag tag)This method is called when a tag has been encountered.protected java.util.List<Element>AbstractTagProcessor. textContent(WorkerContext ctx, Tag tag, java.lang.String content) -
Uses of Tag in com.itextpdf.tool.xml.html.head
Methods in com.itextpdf.tool.xml.html.head with parameters of type Tag Modifier and Type Method Description java.util.List<Element>Style. content(WorkerContext ctx, Tag tag, java.lang.String content)java.util.List<Element>Title. content(WorkerContext ctx, Tag tag, java.lang.String content)java.util.List<Element>Link. start(WorkerContext ctx, Tag tag)java.util.List<Element>Meta. start(WorkerContext ctx, Tag tag)java.util.List<Element>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 Tag Modifier and Type Method Description private floatTable. calculateTargetWidth(Tag tag, float[] columnWidths, float outerWidth, WorkerContext ctx)Calculates the target width.java.util.List<Element>TableData. content(WorkerContext ctx, Tag tag, java.lang.String content)java.util.List<Element>Table. end(WorkerContext ctx, Tag tag, java.util.List<Element> currentContent)java.util.List<Element>TableData. end(WorkerContext ctx, Tag tag, java.util.List<Element> currentContent)java.util.List<Element>TableRow. end(WorkerContext ctx, Tag tag, java.util.List<Element> currentContent)private floatTable. getTableOuterWidth(Tag tag, float horBorderSpacing, WorkerContext ctx)Adds horizontal values of a table and its parent if present.protected voidTableData. processListItems(WorkerContext ctx, Tag tag, java.util.List<ListItem> listItems, HtmlCell cell)static TableStyleValuesTable. setBorderAttributeForCell(Tag tag)static TableStyleValuesTable. setStyleValues(Tag tag)Set the table style values in aTableStyleValuesobject based on attributes and css of the given tag.private voidTable. 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 Tag Modifier and Type Method Description Pipeline<?>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, java.lang.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 Tag Modifier and Type Method Description Pipeline<?>CssResolverPipeline. open(WorkerContext context, Tag t, ProcessObject po)voidCSSResolver. 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 Tag Modifier and Type Field Description private TagWorkerContextImpl. tagMethods in com.itextpdf.tool.xml.pipeline.ctx that return Tag Modifier and Type Method Description TagWorkerContextImpl. getCurrentTag()Methods in com.itextpdf.tool.xml.pipeline.ctx with parameters of type Tag Modifier and Type Method Description voidWorkerContextImpl. setCurrentTag(Tag t) -
Uses of Tag in com.itextpdf.tool.xml.pipeline.end
Methods in com.itextpdf.tool.xml.pipeline.end with parameters of type Tag Modifier and Type Method Description PipelineElementHandlerPipeline. close(WorkerContext context, Tag t, ProcessObject po)Pipeline<?>PdfWriterPipeline. close(WorkerContext context, Tag t, ProcessObject po)Pipeline<?>ElementHandlerPipeline. content(WorkerContext ctx, Tag currentTag, java.lang.String text, ProcessObject po)Pipeline<?>PdfWriterPipeline. content(WorkerContext context, Tag currentTag, java.lang.String text, ProcessObject po)PipelineElementHandlerPipeline. 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 Tag Modifier and Type Field Description private TagStackKeeper. tagMethods in com.itextpdf.tool.xml.pipeline.html that return Tag Modifier and Type Method Description TagStackKeeper. getTag()Methods in com.itextpdf.tool.xml.pipeline.html with parameters of type Tag Modifier and Type Method Description protected voidHtmlPipeline. 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, java.lang.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 Constructor Description StackKeeper(Tag t) -
Uses of Tag in com.itextpdf.tool.xml.util
Methods in com.itextpdf.tool.xml.util that return types with arguments of type Tag Modifier and Type Method Description java.util.List<Tag>ParentTreeUtil. getParentTagTree(Tag tag, java.util.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 Tag Modifier and Type Method Description java.util.List<Tag>ParentTreeUtil. getParentTagTree(Tag tag, java.util.List<Tag> tree)creates a parentTree of all parent Tag objects of a given Tagjava.util.List<java.lang.String>ParentTreeUtil. 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 Modifier and Type Method Description java.util.List<Tag>ParentTreeUtil. getParentTagTree(Tag tag, java.util.List<Tag> tree)creates a parentTree of all parent Tag objects of a given Tag
-