Esempio n. 1
0
 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();
     }
 }
Esempio n. 2
0
 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();
     }
 }
Esempio n. 3
0
 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);
     }
 }