public class SvgProcessingUtil extends Object
| Constructor and Description |
|---|
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. |
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 resolverpublic 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 informationpdfDocument - pdf that shall contain the imagepublic 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 informationpdfDocument - pdf that shall contain the imageCopyright © 1998–2021 iText Group NV. All rights reserved.