public class SvgExtractionOptions extends Object
Represents an options class for extracting vector graphics from the pdf document page.
Constructor and Description |
---|
SvgExtractionOptions()
Creates SvgExtractionOptions class instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getAutoGrouping()
Gets and sets the option to automatically group subpaths into images.
|
boolean |
getExtractEverySubPathToSvg()
Gets and sets option to extracts every subpath from a PDF document to separate SVG images.
|
Rectangle |
getExtractionAreaBound()
Gets and sets the bounding rectangle that defines the extraction area for SVG extraction.
|
double |
getGroupStrength()
Gets and sets an option The strength of grouping subpaths into images.
|
double |
getMinStrokeWidth()
Gets or sets the minimum stroke width that will be used in the resulting SVG.
|
boolean |
getStrictExtractionAreaBoundCheck()
Gets and sets an option to define strictly checks whether subpaths are within the specified rectangle in
Aspose.Pdf.Vector.Extraction.SvgExtractionOptions.ExtractionAreaBoundExtractionAreaBound (getExtractionAreaBound() /setExtractionAreaBound(Rectangle) ). |
boolean |
getUnpackPageContentXForm()
Gets and sets a flag that determines whether XFrom found on pages should be unpacked or not.
|
com.aspose.ms.System.Predicate<XFormPlacement> |
getUnpackXFormPredicate()
Gets and sets option to unpack only the XForm corresponding to the specified predicate.
|
void |
setAutoGrouping(boolean value)
Gets and sets the option to automatically group subpaths into images.
|
void |
setExtractEverySubPathToSvg(boolean value)
Gets and sets option to extracts every subpath from a PDF document to separate SVG images.
|
void |
setExtractionAreaBound(Rectangle value)
Gets and sets the bounding rectangle that defines the extraction area for SVG extraction.
|
void |
setGroupStrength(double value)
Gets and sets an option The strength of grouping subpaths into images.
|
void |
setMinStrokeWidth(double value)
Gets or sets the minimum stroke width that will be used in the resulting SVG.
|
void |
setStrictExtractionAreaBoundCheck(boolean value)
Gets and sets an option to define strictly checks whether subpaths are within the specified rectangle in
Aspose.Pdf.Vector.Extraction.SvgExtractionOptions.ExtractionAreaBoundExtractionAreaBound (getExtractionAreaBound() /setExtractionAreaBound(Rectangle) ). |
void |
setUnpackPageContentXForm(boolean value)
Gets and sets a flag that determines whether XFrom found on pages should be unpacked or not.
|
void |
setUnpackXFormPredicate(com.aspose.ms.System.Predicate<XFormPlacement> value)
Gets and sets option to unpack only the XForm corresponding to the specified predicate.
|
public SvgExtractionOptions()
Creates SvgExtractionOptions class instance.
public final com.aspose.ms.System.Predicate<XFormPlacement> getUnpackXFormPredicate()
Gets and sets option to unpack only the XForm corresponding to the specified predicate.
public final void setUnpackXFormPredicate(com.aspose.ms.System.Predicate<XFormPlacement> value)
Gets and sets option to unpack only the XForm corresponding to the specified predicate.
value
- internal Predicate instance of XFormPlacement instancepublic final boolean getUnpackPageContentXForm()
Gets and sets a flag that determines whether XFrom found on pages should be unpacked or not. XFrom elements can end up in different SVG files. Only XForms that are rendered by Do statements from the page content are unpacked. Nested XForms are not unpacked.
public final void setUnpackPageContentXForm(boolean value)
Gets and sets a flag that determines whether XFrom found on pages should be unpacked or not. XFrom elements can end up in different SVG files. Only XForms that are rendered by Do statements from the page content are unpacked. Nested XForms are not unpacked.
value
- boolean valuepublic final boolean getExtractEverySubPathToSvg()
Gets and sets option to extracts every subpath from a PDF document to separate SVG images.
public final void setExtractEverySubPathToSvg(boolean value)
Gets and sets option to extracts every subpath from a PDF document to separate SVG images.
value
- boolean valuepublic final Rectangle getExtractionAreaBound()
Gets and sets the bounding rectangle that defines the extraction area for SVG extraction.
public final void setExtractionAreaBound(Rectangle value)
Gets and sets the bounding rectangle that defines the extraction area for SVG extraction.
value
- Rectangle instancepublic final boolean getStrictExtractionAreaBoundCheck()
Gets and sets an option to define strictly checks whether subpaths are within the specified rectangle in Aspose.Pdf.Vector.Extraction.SvgExtractionOptions.ExtractionAreaBoundExtractionAreaBound
(getExtractionAreaBound()
/setExtractionAreaBound(Rectangle)
).
If set to false, then subpaths that are not completely included in Aspose.Pdf.Vector.Extraction.SvgExtractionOptions.ExtractionAreaBoundExtractionAreaBound
(getExtractionAreaBound()
/setExtractionAreaBound(Rectangle)
) will be extracted.
The default value is True
.
public final void setStrictExtractionAreaBoundCheck(boolean value)
Gets and sets an option to define strictly checks whether subpaths are within the specified rectangle in Aspose.Pdf.Vector.Extraction.SvgExtractionOptions.ExtractionAreaBoundExtractionAreaBound
(getExtractionAreaBound()
/setExtractionAreaBound(Rectangle)
).
If set to false, then subpaths that are not completely included in Aspose.Pdf.Vector.Extraction.SvgExtractionOptions.ExtractionAreaBoundExtractionAreaBound
(getExtractionAreaBound()
/setExtractionAreaBound(Rectangle)
) will be extracted.
The default value is True
.
value
- boolean valuepublic final double getGroupStrength()
Gets and sets an option The strength of grouping subpaths into images. Allows you to configure the degree of grouping of subpaths.
The value ranges is from 0 to 1. A value of 0 corresponds to the Aspose.Pdf.Vector.Extraction.SvgExtractionOptions.ExtractEverySubPathToSvgExtractEverySubPathToSvg
(getExtractEverySubPathToSvg()
/setExtractEverySubPathToSvg(boolean)
) option being enabled.
A value of 1 will create single image for all vector paths on the page.
The option has an effect when Aspose.Pdf.Vector.Extraction.SvgExtractionOptions.AutoGroupingAutoGrouping
(getAutoGrouping()
/setAutoGrouping(boolean)
) is false.
The default value is 0.8
.
public final void setGroupStrength(double value)
Gets and sets an option The strength of grouping subpaths into images. Allows you to configure the degree of grouping of subpaths.
The value ranges is from 0 to 1. A value of 0 corresponds to the Aspose.Pdf.Vector.Extraction.SvgExtractionOptions.ExtractEverySubPathToSvgExtractEverySubPathToSvg
(getExtractEverySubPathToSvg()
/setExtractEverySubPathToSvg(boolean)
) option being enabled.
A value of 1 will create single image for all vector paths on the page.
The option has an effect when Aspose.Pdf.Vector.Extraction.SvgExtractionOptions.AutoGroupingAutoGrouping
(getAutoGrouping()
/setAutoGrouping(boolean)
) is false.
The default value is 0.8
.
value
- double valuepublic final boolean getAutoGrouping()
Gets and sets the option to automatically group subpaths into images.
This option excludes the Aspose.Pdf.Vector.Extraction.SvgExtractionOptions.GroupStrengthGroupStrength
(getGroupStrength()
/setGroupStrength(double)
) option.
public final void setAutoGrouping(boolean value)
Gets and sets the option to automatically group subpaths into images.
This option excludes the Aspose.Pdf.Vector.Extraction.SvgExtractionOptions.GroupStrengthGroupStrength
(getGroupStrength()
/setGroupStrength(double)
) option.
value
- boolean valuepublic final double getMinStrokeWidth()
Gets or sets the minimum stroke width that will be used in the resulting SVG. If the PDF use a thinner stroke width, it will be replaced with this width. The default value is 0.5.
The value is expressed in transformed user space units of the converted PDF page. By default 1 user space unit is 1/72 inch (0.35 mm), but this can be overridden by the PDF document. Transforms can affect the actual minimum width in the generated SVG.
public final void setMinStrokeWidth(double value)
Gets or sets the minimum stroke width that will be used in the resulting SVG. If the PDF use a thinner stroke width, it will be replaced with this width. The default value is 0.5.
The value is expressed in transformed user space units of the converted PDF page. By default 1 user space unit is 1/72 inch (0.35 mm), but this can be overridden by the PDF document. Transforms can affect the actual minimum width in the generated SVG.
value
- double valueCopyright © 2025 Aspose. All Rights Reserved.