SvgExtractionOptions

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

NameTypeAccessDescription
UnpackXFormPredicatePredicate<XFormPlacement>?Read/WriteDecides, per placed form XObject, whether its elements are extracted one by one (true) or the placement is kept as one element (false).
UnpackPageContentXFormboolRead/WriteWhether every placed form XObject is unpacked into its elements before extraction (unless UnpackXFormPredicate decides form by form).
ExtractEverySubPathToSvgboolRead/WriteWhether 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.
ExtractionAreaBoundRectangle?Read/WriteWhen set, only elements inside this page-space rectangle are extracted.
StrictExtractionAreaBoundCheckboolRead/WriteWith ExtractionAreaBound: true takes only elements wholly inside it, false also takes the ones that touch it.
GroupStrengthdoubleRead/WriteHow 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.
AutoGroupingboolRead/WriteWhether elements near each other, not only the ones that touch or overlap, are written into one SVG (see GroupStrength).
MinStrokeWidthdoubleRead/WriteStroked sub-paths thinner than this (points) are left out; 0 keeps every one.

Methods

SignatureDescription
SvgExtractionOptions()Options that extract each cluster of touching or overlapping elements of a page as one SVG.

See Also