Package | Description |
---|---|
com.itextpdf.tool.xml |
XMLWorker package provides a framework to parse XML to PDF with iText.
|
com.itextpdf.tool.xml.html |
Everything to parse HTML tags to pdf used by the HtmlPipeline is in here.
|
com.itextpdf.tool.xml.html.head |
TagProcessor implementations for tags in HTML head.
|
com.itextpdf.tool.xml.html.table |
TagProcessor implementations for table tags.
|
com.itextpdf.tool.xml.pipeline |
The pipeline package contains the pipeline implementations
|
com.itextpdf.tool.xml.pipeline.css |
Contains CSS processing pipeline.
|
com.itextpdf.tool.xml.pipeline.ctx |
Collection of CustomContext and WorkerContext implementations.
|
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 HTML
|
Modifier and Type | Method and Description |
---|---|
protected static WorkerContext |
XMLWorker.getLocalWC()
Returns the local WorkerContext, beware: could be a newly initialized one, if XMLWorker.close() or XMLWorker.closeLocalWC() has been called before.
|
Modifier and Type | Method and Description |
---|---|
Pipeline> |
Pipeline.close(WorkerContext context, Tag t, ProcessObject po)
Called when a closing tag has been encountered.
|
Pipeline> |
Pipeline.content(WorkerContext context, Tag t, String content, ProcessObject po)
Called when content has been encountered.
|
Pipeline> |
Pipeline.init(WorkerContext context)
The init method allows implementation to initialize the pipeline.
|
Pipeline> |
Pipeline.open(WorkerContext context, Tag t, ProcessObject po)
Called when an opening tag has been encountered.
|
Modifier and Type | Method and Description |
---|---|
List<Element> |
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.
|
List<Element> |
Span.content(WorkerContext ctx, Tag tag, String content) |
List<Element> |
ParaGraph.content(WorkerContext ctx, Tag tag, String content) |
List<Element> |
OrderedUnorderedListItem.content(WorkerContext ctx, Tag tag, String content) |
List<Element> |
NonSanitizedTag.content(WorkerContext ctx, Tag tag, String content) |
List<Element> |
Header.content(WorkerContext ctx, Tag tag, String content) |
List<Element> |
DummyTagProcessor.content(WorkerContext ctx, Tag tag, String content) |
List<Element> |
Div.content(WorkerContext ctx, Tag tag, String content) |
List<Element> |
Body.content(WorkerContext ctx, Tag tag, String content) |
List<Element> |
Anchor.content(WorkerContext ctx, Tag tag, String content) |
List<Element> |
AbstractTagProcessor.content(WorkerContext ctx, Tag tag, String content) |
List<Element> |
AbstractTagProcessor.currentContentToParagraph(List<Element> currentContent, boolean addNewLines, boolean applyCSS, Tag tag, WorkerContext ctx)
Adds currentContent list to a paragraph element.
|
List<Element> |
Span.end(WorkerContext ctx, Tag tag, List<Element> currentContent) |
List<Element> |
ParaGraph.end(WorkerContext ctx, Tag tag, List<Element> currentContent) |
List<Element> |
OrderedUnorderedListItem.end(WorkerContext ctx, Tag tag, List<Element> currentContent) |
List<Element> |
OrderedUnorderedList.end(WorkerContext ctx, Tag tag, List<Element> currentContent) |
List<Element> |
NonSanitizedTag.end(WorkerContext ctx, Tag tag, List<Element> currentContent) |
List<Element> |
Image.end(WorkerContext ctx, Tag tag, List<Element> currentContent) |
List<Element> |
Header.end(WorkerContext ctx, Tag tag, List<Element> currentContent) |
List<Element> |
Div.end(WorkerContext ctx, Tag tag, List<Element> currentContent) |
List<Element> |
Break.end(WorkerContext ctx, Tag tag, List<Element> currentContent) |
List<Element> |
Anchor.end(WorkerContext ctx, Tag tag, List<Element> currentContent) |
List<Element> |
AbstractTagProcessor.end(WorkerContext ctx, Tag tag, List<Element> currentContent)
Classes extending AbstractTagProcessor should override this method for actions that should be done in TagProcessor.endElement(WorkerContext, Tag, List) .
|
List<Element> |
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.
|
List<Element> |
DummyTagProcessor.endElement(WorkerContext ctx, Tag tag, List<Element> currentContent) |
List<Element> |
AbstractTagProcessor.endElement(WorkerContext ctx, Tag tag, List<Element> currentContent)
Checks for CSS.Property.PAGE_BREAK_AFTER , if the value is always a Chunk.NEXTPAGE is added to the currentContentList after calling AbstractTagProcessor.end(WorkerContext, Tag, List) .
|
CSSResolver |
AbstractTagProcessor.getCSSResolver(WorkerContext context)
Utility method that fetches the CSSResolver from the if any and if it uses the default key.
|
HtmlPipelineContext |
AbstractTagProcessor.getHtmlPipelineContext(WorkerContext context)
Utility method that fetches the HtmlPipelineContext used if any and if it uses the default key.
|
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) |
List<Element> |
HorizontalRule.start(WorkerContext ctx, Tag tag) |
List<Element> |
Body.start(WorkerContext ctx, Tag tag) |
List<Element> |
AbstractTagProcessor.start(WorkerContext ctx, Tag tag)
Classes extending AbstractTagProcessor should override this method for actions that should be done in TagProcessor.startElement(WorkerContext, Tag) .
|
List<Element> |
TagProcessor.startElement(WorkerContext ctx, Tag tag)
This method is called when a tag has been encountered.
|
List<Element> |
DummyTagProcessor.startElement(WorkerContext ctx, Tag tag) |
List<Element> |
AbstractTagProcessor.startElement(WorkerContext ctx, Tag tag)
Calculates any found font size to pt values and set it in the CSS before calling AbstractTagProcessor.start(WorkerContext, Tag) .
Checks for CSS.Property.PAGE_BREAK_BEFORE , if the value is always a Chunk.NEXTPAGE added before the implementors AbstractTagProcessor.start(WorkerContext, Tag) method.
|
protected List<Element> |
AbstractTagProcessor.textContent(WorkerContext ctx, Tag tag, String content) |
Modifier and Type | Method and Description |
---|---|
List<Element> |
Title.content(WorkerContext ctx, Tag tag, String content) |
List<Element> |
Style.content(WorkerContext ctx, Tag tag, String content) |
List<Element> |
XML.start(WorkerContext ctx, Tag tag) |
List<Element> |
Meta.start(WorkerContext ctx, Tag tag) |
List<Element> |
Link.start(WorkerContext ctx, Tag tag) |
Modifier and Type | Method and Description |
---|---|
List<Element> |
TableData.content(WorkerContext ctx, Tag tag, String content) |
List<Element> |
TableRow.end(WorkerContext ctx, Tag tag, List<Element> currentContent) |
List<Element> |
TableData.end(WorkerContext ctx, Tag tag, List<Element> currentContent) |
List<Element> |
Table.end(WorkerContext ctx, Tag tag, List<Element> currentContent) |
protected void |
TableData.processListItems(WorkerContext ctx, Tag tag, List<ListItem> listItems, HtmlCell cell) |
Modifier and Type | Method and 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, String text, ProcessObject po)
Just calls getNext.
Override this to get notified on encountered content. |
T |
AbstractPipeline.getLocalContext(WorkerContext context)
Returns the local context for this class using getContextKey, override this together with getContextKey to change the key usage in case you want to add multiple identical pipelines to the worker.
|
Pipeline> |
AbstractPipeline.init(WorkerContext context) |
Pipeline> |
AbstractPipeline.open(WorkerContext context, Tag t, ProcessObject po)
Just calls getNext.
Override this to get notified on encountered opening tags. |
Modifier and Type | Method and Description |
---|---|
Pipeline> |
CssResolverPipeline.init(WorkerContext context) |
Pipeline> |
CssResolverPipeline.open(WorkerContext context, Tag t, ProcessObject po) |
Modifier and Type | Class and Description |
---|---|
class |
WorkerContextImpl
The global WorkerContext, a storage for CustomContexts.
|
Modifier and Type | Method and Description |
---|---|
Pipeline> |
PdfWriterPipeline.close(WorkerContext context, Tag t, ProcessObject po) |
Pipeline |
ElementHandlerPipeline.close(WorkerContext context, Tag t, ProcessObject po) |
Pipeline> |
PdfWriterPipeline.content(WorkerContext context, Tag currentTag, String text, ProcessObject po) |
Pipeline> |
ElementHandlerPipeline.content(WorkerContext ctx, Tag currentTag, String text, ProcessObject po) |
Pipeline> |
PdfWriterPipeline.init(WorkerContext context) |
Pipeline> |
PdfWriterPipeline.open(WorkerContext context, Tag t, ProcessObject po) |
Pipeline |
ElementHandlerPipeline.open(WorkerContext context, Tag t, ProcessObject po) |
Modifier and Type | Method and Description |
---|---|
Pipeline> |
HtmlPipeline.close(WorkerContext context, Tag t, ProcessObject po) |
Pipeline> |
AutoDocPipeline.close(WorkerContext context, Tag t, ProcessObject po) |
Pipeline> |
HtmlPipeline.content(WorkerContext context, Tag t, String text, ProcessObject po) |
Pipeline> |
HtmlPipeline.init(WorkerContext context) |
Pipeline> |
HtmlPipeline.open(WorkerContext context, Tag t, ProcessObject po) |
Pipeline> |
AutoDocPipeline.open(WorkerContext context, Tag t, ProcessObject po) |
Copyright © 1998–2017. All rights reserved.