SvgExtractionOptions
Overview
SvgExtractionOptions is a class in Aspose.PDF FOSS for .NET.
What SvgExtractor takes from a page and how it groups it.
This class declares 1 method for SvgExtractionOptions objects in .NET programs.
Available methods include: SvgExtractionOptions.
Public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: AutoGrouping, ExtractEverySubPathToSvg, ExtractionAreaBound, GroupStrength, MinStrokeWidth, StrictExtractionAreaBoundCheck, and 2 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
UnpackXFormPredicate | Predicate<XFormPlacement>? | Read/Write | Decides, per placed form XObject, whether its elements are extracted one by one (true) or the placement is kept as one element (false). |
UnpackPageContentXForm | bool | Read/Write | Whether every placed form XObject is unpacked into its elements before extraction (unless UnpackXFormPredicate decides form by form). |
ExtractEverySubPathToSvg | bool | Read/Write | Whether every element of the page - each painted sub-path, each form placement as a whole - becomes an SVG of its own, instead of the elements that touch or overlap sharing one. |
ExtractionAreaBound | Rectangle? | Read/Write | When set, only elements inside this page-space rectangle are extracted. |
StrictExtractionAreaBoundCheck | bool | Read/Write | With ExtractionAreaBound: true takes only elements wholly inside it, false also takes the ones that touch it. |
GroupStrength | double | Read/Write | How eagerly AutoGrouping joins neighbouring elements into one SVG, 0..1: two elements are grouped when the gap between their boxes is at most this fraction of the smaller box’s size. |
AutoGrouping | bool | Read/Write | Whether elements near each other, not only the ones that touch or overlap, are written into one SVG (see GroupStrength). |
MinStrokeWidth | double | Read/Write | Stroked sub-paths thinner than this (points) are left out; 0 keeps every one. |
Methods
| Signature | Description |
|---|---|
SvgExtractionOptions() | Options that extract each cluster of touching or overlapping elements of a page as one SVG. |