• Products
  • Pricing
  • Documentation
  • Support
Login
Your cart is empty. See pricing.
My order
Total:
Order
  • Home
  • Products
  • Pricing
  • Documentation
  • Support
Login
LinkedIn
Twitter
  • Guide
  • API reference
  • Code samples
  • Changelog
  • TallComponents
  • TallComponents.Licensing
  • TallComponents.PDF
  • TallComponents.PDF.Actions
  • TallComponents.PDF.Annotations
  • TallComponents.PDF.Annotations.Markups
  • TallComponents.PDF.Annotations.Widgets
  • TallComponents.PDF.Brushes
  • TallComponents.PDF.Colors
  • TallComponents.PDF.Diagnostics
  • TallComponents.PDF.DigitalSignatures
  • TallComponents.PDF.DynamicXfa
  • TallComponents.PDF.Extensions
  • TallComponents.PDF.Fonts
  • TallComponents.PDF.Forms.Data
  • TallComponents.PDF.Forms.Fields
  • TallComponents.PDF.Forms.Fields.Barcodes
  • TallComponents.PDF.Forms.Fields.Barcodes.Properties
  • TallComponents.PDF.JavaScript
  • TallComponents.PDF.JavaScript.Scripting
  • TallComponents.PDF.JavaScript.Scripting.Soap
  • TallComponents.PDF.Metadata
  • TallComponents.PDF.Navigation
  • TallComponents.PDF.Pens
  • TallComponents.PDF.Prepress
  • TallComponents.PDF.Printing
  • TallComponents.PDF.Security
  • TallComponents.PDF.Shapes
  • TallComponents.PDF.Shapes.Annotations
  • TallComponents.PDF.Shapes.Barcodes
  • TallComponents.PDF.Tags
  • TallComponents.PDF.TextExtraction
  • TallComponents.PDF.Transforms

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.

Events

GetWebCredentials
Occurs when a svg is loaded from a weblocation to retrieve the credentials.
Our products
PDFKit.NET 5.0
Create and manipulate PDF documents
TallPDF.NET 5.0
Generate PDF on the fly
PDFRasterizer.NET 4.0
Render PDF pages cross-platform
Support resources
  • Code samples
  • Submit issue
  • Contact
  • Licensing Model
Legal
  • EULA
  • Privacy
LinkedIn
Twitter
© 2001-2025 TallComponents BV. All rights reserved.