pdfHTML 5.0.4 API
iText.Html2pdf.Util.SvgProcessingUtil Class Reference

Utility class for handling operations related to SVG More...

Public Member Functions

  SvgProcessingUtil (ResourceResolver resourceResolver)
  Creates a new SvgProcessingUtil instance based on iText.StyledXmlParser.Resolver.Resource.ResourceResolver which is used to resolve a variety of resources. More...
 
virtual Image  CreateImageFromProcessingResult (ISvgProcessorResult result, PdfDocument pdfDocument)
  Create SvgImage layout object tied to the passed PdfDocument using the SVG processing result. More...
 
virtual Image  CreateSvgImageFromProcessingResult (ISvgProcessorResult result)
  Create SvgImage layout object using the SVG processing result. More...
 
virtual PdfFormXObject  CreateXObjectFromProcessingResult (ISvgProcessorResult result, PdfDocument pdfDocument)
  Create an iText.Kernel.Pdf.Xobject.PdfFormXObject tied to the passed PdfDocument using the SVG processing result. More...
 

Detailed Description

Utility class for handling operations related to SVG

Constructor & Destructor Documentation

◆ SvgProcessingUtil()

iText.Html2pdf.Util.SvgProcessingUtil.SvgProcessingUtil ( ResourceResolver  resourceResolver )
inline

Creates a new SvgProcessingUtil instance based on iText.StyledXmlParser.Resolver.Resource.ResourceResolver which is used to resolve a variety of resources.

Parameters
resourceResolver the resource resolver

Member Function Documentation

◆ CreateImageFromProcessingResult()

virtual Image iText.Html2pdf.Util.SvgProcessingUtil.CreateImageFromProcessingResult ( ISvgProcessorResult  result,
PdfDocument  pdfDocument 
)
inlinevirtual

Create SvgImage layout object tied to the passed PdfDocument using the SVG processing result.

Parameters
result processing result containing the SVG information
pdfDocument pdf that shall contain the image
Returns
SVG image layout object

◆ CreateSvgImageFromProcessingResult()

virtual Image iText.Html2pdf.Util.SvgProcessingUtil.CreateSvgImageFromProcessingResult ( ISvgProcessorResult  result )
inlinevirtual

Create SvgImage layout object using the SVG processing result.

Parameters
result processing result containing the SVG information
Returns
SVG image layout object

◆ CreateXObjectFromProcessingResult()

virtual PdfFormXObject iText.Html2pdf.Util.SvgProcessingUtil.CreateXObjectFromProcessingResult ( ISvgProcessorResult  result,
PdfDocument  pdfDocument 
)
inlinevirtual

Create an iText.Kernel.Pdf.Xobject.PdfFormXObject tied to the passed PdfDocument using the SVG processing result.

Parameters
result processing result containing the SVG information
pdfDocument pdf that shall contain the SVG image
Returns

iText.Svg.Xobject.SvgImageXObject instance