public class ConverterProperties extends Object
| Constructor and Description |
|---|
ConverterProperties()
Instantiates a new
ConverterProperties instance. |
ConverterProperties(ConverterProperties other)
Instantiates a new
ConverterProperties instance based on another ConverterProperties instance
(copy constructor). |
| Modifier and Type | Method and Description |
|---|---|
String |
getBaseUri()
Gets the base URI.
|
String |
getCharset()
Gets the encoding charset.
|
ICssApplierFactory |
getCssApplierFactory()
Gets the CSS applier factory.
|
com.itextpdf.kernel.counter.event.IMetaInfo |
getEventCountingMetaInfo()
Gets html meta info.
|
com.itextpdf.layout.font.FontProvider |
getFontProvider()
Gets the font provider.
|
com.itextpdf.styledxmlparser.css.media.MediaDeviceDescription |
getMediaDeviceDescription()
Gets the media device description.
|
OutlineHandler |
getOutlineHandler()
Gets the outline handler.
|
ITagWorkerFactory |
getTagWorkerFactory()
Gets the TagWorkerFactory instance.
|
boolean |
isCreateAcroForm()
Checks if is an AcroForm needs to be created.
|
boolean |
isImmediateFlush()
Checks if immediateFlush is set
|
ConverterProperties |
setBaseUri(String baseUri)
Sets the base URI.
|
ConverterProperties |
setCharset(String charset)
Sets the encoding charset.
|
ConverterProperties |
setCreateAcroForm(boolean createAcroForm)
Sets the createAcroForm value.
|
ConverterProperties |
setCssApplierFactory(ICssApplierFactory cssApplierFactory)
Sets the CSS applier factory.
|
ConverterProperties |
setEventCountingMetaInfo(com.itextpdf.kernel.counter.event.IMetaInfo metaInfo)
Sets html meta info.
|
ConverterProperties |
setFontProvider(com.itextpdf.layout.font.FontProvider fontProvider)
Sets the font provider.
|
ConverterProperties |
setImmediateFlush(boolean immediateFlush)
set the immediate flush property of the layout document
This is used for convertToDocument methods and will be overwritten to
false if a page-counter declaration is present in the CSS of the HTML being
converted.
|
ConverterProperties |
setMediaDeviceDescription(com.itextpdf.styledxmlparser.css.media.MediaDeviceDescription mediaDeviceDescription)
Sets the media device description.
|
ConverterProperties |
setOutlineHandler(OutlineHandler outlineHandler)
Sets the outline handler.
|
ConverterProperties |
setTagWorkerFactory(ITagWorkerFactory tagWorkerFactory)
Sets the TagWorkerFactory.
|
public ConverterProperties()
ConverterProperties instance.public ConverterProperties(ConverterProperties other)
ConverterProperties instance based on another ConverterProperties instance
(copy constructor).other - the other ConverterProperties instancepublic com.itextpdf.styledxmlparser.css.media.MediaDeviceDescription getMediaDeviceDescription()
public ConverterProperties setMediaDeviceDescription(com.itextpdf.styledxmlparser.css.media.MediaDeviceDescription mediaDeviceDescription)
mediaDeviceDescription - the media device descriptionpublic com.itextpdf.layout.font.FontProvider getFontProvider()
public ConverterProperties setFontProvider(com.itextpdf.layout.font.FontProvider fontProvider)
FontProvider instances cannot be reused across several documents
and thus as soon as you set this property, this ConverterProperties instance becomes only useful for a single
HTML conversion.fontProvider - the font providerpublic ITagWorkerFactory getTagWorkerFactory()
public ConverterProperties setTagWorkerFactory(ITagWorkerFactory tagWorkerFactory)
tagWorkerFactory - the TagWorkerFactorypublic ICssApplierFactory getCssApplierFactory()
public ConverterProperties setCssApplierFactory(ICssApplierFactory cssApplierFactory)
cssApplierFactory - the CSS applier factorypublic String getBaseUri()
public ConverterProperties setBaseUri(String baseUri)
baseUri - the base URIpublic boolean isCreateAcroForm()
public ConverterProperties setCreateAcroForm(boolean createAcroForm)
createAcroForm - true if an AcroForm needs to be createdpublic OutlineHandler getOutlineHandler()
public ConverterProperties setOutlineHandler(OutlineHandler outlineHandler)
OutlineHandler is not thread safe, thus
as soon as you have set this property, this ConverterProperties instance cannot be used in converting multiple
HTMLs simultaneously.outlineHandler - the outline handlerpublic String getCharset()
public ConverterProperties setCharset(String charset)
charset - the charsetpublic boolean isImmediateFlush()
public ConverterProperties setImmediateFlush(boolean immediateFlush)
immediateFlush - the immediate flush valuepublic com.itextpdf.kernel.counter.event.IMetaInfo getEventCountingMetaInfo()
EventCounter
with PdfHtmlEvent and can be used to determine event origin.IMetaInfopublic ConverterProperties setEventCountingMetaInfo(com.itextpdf.kernel.counter.event.IMetaInfo metaInfo)
EventCounter
with PdfHtmlEvent and can be used to determine event origin.metaInfo - meta info to setConverterProperties instanceCopyright © 1998–2019 iText Group NV. All rights reserved.