pdfHTML 2.1.6 API
iText.Html2pdf.Attach.ProcessorContext Class Reference

Keeps track of the context of the processor. More...

Public Member Functions

 ProcessorContext (ConverterProperties converterProperties)
 Instantiates a new ProcessorContext instance. More...
 
virtual void SetFontProvider (FontProvider fontProvider)
 Sets the font provider. More...
 
virtual State GetState ()
 Gets the state. More...
 
virtual PdfDocument GetPdfDocument ()
 Gets the PDF document. More...
 
virtual FontProvider GetFontProvider ()
 Gets the font provider. More...
 
virtual FontSet GetTempFonts ()
 Gets the temporary set of fonts. More...
 
virtual ResourceResolver GetResourceResolver ()
 Gets the resource resolver. More...
 
virtual MediaDeviceDescription GetDeviceDescription ()
 Gets the device description. More...
 
virtual ITagWorkerFactory GetTagWorkerFactory ()
 Gets the tag worker factory. More...
 
virtual ICssApplierFactory GetCssApplierFactory ()
 Gets the CSS applier factory. More...
 
virtual CssContext GetCssContext ()
 Gets the CSS context. More...
 
virtual LinkContext GetLinkContext ()
 Gets the link context. More...
 
virtual bool IsCreateAcroForm ()
 Checks if is an AcroForm needs to be created. More...
 
virtual FormFieldNameResolver GetFormFieldNameResolver ()
 Gets the form field name resolver. More...
 
virtual RadioCheckResolver GetRadioCheckResolver ()
 Gets the radio check resolver. More...
 
virtual OutlineHandler GetOutlineHandler ()
 Gets the outline handler. More...
 
virtual void AddTemporaryFont (FontInfo fontInfo, String alias)
 Add temporary font from @font-face. More...
 
virtual void AddTemporaryFont (FontProgram fontProgram, String encoding, String alias)
 Add temporary font from @font-face. More...
 
virtual void AddTemporaryFont (FontProgram fontProgram, String encoding, String alias, Range unicodeRange)
 Add temporary font from @font-face. More...
 
virtual bool HasFonts ()
 Check fonts in font provider and temporary font set. More...
 
virtual void Reset ()
 Resets the context. More...
 
virtual void Reset (PdfDocument pdfDocument)
 Resets the context, and assigns a new PDF document. More...
 
virtual 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. More...
 
virtual bool IsImmediateFlush ()
 Checks if immediateFlush is set More...
 
virtual IMetaInfo GetEventCountingMetaInfo ()
 Gets html meta info. More...
 
virtual bool IsProcessingInlineSvg ()
 Check if the processor is currently processing an inline svg More...
 
virtual void StartProcessingInlineSvg ()
 Set the processor to processing Inline Svg state More...
 
virtual void EndProcessingInlineSvg ()
 End the processing Svg State More...
 

Detailed Description

Keeps track of the context of the processor.

Constructor & Destructor Documentation

◆ ProcessorContext()

iText.Html2pdf.Attach.ProcessorContext.ProcessorContext ( ConverterProperties  converterProperties)
inline

Instantiates a new ProcessorContext instance.

Parameters
converterPropertiesa iText.Html2pdf.ConverterProperties instance

Member Function Documentation

◆ AddTemporaryFont() [1/3]

virtual void iText.Html2pdf.Attach.ProcessorContext.AddTemporaryFont ( FontInfo  fontInfo,
String  alias 
)
inlinevirtual

Add temporary font from @font-face.

Parameters
fontInfothe font info
aliasthe alias

◆ AddTemporaryFont() [2/3]

virtual void iText.Html2pdf.Attach.ProcessorContext.AddTemporaryFont ( FontProgram  fontProgram,
String  encoding,
String  alias 
)
inlinevirtual

Add temporary font from @font-face.

Parameters
fontProgramthe font program
encodingthe encoding
aliasthe alias

◆ AddTemporaryFont() [3/3]

virtual void iText.Html2pdf.Attach.ProcessorContext.AddTemporaryFont ( FontProgram  fontProgram,
String  encoding,
String  alias,
Range  unicodeRange 
)
inlinevirtual

Add temporary font from @font-face.

Parameters
fontProgramthe font program
encodingthe encoding
aliasthe alias
unicodeRangethe unicode range

◆ EndProcessingInlineSvg()

virtual void iText.Html2pdf.Attach.ProcessorContext.EndProcessingInlineSvg ( )
inlinevirtual

End the processing Svg State

◆ GetBaseUri()

virtual String iText.Html2pdf.Attach.ProcessorContext.GetBaseUri ( )
inlinevirtual

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.

Returns
the baseUri

◆ GetCssApplierFactory()

virtual ICssApplierFactory iText.Html2pdf.Attach.ProcessorContext.GetCssApplierFactory ( )
inlinevirtual

Gets the CSS applier factory.

Returns
the CSS applier factory

◆ GetCssContext()

