Skip to content

PDFSvgDrawing.RenderSvgDrawing Method

RenderSvgDrawing()

Renders the SVG document as PDF graphics.

C#
public void RenderSvgDrawing()

Remarks

This method performs an explicit rendering of the SVG content to PDF. After the rendering process the size of this PDFSvgDrawing object can be retrieved using the O2S.Components.PDF4NET.Graphics.PDFFormXObject.Width and O2S.Components.PDF4NET.Graphics.PDFFormXObject.Height properties.
An explicit call of this method is not required, the framework calls it when the SVG drawing is drawn on the target graphics surface.