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)
Deprecated.
|
com.itextpdf.layout.element.Image |
createSvgImageFromProcessingResult(com.itextpdf.svg.processors.ISvgProcessorResult result)
Deprecated.
|
com.itextpdf.kernel.pdf.xobject.PdfFormXObject |
createXObjectFromProcessingResult(com.itextpdf.svg.processors.ISvgProcessorResult result,
com.itextpdf.kernel.pdf.PdfDocument pdfDocument)
Deprecated.
|
com.itextpdf.svg.xobject.SvgImageXObject |
createXObjectFromProcessingResult(com.itextpdf.svg.processors.ISvgProcessorResult result,
ProcessorContext context,
boolean generateAbsolutelySizedSvg)
Create an
PdfFormXObject tied to the passed ProcessorContext 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 resolver@Deprecated public 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 image@Deprecated public 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 information@Deprecated 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 informationpdfDocument - pdf that shall contain the SVG imageSvgImageXObject instancepublic com.itextpdf.svg.xobject.SvgImageXObject createXObjectFromProcessingResult(com.itextpdf.svg.processors.ISvgProcessorResult result,
ProcessorContext context,
boolean generateAbsolutelySizedSvg)
PdfFormXObject tied to the passed ProcessorContext using the SVG processing result.result - processing result containing the SVG informationcontext - html2pdf processor contextgenerateAbsolutelySizedSvg - if true and context has pdf document and svg is not relative sized, it will be immediately
generated, otherwise no generation will be performedSvgImageXObject instanceCopyright © 1998–2026 Apryse Group NV. All rights reserved.