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
SvgImage layout object tied to the passed PdfDocument using the SVG processing result. |
com.itextpdf.layout.element.Image |
createSvgImageFromProcessingResult(com.itextpdf.svg.processors.ISvgProcessorResult result)
Create
SvgImage layout object 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)
SvgImage 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.layout.element.Image createSvgImageFromProcessingResult(com.itextpdf.svg.processors.ISvgProcessorResult result)
SvgImage layout object using the SVG processing result.result - processing result containing the SVG informationpublic 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 SVG imageSvgImageXObject instanceCopyright © 1998–2024 Apryse Group NV. All rights reserved.