virtual CssContext iText.Html2pdf.Attach.ProcessorContext.GetCssContext ( )
inlinevirtual

Gets the CSS context.

Returns
the CSS context

◆ GetDeviceDescription()

virtual MediaDeviceDescription iText.Html2pdf.Attach.ProcessorContext.GetDeviceDescription ( )
inlinevirtual

Gets the device description.

Returns
the device description

◆ GetEventCountingMetaInfo()

virtual IMetaInfo iText.Html2pdf.Attach.ProcessorContext.GetEventCountingMetaInfo ( )
inlinevirtual

Gets html meta info.

Gets html meta info. This meta info will be passed with to iText.Kernel.Counter.EventCounter with iText.Html2pdf.Events.PdfHtmlEvent and can be used to determine event origin.

Returns
html meta info

◆ GetFontProvider()

virtual FontProvider iText.Html2pdf.Attach.ProcessorContext.GetFontProvider ( )
inlinevirtual

Gets the font provider.

Returns
the font provider

◆ GetFormFieldNameResolver()

virtual FormFieldNameResolver iText.Html2pdf.Attach.ProcessorContext.GetFormFieldNameResolver ( )
inlinevirtual

Gets the form field name resolver.

Returns
the form field name resolver

◆ GetLinkContext()

virtual LinkContext iText.Html2pdf.Attach.ProcessorContext.GetLinkContext ( )
inlinevirtual

Gets the link context.

Returns
the link context

◆ GetOutlineHandler()

virtual OutlineHandler iText.Html2pdf.Attach.ProcessorContext.GetOutlineHandler ( )
inlinevirtual

Gets the outline handler.

Returns
the outline handler

◆ GetPdfDocument()

virtual PdfDocument iText.Html2pdf.Attach.ProcessorContext.GetPdfDocument ( )
inlinevirtual

Gets the PDF document.

Returns
the PDF document

◆ GetRadioCheckResolver()

virtual RadioCheckResolver iText.Html2pdf.Attach.ProcessorContext.GetRadioCheckResolver ( )
inlinevirtual

Gets the radio check resolver.

Returns
the radio check resolver

◆ GetResourceResolver()

virtual ResourceResolver iText.Html2pdf.Attach.ProcessorContext.GetResourceResolver ( )
inlinevirtual

Gets the resource resolver.

Returns
the resource resolver

◆ GetState()

virtual State iText.Html2pdf.Attach.ProcessorContext.GetState ( )
inlinevirtual

Gets the state.

Returns
the state

◆ GetTagWorkerFactory()

virtual ITagWorkerFactory iText.Html2pdf.Attach.ProcessorContext.GetTagWorkerFactory ( )
inlinevirtual

Gets the tag worker factory.

Returns
the tag worker factory

◆ GetTempFonts()

virtual FontSet iText.Html2pdf.Attach.ProcessorContext.GetTempFonts ( )
inlinevirtual

Gets the temporary set of fonts.

Returns
the set of fonts

◆ HasFonts()

virtual bool iText.Html2pdf.Attach.ProcessorContext.HasFonts ( )
inlinevirtual

Check fonts in font provider and temporary font set.

Returns
true, if there is at least one font either in FontProvider or temporary FontSet.
See also
AddTemporaryFont(iText.Layout.Font.FontInfo, System.String), AddTemporaryFont(iText.IO.Font.FontProgram, System.String, System.String)

◆ IsCreateAcroForm()

virtual bool iText.Html2pdf.Attach.ProcessorContext.IsCreateAcroForm ( )
inlinevirtual

Checks if is an AcroForm needs to be created.

Returns
true, an AcroForm should be created

◆ IsImmediateFlush()

virtual bool iText.Html2pdf.Attach.ProcessorContext.IsImmediateFlush ( )
inlinevirtual

Checks if immediateFlush is set

Returns
true if immediateFlush is set, false if not.

◆ IsProcessingInlineSvg()

virtual bool iText.Html2pdf.Attach.ProcessorContext.IsProcessingInlineSvg ( )
inlinevirtual

Check if the processor is currently processing an inline svg

Returns
True if the processor is processing an inline Svg, false otherwise.

◆ Reset() [1/2]

virtual void iText.Html2pdf.Attach.ProcessorContext.Reset ( )
inlinevirtual

Resets the context.

◆ Reset() [2/2]

virtual void iText.Html2pdf.Attach.ProcessorContext.Reset ( PdfDocument  pdfDocument)
inlinevirtual

Resets the context, and assigns a new PDF document.

Parameters
pdfDocumentthe new PDF document for the context

◆ SetFontProvider()

virtual void iText.Html2pdf.Attach.ProcessorContext.SetFontProvider ( FontProvider  fontProvider)
inlinevirtual

Sets the font provider.

Parameters
fontProviderthe new font provider

◆ StartProcessingInlineSvg()

virtual void iText.Html2pdf.Attach.ProcessorContext.StartProcessingInlineSvg ( )
inlinevirtual

Set the processor to processing Inline Svg state