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.layout.font.FontProvider |
getFontProvider()
Gets the font provider.
|
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 |
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(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 MediaDeviceDescription getMediaDeviceDescription()
public ConverterProperties setMediaDeviceDescription(MediaDeviceDescription mediaDeviceDescription)
mediaDeviceDescription
- the media device description
public 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 provider
public ITagWorkerFactory getTagWorkerFactory()
public ConverterProperties setTagWorkerFactory(ITagWorkerFactory tagWorkerFactory)
tagWorkerFactory
- the TagWorkerFactory
public ICssApplierFactory getCssApplierFactory()
public ConverterProperties setCssApplierFactory(ICssApplierFactory cssApplierFactory)
cssApplierFactory
- the CSS applier factory
public String getBaseUri()
public ConverterProperties setBaseUri(String baseUri)
baseUri
- the base URI
public boolean isCreateAcroForm()
public ConverterProperties setCreateAcroForm(boolean createAcroForm)
createAcroForm
- true if an AcroForm needs to be created
public 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 handler
public String getCharset()
public ConverterProperties setCharset(String charset)
charset
- the charset
public boolean isImmediateFlush()
public ConverterProperties setImmediateFlush(boolean immediateFlush)
immediateFlush
- the immediate flush value
Copyright © 1998–2019 iText Group NV. All rights reserved.