Contains methods to render a Page as an SVG file.
More...
|
static void | SaveAsSVG (this Page page, string fileName, TextOptions textOption=TextOptions.SubsetFonts, Dictionary< string, string > linkDestinations=null, FilterOption filterOption=default) |
| Render the page to an SVG file. More...
|
|
static void | SaveAsSVG (this Page page, Stream stream, TextOptions textOption=TextOptions.SubsetFonts, Dictionary< string, string > linkDestinations=null, FilterOption filterOption=default) |
| Render the page to an SVG stream. More...
|
|
Contains methods to render a Page as an SVG file.
Definition at line 1608 of file SVGContext.cs.
◆ TextOptions
Defines whether the used fonts should be included in the file.
Enumerator |
---|
EmbedFonts | Embeds the full font files.
|
SubsetFonts | Embeds subsetted font files containing only the glyphs for the characters that have been used.
|
ConvertIntoPaths | Does not embed any font file and converts all text items into paths.
|
DoNotEmbed | Does not embed any font file, but still encodes text items as such.
|
Definition at line 1630 of file SVGContext.cs.
◆ SaveAsSVG() [1/2]
Render the page to an SVG stream.
- Parameters
-
page | The Page to render. |
stream | The stream to which the SVG data will be written. |
textOption | Defines whether the used fonts should be included in the file. |
linkDestinations | A dictionary associating element tags to link targets. If this is provided, objects that have been drawn with a tag contained in the dictionary will become hyperlink to the destination specified in the dictionary. If the destination starts with a hash (#), it is interpreted as the tag of another object in the current document; otherwise, it is interpreted as an external URI. |
filterOption | Defines how and whether image filters should be rasterised when rendering the image. |
Definition at line 1736 of file SVGContext.cs.
◆ SaveAsSVG() [2/2]
Render the page to an SVG file.
- Parameters
-
page | The Page to render. |
fileName | The full path to the file to save. If it exists, it will be overwritten. |
textOption | Defines whether the used fonts should be included in the file. |
linkDestinations | A dictionary associating element tags to link targets. If this is provided, objects that have been drawn with a tag contained in the dictionary will become hyperlink to the destination specified in the dictionary. If the destination starts with a hash (#), it is interpreted as the tag of another object in the current document; otherwise, it is interpreted as an external URI. |
filterOption | Defines how and whether image filters should be rasterised when rendering the image. |
Definition at line 1619 of file SVGContext.cs.
The documentation for this class was generated from the following file: