public virtual void ProcessEnd(IElementNode element, ProcessorContext context) { if (context.GetPdfDocument() != null && processingResult != null) { SvgProcessingUtil util = new SvgProcessingUtil(); svgImage = util.CreateImageFromProcessingResult(processingResult, context.GetPdfDocument()); context.EndProcessingInlineSvg(); } }
public virtual void ProcessEnd(IElementNode element, ProcessorContext context) { if (context.GetPdfDocument() != null && processingResult != null) { SvgProcessingUtil util = new SvgProcessingUtil(); svgImage = util.CreateImageFromProcessingResult(processingResult, context.GetPdfDocument()); AccessiblePropHelper.TrySetLangAttribute(svgImage, element); context.EndProcessingInlineSvg(); } }
public virtual void ProcessEnd(IElementNode element, ProcessorContext context) { if (context.GetPdfDocument() != null) { PdfDocument document = context.GetPdfDocument(); //Create Image object if (res != null) { image = processUtil.CreateImageFromProcessingResult(res, document); } } else { LOGGER.Error(iText.Html2pdf.LogMessageConstant.PDF_DOCUMENT_NOT_PRESENT); } }