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.
|
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.
|
MediaDeviceDescription |
getDeviceDescription()
Gets the device description.
|
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.
|
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
|
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.
|
public ProcessorContext(ConverterProperties converterProperties)
ProcessorContext instance.converterProperties - a ConverterProperties instancepublic void setFontProvider(com.itextpdf.layout.font.FontProvider fontProvider)
fontProvider - the new font providerpublic State getState()
public com.itextpdf.kernel.pdf.PdfDocument getPdfDocument()
public com.itextpdf.layout.font.FontProvider getFontProvider()
public com.itextpdf.layout.font.FontSet getTempFonts()
public ResourceResolver getResourceResolver()
public MediaDeviceDescription getDeviceDescription()
public ITagWorkerFactory getTagWorkerFactory()
public ICssApplierFactory getCssApplierFactory()
public CssContext getCssContext()
public LinkContext getLinkContext()
public boolean isCreateAcroForm()
public FormFieldNameResolver getFormFieldNameResolver()
public OutlineHandler getOutlineHandler()
public void addTemporaryFont(com.itextpdf.layout.font.FontInfo fontInfo,
String alias)
fontInfo - the font infoalias - the aliaspublic void addTemporaryFont(com.itextpdf.io.font.FontProgram fontProgram,
String encoding,
String alias)
fontProgram - the font programencoding - the encodingalias - the aliaspublic 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 contextpublic String getBaseUri()
public boolean isImmediateFlush()
Copyright © 1998–2018 iText Group NV. All rights reserved.