Package | Description |
---|---|
com.itextpdf.tool.xml.css.apply |
Contains classes that can apply css rules on certain
Element s. |
com.itextpdf.tool.xml.html |
Everything to parse HTML tags to pdf used by the
HtmlPipeline is in here. |
com.itextpdf.tool.xml.pipeline.html |
Contains pipeline stuff for HTML
|
Modifier and Type | Method | Description |
---|---|---|
HtmlPipelineContext |
AbstractTagProcessor.getHtmlPipelineContext(WorkerContext context) |
Utility method that fetches the HtmlPipelineContext used if any and if it
uses the default key.
|
Modifier and Type | Method | Description |
---|---|---|
T |
CssApplier.apply(T e,
Tag t,
MarginMemory mm,
PageSizeContainable psc,
HtmlPipelineContext ctx) |
Styles an element
|
Element |
CssAppliers.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.
|
Element |
CssAppliers.apply(Element e,
Tag t,
HtmlPipelineContext ctx) |
Convenience method.
|
Element |
CssAppliersImpl.apply(Element e,
Tag t,
MarginMemory mm,
PageSizeContainable psc,
HtmlPipelineContext ctx) |
|
Element |
CssAppliersImpl.apply(Element e,
Tag t,
HtmlPipelineContext ctx) |
Modifier and Type | Method | Description |
---|---|---|
HtmlPipelineContext |
HtmlPipelineContext.autoBookmark(boolean autoBookmark) |
Set to true to enable the automatic creation of bookmarks on <h1>
to <h6> tags.
|
HtmlPipelineContext |
HtmlPipelineContext.charSet(java.nio.charset.Charset cSet) |
Set a
Charset to use. |
HtmlPipelineContext |
HtmlPipelineContext.clone() |
Create a clone of this HtmlPipelineContext, the clone only contains the
initial values, not the internal values.
|
HtmlPipelineContext |
HtmlPipelineContext.setAcceptUnknown(boolean acceptUnknown) |
Set to true to allow the HtmlPipeline to accept tags it does not find in
the given
TagProcessorFactory |
HtmlPipelineContext |
HtmlPipelineContext.setCssApplier(CssAppliers cssAppliers) |
Fluent variant of
setCssAppliers(CssAppliers) |
HtmlPipelineContext |
HtmlPipelineContext.setImageProvider(ImageProvider imageProvider) |
An ImageProvider can be provided and works in conjunction with
Image and ListStyleTypeCssApplier for List Images. |
HtmlPipelineContext |
HtmlPipelineContext.setLinkProvider(LinkProvider linkprovider) |
Set the LinkProvider to use if any.
|
HtmlPipelineContext |
HtmlPipelineContext.setPageSize(Rectangle pageSize) |
If no pageSize is set, the default value A4 is used.
|
HtmlPipelineContext |
HtmlPipelineContext.setRootTags(java.util.List<java.lang.String> roottags) |
Set the root-tags, this matters for margins.
|
HtmlPipelineContext |
HtmlPipelineContext.setTagFactory(TagProcessorFactory tagFactory) |
Set the
TagProcessorFactory to be used. |
Modifier and Type | Method | Description |
---|---|---|
protected void |
HtmlPipeline.addStackKeeper(Tag t,
HtmlPipelineContext hcc,
TagProcessor tp) |
Constructor | Description |
---|---|
HtmlPipeline(HtmlPipelineContext hpc,
Pipeline<?> next) |
Copyright © 1998–2018. All rights reserved.