Class SvgImageXObject
A wrapper for Form XObject for SVG images.
public class SvgImageXObject : PdfFormXObject
- Inheritance
-
SvgImageXObject
- Inherited Members
Constructors
SvgImageXObject(Rectangle, ISvgProcessorResult, ResourceResolver)
Creates a new instance of Form XObject for the SVG image.
public SvgImageXObject(Rectangle bBox, ISvgProcessorResult result, ResourceResolver resourceResolver)
Parameters
bBox
Rectanglethe form XObject’s bounding box.
result
ISvgProcessorResultprocessor result containing the SVG information.
resourceResolver
ResourceResolverResourceResolver for the SVG image.
Methods
Generate(PdfDocument)
Processes xObject before first image generation to avoid drawing it twice or more.
public virtual void Generate(PdfDocument document)
Parameters
document
PdfDocumentpdf that shall contain the SVG image.
Remarks
Processes xObject before first image generation to avoid drawing it twice or more. It allows to reuse the same Form XObject multiple times.
GetResourceResolver()
Returns resource resolver for the SVG image.
public virtual ResourceResolver GetResourceResolver()
Returns
- ResourceResolver
ResourceResolver instance
GetResult()
Returns processor result containing the SVG information.
public virtual ISvgProcessorResult GetResult()
Returns
- ISvgProcessorResult
{ISvgProcessorResult} processor result.