Ejemplo n.º 1
0
 /**
  * @throws DocumentException
  * @see com.itextpdf.text.html.simpleparser.HTMLTagProcessors#startElement(com.itextpdf.text.html.simpleparser.HTMLWorker, java.lang.String, java.util.Map)
  */
 public void StartElement(HTMLWorker worker, String tag, IDictionary <String, String> attrs)
 {
     worker.CarriageReturn();
     if (worker.IsPendingTR())
     {
         worker.EndElement(tag);
     }
     worker.SetSkipText(true);
     worker.SetPendingTR(true);
     worker.UpdateChain(tag, attrs);
 }
Ejemplo n.º 2
0
 /**
  * @see com.itextpdf.text.html.simpleparser.HTMLTagProcessors#endElement(com.itextpdf.text.html.simpleparser.HTMLWorker, java.lang.String)
  */
 public void EndElement(HTMLWorker worker, String tag)
 {
     worker.CarriageReturn();
     if (worker.IsPendingTR())
     {
         worker.EndElement(HtmlTags.TR);
     }
     worker.UpdateChain(tag);
     worker.ProcessTable();
     worker.PopTableState();
     worker.SetSkipText(false);
 }