public class ConverterProperties extends Object
HtmlConverter
.
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()
Check if the createAcroForm flag is set.
|
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.
|
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
instance
public com.itextpdf.styledxmlparser.css.media.MediaDeviceDescription getMediaDeviceDescription()
public ConverterProperties setMediaDeviceDescription(com.itextpdf.styledxmlparser.css.media.MediaDeviceDescription mediaDeviceDescription)
mediaDeviceDescription
- the media device description
ConverterProperties
instance
public com.itextpdf.layout.font.FontProvider getFontProvider()
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.
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 provider
ConverterProperties
instance
public ITagWorkerFactory getTagWorkerFactory()
ITagWorker
, which in turn are used to convert the HTML tags to the PDF elements.
public ConverterProperties setTagWorkerFactory(ITagWorkerFactory tagWorkerFactory)
ITagWorker
, which in turn are used to convert the HTML tags to the PDF elements.
tagWorkerFactory
- the TagWorkerFactory
ConverterProperties
instance
public ICssApplierFactory getCssApplierFactory()
ICssApplier
, which in turn are used to convert the CSS properties to the PDF properties.
public ConverterProperties setCssApplierFactory(ICssApplierFactory cssApplierFactory)
ICssApplier
, which in turn are used to convert the CSS properties to the PDF properties.
cssApplierFactory
- the CSS applier factory
ConverterProperties
instance
public String getBaseUri()
public ConverterProperties setBaseUri(String baseUri)
baseUri
- the base URI
ConverterProperties
instance
public boolean isCreateAcroForm()
public ConverterProperties setCreateAcroForm(boolean createAcroForm)
createAcroForm
- true if an AcroForm needs to be created
ConverterProperties
instance
public OutlineHandler getOutlineHandler()
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.
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 handler
ConverterProperties
instance
public String getCharset()
public ConverterProperties setCharset(String charset)
charset
- the charset
ConverterProperties
instance
public boolean isImmediateFlush()
HtmlConverter.convertToDocument(java.lang.String, com.itextpdf.kernel.pdf.PdfWriter)
methods and will be overwritten to false if a page-counter declaration is present in the CSS of the HTML being converted. Has no effect when used in conjunction with HtmlConverter.convertToPdf(java.lang.String, java.io.OutputStream)
or HtmlConverter.convertToElements(java.lang.String)
.
public ConverterProperties setImmediateFlush(boolean immediateFlush)
HtmlConverter.convertToDocument(java.lang.String, com.itextpdf.kernel.pdf.PdfWriter)
methods and will be overwritten to false if a page-counter declaration is present in the CSS of the HTML being converted. Has no effect when used in conjunction with HtmlConverter.convertToPdf(java.lang.String, java.io.OutputStream)
or HtmlConverter.convertToElements(java.lang.String)
.
immediateFlush
- the immediate flush value
ConverterProperties
instance
public com.itextpdf.kernel.counter.event.IMetaInfo getEventCountingMetaInfo()
EventCounter
with PdfHtmlEvent
and can be used to determine event origin.
IMetaInfo
public ConverterProperties setEventCountingMetaInfo(com.itextpdf.kernel.counter.event.IMetaInfo metaInfo)
EventCounter
with PdfHtmlEvent
and can be used to determine event origin.
metaInfo
- meta info to set
ConverterProperties
instance
Copyright © 1998–2020 iText Group NV. All rights reserved.