public class ProcessorContext extends Object
Constructor and Description |
---|
ProcessorContext(ConverterProperties converterProperties)
Instantiates a new ProcessorContext instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addTemporaryFont(com.itextpdf.layout.font.FontInfo fontInfo, String alias)
Add temporary font from @font-face.
|
void |
addTemporaryFont(com.itextpdf.io.font.FontProgram fontProgram, String encoding, String alias)
Add temporary font from @font-face.
|
void |
addTemporaryFont(com.itextpdf.io.font.FontProgram fontProgram, String encoding, String alias, com.itextpdf.layout.font.Range unicodeRange)
Add temporary font from @font-face.
|
void |
endProcessingInlineSvg()
End the processing Svg State
|
String |
getBaseUri()
Gets the baseURI: the URI which has been set manually or the directory of the html file in case when baseURI hasn't been set manually.
|
ICssApplierFactory |
getCssApplierFactory()
Gets the CSS applier factory.
|
CssContext |
getCssContext()
Gets the CSS context.
|
com.itextpdf.styledxmlparser.css.media.MediaDeviceDescription |
getDeviceDescription()
Gets the device description.
|
com.itextpdf.kernel.counter.event.IMetaInfo |
getEventCountingMetaInfo()
Gets html meta info.
|
com.itextpdf.layout.font.FontProvider |
getFontProvider()
Gets the font provider.
|
FormFieldNameResolver |
getFormFieldNameResolver()
Gets the form field name resolver.
|
LinkContext |
getLinkContext()
Gets the link context.
|
OutlineHandler |
getOutlineHandler()
Gets the outline handler.
|
com.itextpdf.kernel.pdf.PdfDocument |
getPdfDocument()
Gets the PDF document.
|
RadioCheckResolver |
getRadioCheckResolver()
Gets the radio check resolver.
|
com.itextpdf.styledxmlparser.resolver.resource.ResourceResolver |
getResourceResolver()
Gets the resource resolver.
|
State |
getState()
Gets the state.
|
ITagWorkerFactory |
getTagWorkerFactory()
Gets the tag worker factory.
|
com.itextpdf.layout.font.FontSet |
getTempFonts()
Gets the temporary set of fonts.
|
boolean |
hasFonts()
Check fonts in font provider and temporary font set.
|
boolean |
isCreateAcroForm()
Checks if is an AcroForm needs to be created.
|
boolean |
isImmediateFlush()
Checks if immediateFlush is set
|
boolean |
isProcessingInlineSvg()
Check if the processor is currently processing an inline svg
|
void |
reset()
Resets the context.
|
void |
reset(com.itextpdf.kernel.pdf.PdfDocument pdfDocument)
Resets the context, and assigns a new PDF document.
|
void |
setFontProvider(com.itextpdf.layout.font.FontProvider fontProvider)
Sets the font provider.
|
void |
startProcessingInlineSvg()
Set the processor to processing Inline Svg state
|
public ProcessorContext(ConverterProperties converterProperties)
ProcessorContext
instance.
converterProperties
- a ConverterProperties
instance
public void setFontProvider(com.itextpdf.layout.font.FontProvider fontProvider)
fontProvider
- the new font provider
public State getState()
public com.itextpdf.kernel.pdf.PdfDocument getPdfDocument()
public com.itextpdf.layout.font.FontProvider getFontProvider()
public com.itextpdf.layout.font.FontSet getTempFonts()
public com.itextpdf.styledxmlparser.resolver.resource.ResourceResolver getResourceResolver()
public com.itextpdf.styledxmlparser.css.media.MediaDeviceDescription getDeviceDescription()
public ITagWorkerFactory getTagWorkerFactory()
public ICssApplierFactory getCssApplierFactory()
public CssContext getCssContext()
public LinkContext getLinkContext()
public boolean isCreateAcroForm()
public FormFieldNameResolver getFormFieldNameResolver()
public RadioCheckResolver getRadioCheckResolver()
public OutlineHandler getOutlineHandler()
public void addTemporaryFont(com.itextpdf.layout.font.FontInfo fontInfo, String alias)
fontInfo
- the font info
alias
- the alias
public void addTemporaryFont(com.itextpdf.io.font.FontProgram fontProgram, String encoding, String alias)
fontProgram
- the font program
encoding
- the encoding
alias
- the alias
public void addTemporaryFont(com.itextpdf.io.font.FontProgram fontProgram, String encoding, String alias, com.itextpdf.layout.font.Range unicodeRange)
fontProgram
- the font program
encoding
- the encoding
alias
- the alias
unicodeRange
- the unicode range
public boolean hasFonts()
addTemporaryFont(FontInfo, String)
, addTemporaryFont(FontProgram, String, String)
public void reset()
public void reset(com.itextpdf.kernel.pdf.PdfDocument pdfDocument)
pdfDocument
- the new PDF document for the context
public String getBaseUri()
public boolean isImmediateFlush()
public com.itextpdf.kernel.counter.event.IMetaInfo getEventCountingMetaInfo()
EventCounter
with PdfHtmlEvent
and can be used to determine event origin.
public boolean isProcessingInlineSvg()
public void startProcessingInlineSvg()
public void endProcessingInlineSvg()
Copyright © 1998–2019 iText Group NV. All rights reserved.