Esempio n. 1
0
 /* (non-Javadoc)
  * @see com.itextpdf.html2pdf.attach.ITagWorker#processEnd(com.itextpdf.html2pdf.html.node.IElementNode, com.itextpdf.html2pdf.attach.ProcessorContext)
  */
 public virtual void ProcessEnd(IElementNode element, ProcessorContext context)
 {
     if (inlineHelper.GetWaitingLeaves().IsEmpty() && spanWrapper.GetElements().IsEmpty())
     {
         inlineHelper.Add("");
     }
     FlushInlineHelper();
     elements = spanWrapper.GetElements();
 }
Esempio n. 2
0
 /* (non-Javadoc)
  * @see com.itextpdf.html2pdf.attach.ITagWorker#processEnd(com.itextpdf.html2pdf.html.node.IElementNode, com.itextpdf.html2pdf.attach.ProcessorContext)
  */
 public virtual void ProcessEnd(IElementNode element, ProcessorContext context)
 {
     if (inlineHelper.GetWaitingLeaves().IsEmpty() && spanWrapper.GetElements().IsEmpty())
     {
         inlineHelper.Add("");
     }
     FlushInlineHelper();
     elements = spanWrapper.GetElements();
     foreach (IPropertyContainer elem in elements)
     {
         if (elem is IAccessibleElement)
         {
             AccessiblePropHelper.TrySetLangAttribute((IAccessibleElement)elem, element);
         }
     }
 }