Aspose::Pdf::Vector::SvgExtractor::Extract method

SvgExtractor::Extract(const System::SharedPtr<GraphicsAbsorber>&, System::Predicate<System::SharedPtr<GraphicElement>>, const System::SharedPtr<Page>&) method

Exracts svg image to string from graphic elements represents by absorber with a predicate filter.

System::String Aspose::Pdf::Vector::SvgExtractor::Extract(const System::SharedPtr<GraphicsAbsorber> &absorber, System::Predicate<System::SharedPtr<GraphicElement>> filter, const System::SharedPtr<Page> &page)
ParameterTypeDescription
absorberconst System::SharedPtr<GraphicsAbsorber>&The GraphicsAbsorber object that contains the graphic elements.
filterSystem::Predicate<System::SharedPtr<GraphicElement>>A predicate function used to filter the graphic elements.
pageconst System::SharedPtr<Page>&The page where the absorber gets graphic elements.

ReturnValue

The string with SVG content.

See Also

SvgExtractor::Extract(const System::SharedPtr<GraphicsAbsorber>&, System::Predicate<System::SharedPtr<GraphicElement>>, const System::SharedPtr<Page>&, const System::String&) method

Exracts svg image to file from graphic elements represents by absorber with a predicate filter.

void Aspose::Pdf::Vector::SvgExtractor::Extract(const System::SharedPtr<GraphicsAbsorber> &absorber, System::Predicate<System::SharedPtr<GraphicElement>> filter, const System::SharedPtr<Page> &page, const System::String &svgFilePath)
ParameterTypeDescription
absorberconst System::SharedPtr<GraphicsAbsorber>&The GraphicsAbsorber object that contains the graphic elements.
filterSystem::Predicate<System::SharedPtr<GraphicElement>>A predicate function used to filter the graphic elements.
pageconst System::SharedPtr<Page>&The page where the absorber gets graphic elements.
svgFilePathconst System::String&The target SVG file path.

See Also

SvgExtractor::Extract(const System::SharedPtr<Page>&) method

Extracts Svg images from a page to strings.

System::SharedPtr<System::Collections::Generic::List<System::String>> Aspose::Pdf::Vector::SvgExtractor::Extract(const System::SharedPtr<Page> &page)
ParameterTypeDescription
pageconst System::SharedPtr<Page>&The page to extract.

ReturnValue

The list of SVG content strings.

See Also

SvgExtractor::Extract(const System::SharedPtr<Page>&, const System::String&) method

Extracts Svg images from a page to files.

void Aspose::Pdf::Vector::SvgExtractor::Extract(const System::SharedPtr<Page> &page, const System::String &directory)
ParameterTypeDescription
pageconst System::SharedPtr<Page>&The page to extract.
directoryconst System::String&The target directory to place SVG images.

See Also

SvgExtractor::Extract(const System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<GraphicElement>>>&, const System::SharedPtr<Page>&) method

Extracts graphic elements into a SVG string. Options ignored - grouping, extracting from rectangle.

System::String Aspose::Pdf::Vector::SvgExtractor::Extract(const System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<GraphicElement>>> &elements, const System::SharedPtr<Page> &page)
ParameterTypeDescription
elementsconst System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<GraphicElement>>>&The graphic elements to convert.
pageconst System::SharedPtr<Page>&The page where the absorber gets graphic elements.

ReturnValue

The string with SVG content.

See Also

SvgExtractor::Extract(const System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<GraphicElement>>>&, const System::SharedPtr<Page>&, const System::String&) method

Extracts graphic elements into a single SVG file. Options ignored - grouping, extracting from rectangle.

void Aspose::Pdf::Vector::SvgExtractor::Extract(const System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<GraphicElement>>> &elements, const System::SharedPtr<Page> &page, const System::String &svgFilePath)
ParameterTypeDescription
elementsconst System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<GraphicElement>>>&The graphic elements to convert.
pageconst System::SharedPtr<Page>&The page where the absorber gets graphic elements.
svgFilePathconst System::String&The target SVG file path.

See Also