public class SvgProcessingUtil extends Object
Constructor and Description |
---|
SvgProcessingUtil()
Deprecated.
will be removed in next major release
|
SvgProcessingUtil(com.itextpdf.styledxmlparser.resolver.resource.ResourceResolver resourceResolver)
Creates a new SvgProcessingUtil instance based on ResourceResolver which is used to resolve a variety of resources.
|
Modifier and Type | Method and Description |
---|---|
com.itextpdf.layout.element.Image |
createImageFromProcessingResult(com.itextpdf.svg.processors.ISvgProcessorResult result, com.itextpdf.kernel.pdf.PdfDocument pdfDocument)
Create an Image layout object tied to the passed PdfDocument using the SVG processing result.
|
com.itextpdf.kernel.pdf.xobject.PdfFormXObject |
createXObjectFromProcessingResult(com.itextpdf.svg.processors.ISvgProcessorResult result, com.itextpdf.kernel.pdf.PdfDocument pdfDocument)
Create an PdfFormXObject tied to the passed PdfDocument using the SVG processing result.
|
@Deprecated public SvgProcessingUtil()
SvgProcessingUtil
instance.
public SvgProcessingUtil(com.itextpdf.styledxmlparser.resolver.resource.ResourceResolver resourceResolver)
SvgProcessingUtil
instance based on ResourceResolver
which is used to resolve a variety of resources.
resourceResolver
- the resource resolver
public com.itextpdf.layout.element.Image createImageFromProcessingResult(com.itextpdf.svg.processors.ISvgProcessorResult result, com.itextpdf.kernel.pdf.PdfDocument pdfDocument)
Image
layout object tied to the passed PdfDocument
using the SVG processing result.
result
- Processing result containing the SVG information
pdfDocument
- pdf that shall contain the image
public com.itextpdf.kernel.pdf.xobject.PdfFormXObject createXObjectFromProcessingResult(com.itextpdf.svg.processors.ISvgProcessorResult result, com.itextpdf.kernel.pdf.PdfDocument pdfDocument)
PdfFormXObject
tied to the passed PdfDocument
using the SVG processing result.
result
- Processing result containing the SVG information
pdfDocument
- pdf that shall contain the image
Copyright © 1998–2021 iText Group NV. All rights reserved.