Package com.itextpdf.svg.processors
Interface ISvgProcessor
- All Known Implementing Classes:
DefaultSvgProcessor
public interface ISvgProcessor
Interface for SVG processors.
Processors take the root
INode
that corresponds to a Svg element
and return a ISvgNodeRenderer
that serves as the root for the same SVG-
Method Summary
Modifier and TypeMethodDescriptionprocess
(INode root, ISvgConverterProperties converterProps) Process an SVG, returning the root of a renderer-tree and a list of named objects wrapped in a processor result object
-
Method Details
-
process
ISvgProcessorResult process(INode root, ISvgConverterProperties converterProps) throws SvgProcessingException Process an SVG, returning the root of a renderer-tree and a list of named objects wrapped in a processor result object- Parameters:
root
- Root of the INode representation of the SVGconverterProps
- configuration properties- Returns:
- root of the renderer-tree representing the SVG wrapped in {link
ISvgProcessorResult
} - Throws:
SvgProcessingException
- throws an exception if the root node is null or if the child node being processed is null
-