public class SvgExtractor extends Object
Represents a class to SVG-images extraction from page.
Constructor and Description |
---|
SvgExtractor()
Represents a class to extract SVG images from a page.
|
SvgExtractor(SvgExtractionOptions options)
Represents a class to extract SVG images from a page.
|
Modifier and Type | Method and Description |
---|---|
String |
extract(GraphicsAbsorber absorber,
com.aspose.ms.System.Predicate<GraphicElement> filter,
Page page)
Exracts svg image to string from graphic elements represents by
absorber with a predicate filter. |
void |
extract(GraphicsAbsorber absorber,
com.aspose.ms.System.Predicate<GraphicElement> filter,
Page page,
String svgFilePath)
Exracts svg image to file from graphic elements represents by
absorber with a predicate filter. |
String |
extract(com.aspose.ms.System.Collections.Generic.IGenericEnumerable<GraphicElement> elements,
Page page)
Extracts graphic elements into a SVG string.
|
void |
extract(com.aspose.ms.System.Collections.Generic.IGenericEnumerable<GraphicElement> elements,
Page page,
String svgFilePath)
Extracts graphic elements into a single SVG file.
|
List<String> |
extract(Page page)
Extracts Svg images from a page to strings.
|
com.aspose.ms.System.Collections.Generic.List<String> |
extract(Page page,
com.aspose.ms.System.Collections.Generic.List<SubPathGroup>[] subPathGroups)
Extracts Svg images from a page to strings.
|
void |
extract(Page page,
String directory)
Extracts Svg images from a page to files.
|
public SvgExtractor()
Represents a class to extract SVG images from a page.
public SvgExtractor(SvgExtractionOptions options)
Represents a class to extract SVG images from a page.
options
- The extraction options.public final String extract(GraphicsAbsorber absorber, com.aspose.ms.System.Predicate<GraphicElement> filter, Page page)
Exracts svg image to string from graphic elements represents by absorber
with a predicate filter.
absorber
- The GraphicsAbsorber object that contains the graphic elements.filter
- A predicate function used to filter the graphic elements.page
- The page where the absorber gets graphic elements.PdfException
- If an error occurred when converting to SVG.public final void extract(GraphicsAbsorber absorber, com.aspose.ms.System.Predicate<GraphicElement> filter, Page page, String svgFilePath)
Exracts svg image to file from graphic elements represents by absorber
with a predicate filter.
absorber
- The GraphicsAbsorber object that contains the graphic elements.filter
- A predicate function used to filter the graphic elements.page
- The page where the absorber gets graphic elements.svgFilePath
- The target SVG file path.PdfException
- If an error occurred when converting to SVG.public final String extract(com.aspose.ms.System.Collections.Generic.IGenericEnumerable<GraphicElement> elements, Page page)
Extracts graphic elements into a SVG string. Options ignored - grouping, extracting from rectangle
elements
- The graphic elements to convert.page
- The page where the absorber gets graphic elements.PdfException
- If an error occurred when converting to SVG.public final void extract(com.aspose.ms.System.Collections.Generic.IGenericEnumerable<GraphicElement> elements, Page page, String svgFilePath)
Extracts graphic elements into a single SVG file. Options ignored - grouping, extracting from rectangle
elements
- The graphic elements to convert.page
- The page where the absorber gets graphic elements.svgFilePath
- The target SVG file path.PdfException
- If an error occurred when converting to SVG.public final List<String> extract(Page page)
Extracts Svg images from a page to strings.
page
- The page to extract.PdfException
- If an error occurred when converting to SVG.public final com.aspose.ms.System.Collections.Generic.List<String> extract(Page page, com.aspose.ms.System.Collections.Generic.List<SubPathGroup>[] subPathGroups)
Extracts Svg images from a page to strings.
page
- The page to extract.subPathGroups
- The subpath groups.PdfException
- If an error occurred when converting to SVG.public final void extract(Page page, String directory)
Extracts Svg images from a page to files.
page
- The page to extract.directory
- The target directory to place SVG images.PdfException
- If an error occurred when converting to SVG.Copyright © 2025 Aspose. All Rights Reserved.