Package com.itextpdf.svg.processors.impl
Class DefaultSvgProcessor
java.lang.Object
com.itextpdf.svg.processors.impl.DefaultSvgProcessor
- All Implemented Interfaces:
-
ISvgProcessor
Default implementation of
ISvgProcessor
. This implementation traverses the INode
tree depth-first, using a stack to recreate a tree of ISvgNodeRenderer
with the same structure.
-
Constructor Summary
-
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
-
Constructor Details
-
DefaultSvgProcessor
public DefaultSvgProcessor()Instantiates a DefaultSvgProcessor object.
-
-
Method Details
-
process
public ISvgProcessorResult process(INode root, ISvgConverterProperties converterProps) throws SvgProcessingException Description copied from interface:ISvgProcessor
Process an SVG, returning the root of a renderer-tree and a list of named objects wrapped in a processor result object- Specified by:
-
process
in interfaceISvgProcessor
- Parameters:
-
root
- Root of the INode representation of the SVG -
converterProps
- 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
-