SvgExtractor.Extract
Exracts svg image to string from graphic elements represents by !:absorber with a predicate filter.
public string Extract(GraphicsAbsorber absorber, Predicate<GraphicElement> filter, Page page)
Parameter | Type | Description |
---|
absorber | GraphicsAbsorber | The GraphicsAbsorber object that contains the graphic elements. |
filter | Predicate`1 | A predicate function used to filter the graphic elements. |
page | Page | The page where the absorber gets graphic elements. |
Return Value
The string with SVG content.
Exceptions
exception | condition |
---|
PdfException | If an error occurred when converting to SVG. |
See Also
Exracts svg image to file from graphic elements represents by !:absorber with a predicate filter.
public void Extract(GraphicsAbsorber absorber, Predicate<GraphicElement> filter, Page page,
string svgFilePath)
Parameter | Type | Description |
---|
absorber | GraphicsAbsorber | The GraphicsAbsorber object that contains the graphic elements. |
filter | Predicate`1 | A predicate function used to filter the graphic elements. |
page | Page | The page where the absorber gets graphic elements. |
svgFilePath | String | The target SVG file path. |
Exceptions
exception | condition |
---|
PdfException | If an error occurred when converting to SVG. |
See Also
Extracts graphic elements into a SVG string. Options ignored - grouping, extracting from rectangle
public string Extract(IEnumerable<GraphicElement> elements, Page page)
Parameter | Type | Description |
---|
elements | IEnumerable`1 | The graphic elements to convert. |
page | Page | The page where the absorber gets graphic elements. |
Return Value
The string with SVG content.
Exceptions
exception | condition |
---|
PdfException | If an error occurred when converting to SVG. |
See Also
Extracts graphic elements into a single SVG file. Options ignored - grouping, extracting from rectangle
public void Extract(IEnumerable<GraphicElement> elements, Page page, string svgFilePath)
Parameter | Type | Description |
---|
elements | IEnumerable`1 | The graphic elements to convert. |
page | Page | The page where the absorber gets graphic elements. |
svgFilePath | String | The target SVG file path. |
Exceptions
exception | condition |
---|
PdfException | If an error occurred when converting to SVG. |
See Also
Extracts Svg images from a page to strings.
public List<string> Extract(Page page)
Parameter | Type | Description |
---|
page | Page | The page to extract. |
Return Value
The list of SVG content strings.
Exceptions
exception | condition |
---|
PdfException | If an error occurred when converting to SVG. |
See Also
Extracts Svg images from a page to files.
public void Extract(Page page, string directory)
Parameter | Type | Description |
---|
page | Page | The page to extract. |
directory | String | The target directory to place SVG images. |
Exceptions
exception | condition |
---|
PdfException | If an error occurred when converting to SVG. |
See Also