Package | Description |
---|---|
com.itextpdf.svg.converter | |
com.itextpdf.svg.processors | |
com.itextpdf.svg.processors.impl |
Modifier and Type | Method and Description |
---|---|
static Image |
SvgConverter.convertToImage(InputStream stream, PdfDocument document, ISvgConverterProperties props)
Converts a String containing valid SVG content to an image that can then be used on the passed PdfDocument .
|
static PdfFormXObject |
SvgConverter.convertToXObject(InputStream stream, PdfDocument document, ISvgConverterProperties props)
Converts a String containing valid SVG content to an XObject that can then be used on the passed PdfDocument .
|
static PdfFormXObject |
SvgConverter.convertToXObject(String content, PdfDocument document, ISvgConverterProperties props)
Converts a String containing valid SVG content to an XObject that can then be used on the passed PdfDocument .
|
static void |
SvgConverter.createPdf(File svgFile, File pdfFile, ISvgConverterProperties props)
|
static void |
SvgConverter.createPdf(File svgFile, File pdfFile, ISvgConverterProperties props, WriterProperties writerProps)
Converts SVG stored in a File to a PDF File , using specific ISvgConverterProperties and WriterProperties .
|
static void |
SvgConverter.createPdf(InputStream svgStream, OutputStream pdfDest, ISvgConverterProperties props)
Create a single page pdf containing the SVG on its page using the default processing and drawing logic
|
static void |
SvgConverter.createPdf(InputStream svgStream, OutputStream pdfDest, ISvgConverterProperties props, WriterProperties writerProps)
Create a single page pdf containing the SVG on its page using the default processing and drawing logic
|
static void |
SvgConverter.drawOnCanvas(InputStream stream, PdfCanvas canvas, float x, float y, ISvgConverterProperties props)
Draws a String containing valid SVG to a pre-made canvas object, at a specified position on the canvas.
|
static void |
SvgConverter.drawOnCanvas(InputStream stream, PdfCanvas canvas, ISvgConverterProperties props)
Draws a Stream containing valid SVG to a pre-made canvas object.
|
static void |
SvgConverter.drawOnCanvas(String content, PdfCanvas canvas, float x, float y, ISvgConverterProperties props)
draws a String containing valid SVG to a pre-made canvas object, at a specified location.
|
static void |
SvgConverter.drawOnCanvas(String content, PdfCanvas canvas, ISvgConverterProperties props)
Draws a String containing valid SVG to a pre-made canvas object.
|
static void |
SvgConverter.drawOnDocument(InputStream stream, PdfDocument document, int pageNo, float x, float y, ISvgConverterProperties props)
Draws a Stream containing valid SVG to a document, on a given page number on the provided x and y coordinate.
|
static void |
SvgConverter.drawOnDocument(InputStream stream, PdfDocument document, int pageNo, ISvgConverterProperties props)
Draws a Stream containing valid SVG to a document, on a given page number on the provided x and y coordinate.
|
static void |
SvgConverter.drawOnDocument(String content, PdfDocument document, int pageNo, float x, float y, ISvgConverterProperties props)
Draws a String containing valid SVG to a document, on a given page number on the provided x and y coordinate.
|
static void |
SvgConverter.drawOnDocument(String content, PdfDocument document, int pageNo, ISvgConverterProperties props)
Draws a String containing valid SVG to a document, on a given page number on the provided x and y coordinate.
|
static void |
SvgConverter.drawOnPage(InputStream stream, PdfPage page, float x, float y, ISvgConverterProperties props)
Draws a Stream containing valid SVG to a given page at a given location.
|
static void |
SvgConverter.drawOnPage(InputStream stream, PdfPage page, ISvgConverterProperties props)
Draws a Stream containing valid SVG to a given page at a given location.
|
static void |
SvgConverter.drawOnPage(String content, PdfPage page, float x, float y, ISvgConverterProperties props)
Draws a String containing valid SVG to a given page on the provided x and y coordinate.
|
static void |
SvgConverter.drawOnPage(String content, PdfPage page, ISvgConverterProperties props)
Draws a String containing valid SVG to a given page on the provided x and y coordinate.
|
static INode |
SvgConverter.parse(InputStream stream, ISvgConverterProperties props)
Parse a Stream containing valid SVG into an XML DOM node, using the default JSoup XML parser.
|
static ISvgProcessorResult |
SvgConverter.parseAndProcess(InputStream svgStream, ISvgConverterProperties props)
Parse and process an Inputstream containing an SVG, using the default Svg processor ( DefaultSvgProcessor )
|
static ISvgProcessorResult |
SvgConverter.process(INode root, ISvgConverterProperties props)
Use the default implementation of ISvgProcessor to convert an XML DOM tree to a node renderer tree.
|
Modifier and Type | Method and Description |
---|---|
ISvgProcessorResult |
ISvgProcessor.process(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
|
Modifier and Type | Class and Description |
---|---|
class |
SvgConverterProperties
Default and fallback implementation of ISvgConverterProperties for DefaultSvgProcessor .
|
Modifier and Type | Method and Description |
---|---|
ISvgProcessorResult |
DefaultSvgProcessor.process(INode root, ISvgConverterProperties converterProps) |
Constructor and Description |
---|
SvgProcessorContext(ISvgConverterProperties converterProperties)
Instantiates a new SvgProcessorContext instance.
|
Copyright © 1998–2023 iText Group NV. All rights reserved.