Namespace TallComponents.PDF.Shapes
Class SvgShape
A shape containing a svg image.
In XML you can specify the svg image data as regular xml data.
Syntax
public class SvgShape
: ContentShape
Constructors
SvgShape()
Creates a new SvgShape.
SvgShape(Stream)
Create a new SvgShape from a stream.
SvgShape(String)
Create a new SvgShape from a relative, absolute or virtual path.
Properties
String FontPath
Relative or absolute path to the folder containing fonts. Leave empty to use the system font folder. (default = empty)
Double Height
The height of the svg image.
Boolean KeepAspectRatio
If KeepAspectRatio is set to true, the height is calculated from the
width so that the width/height ratio is equal to the ratio of the original svg image.
If set to false, the specified width and height are used and the svg image will in general appear distorted.
String Path
Relative or absolute path of svg image file.
Rectangle ViewBox
Get the view port specified on the root SVG element (can be null/nothing).
Unit ViewPortHeight
Get the view port height specified on the root SVG element.
Unit ViewPortWidth
Get the view port width specified on the root SVG element.
Double Width
The width of the svg image.