| Modifier and Type | Method and Description |
|---|---|
static com.itextpdf.kernel.pdf.xobject.PdfFormXObject |
SvgConverter.convertToXObject(ISvgNodeRenderer topSvgRenderer,
com.itextpdf.kernel.pdf.PdfDocument document)
This method draws a NodeRenderer tree to a canvas that is tied to the
passed document.
|
static float[] |
SvgConverter.extractWidthAndHeight(ISvgNodeRenderer topSvgRenderer)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
SvgNodeRendererInheritanceResolver.applyInheritanceToSubTree(ISvgNodeRenderer root,
ISvgNodeRenderer subTree,
SvgCssContext cssContext)
Apply style and attribute inheritance to the tree formed by the root and the subTree.
|
| Modifier and Type | Method and Description |
|---|---|
ISvgNodeRenderer |
ISvgProcessorResult.getRootRenderer()
Obtains the wrapped
ISvgNodeRenderer root renderer. |
| Modifier and Type | Method and Description |
|---|---|
Map<String,ISvgNodeRenderer> |
ISvgProcessorResult.getNamedObjects()
Obtains a map of named-objects with their id's as keys and the objects as values
|
| Modifier and Type | Method and Description |
|---|---|
ISvgNodeRenderer |
SvgProcessorResult.getRootRenderer() |
ISvgNodeRenderer |
ProcessorState.pop()
Removes and returns the first renderer of the processor state.
|
ISvgNodeRenderer |
ProcessorState.top()
Returns the first ISvgNodeRenderer object without removing it.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,ISvgNodeRenderer> |
SvgProcessorResult.getNamedObjects() |
| Modifier and Type | Method and Description |
|---|---|
void |
ProcessorState.push(ISvgNodeRenderer svgNodeRenderer)
Adds an ISvgNodeRenderer to the processor's state.
|
| Constructor and Description |
|---|
SvgProcessorResult(Map<String,ISvgNodeRenderer> namedObjects,
ISvgNodeRenderer root,
SvgProcessorContext context)
Creates new
SvgProcessorResult entity. |
| Constructor and Description |
|---|
SvgProcessorResult(Map<String,ISvgNodeRenderer> namedObjects,
ISvgNodeRenderer root,
SvgProcessorContext context)
Creates new
SvgProcessorResult entity. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
IBranchSvgNodeRenderer
Interface that defines branches in the NodeRenderer structure.
|
interface |
INoDrawSvgNodeRenderer
Interface that defines branches in the NodeRenderer structure that will not draw on its own.
|
interface |
ISvgPaintServer
Interface for working with paint servers.
|
| Modifier and Type | Method and Description |
|---|---|
ISvgNodeRenderer |
ISvgNodeRenderer.createDeepCopy()
Creates a deep copy of this renderer, including it's subtree of children
|
ISvgNodeRenderer |
SvgDrawContext.getNamedObject(String name)
Get a named object based on its name.
|
ISvgNodeRenderer |
ISvgNodeRenderer.getParent()
Gets the parent of this renderer.
|
| Modifier and Type | Method and Description |
|---|---|
List<ISvgNodeRenderer> |
IBranchSvgNodeRenderer.getChildren()
Gets all child renderers of this object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
IBranchSvgNodeRenderer.addChild(ISvgNodeRenderer child)
Adds a renderer as the last element of the list of children.
|
void |
SvgDrawContext.addNamedObject(String name,
ISvgNodeRenderer namedObject)
Adds a named object to the draw context.
|
void |
ISvgNodeRenderer.setParent(ISvgNodeRenderer parent)
Sets the parent of this renderer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SvgDrawContext.addNamedObjects(Map<String,ISvgNodeRenderer> namedObjects)
* Adds a number of named object to the draw context.
|
| Modifier and Type | Method and Description |
|---|---|
ISvgNodeRenderer |
DefaultSvgNodeRendererFactory.createSvgNodeRendererForTag(IElementNode tag,
ISvgNodeRenderer parent) |
ISvgNodeRenderer |
ISvgNodeRendererFactory.createSvgNodeRendererForTag(IElementNode tag,
ISvgNodeRenderer parent)
Create a configured renderer based on the passed Svg tag and set its parent.
|
| Modifier and Type | Method and Description |
|---|---|
ISvgNodeRenderer |
DefaultSvgNodeRendererFactory.createSvgNodeRendererForTag(IElementNode tag,
ISvgNodeRenderer parent) |
ISvgNodeRenderer |
ISvgNodeRendererFactory.createSvgNodeRendererForTag(IElementNode tag,
ISvgNodeRenderer parent)
Create a configured renderer based on the passed Svg tag and set its parent.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
ISvgTextNodeRenderer
Interface for <text> and <tspan> related renderers.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractBranchSvgNodeRenderer
Abstract class that will be the superclass for any element that can function
as a parent.
|
class |
AbstractContainerSvgNodeRenderer
Abstract class that will be the superclass for any element that instantiates new view port.
|
class |
AbstractGradientSvgNodeRenderer
ISvgNodeRenderer abstract implementation for gradient tags
(<linearGradient>, <radialGradient>). |
class |
AbstractSvgNodeRenderer
ISvgNodeRenderer abstract implementation. |
class |
CircleSvgNodeRenderer
ISvgNodeRenderer implementation for the <circle> tag. |
class |
ClipPathSvgNodeRenderer
This renderer represents a collection of elements (simple shapes and paths).
|
class |
DefsSvgNodeRenderer
ISvgNodeRenderer implementation for the <defs> tag. |
class |
EllipseSvgNodeRenderer
ISvgNodeRenderer implementation for the <circle> tag. |
class |
GroupSvgNodeRenderer
This renderer represents a branch in an SVG tree.
|
class |
ImageSvgNodeRenderer
Responsible for drawing Images to the canvas.
|
class |
LinearGradientSvgNodeRenderer
ISvgNodeRenderer implementation for the <linearGradient> tag. |
class |
LineSvgNodeRenderer
ISvgNodeRenderer implementation for the <line> tag. |
class |
MarkerSvgNodeRenderer
ISvgNodeRenderer implementation for the <marker> tag. |
class |
PathSvgNodeRenderer
ISvgNodeRenderer implementation for the <path> tag. |
class |
PatternSvgNodeRenderer
Implementation for the svg <pattern> tag.
|
class |
PdfRootSvgNodeRenderer
Root renderer responsible for applying the initial axis-flipping transform
|
class |
PolygonSvgNodeRenderer
ISvgNodeRenderer implementation for the <polygon> tag. |
class |
PolylineSvgNodeRenderer
ISvgNodeRenderer implementation for the <polyline> tag. |
class |
RectangleSvgNodeRenderer
ISvgNodeRenderer implementation for the <rect> tag. |
class |
StopSvgNodeRenderer
ISvgNodeRenderer implementation for the gradient <stop> tag. |
class |
SvgTagSvgNodeRenderer
ISvgNodeRenderer implementation for the <svg> tag. |
class |
SymbolSvgNodeRenderer
ISvgNodeRenderer implementation for the <symbol> tag. |
class |
TextLeafSvgNodeRenderer
ISvgNodeRenderer implementation for drawing text to a canvas. |
class |
TextSvgBranchRenderer
ISvgNodeRenderer implementation for the <text> and <tspan> tag. |
class |
TextSvgTSpanBranchRenderer
ISvgNodeRenderer implementation for the <tspan> tag. |
class |
UseSvgNodeRenderer
Renderer implementing the use tag.
|
| Modifier and Type | Method and Description |
|---|---|
List<ISvgNodeRenderer> |
AbstractBranchSvgNodeRenderer.getChildren() |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractBranchSvgNodeRenderer.addChild(ISvgNodeRenderer child) |
protected void |
AbstractSvgNodeRenderer.deepCopyAttributesAndStyles(ISvgNodeRenderer deepCopy)
Make a deep copy of the styles and attributes of this renderer
Helper method for deep copying logic
|
void |
AbstractSvgNodeRenderer.setParent(ISvgNodeRenderer parent) |
void |
PdfRootSvgNodeRenderer.setParent(ISvgNodeRenderer parent) |
| Constructor and Description |
|---|
PdfRootSvgNodeRenderer(ISvgNodeRenderer subTreeRoot)
Creates a
PdfRootSvgNodeRenderer instance. |
| Modifier and Type | Method and Description |
|---|---|
static com.itextpdf.kernel.geom.Rectangle |
SvgCssUtils.extractWidthAndHeight(ISvgNodeRenderer svgRenderer,
float em,
SvgDrawContext context)
Extract width and height of the passed SVGNodeRenderer, defaulting to
SvgDrawContext.getCustomViewport()
if either one is not present. |
static float[] |
SvgCssUtils.parseViewBox(ISvgNodeRenderer svgRenderer)
Extract svg viewbox values.
|
Copyright © 1998–2025 Apryse Group NV. All rights reserved.