Skip to content

TallComponents.UnoPdf.Client

TallComponents.UnoPdf.Client.Models.Pdf.Shapes

SvgShapeModel Class

A shape containing a svg image.

csharp
public class SvgShapeModel : TallComponents.UnoPdf.Client.Models.Pdf.Shapes.ShapeModel

Inheritance System.Object 🡒 ShapeModel 🡒 SvgShapeModel

Remarks

In XML you can specify the svg image data as regular xml data.

Properties
FontPathRelative or absolute path to the folder containing fonts. Leave empty to use the system font folder. (default = empty)
HeightThe height of the svg image.
KeepAspectRatioIf 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.
PathRelative or absolute path of svg image file.
ViewBoxGet the view port specified on the root SVG element(can be null/nothing).
ViewPortHeightGet the view port height specified on the root SVG element.
ViewPortWidthGet the view port width specified on the root SVG element.
WidthThe width of the svg image.