예제 #1
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();
     worker.SetPendingTD(false);
     worker.UpdateChain(HtmlTags.TD);
     worker.SetSkipText(true);
 }
예제 #2
0
 /**
  * @see com.itextpdf.text.html.simpleparser.HTMLTagProcessors#startElement(com.itextpdf.text.html.simpleparser.HTMLWorker, java.lang.String)
  */
 public void StartElement(HTMLWorker worker, String tag, IDictionary <String, String> attrs)
 {
     tag        = MapTag(tag);
     attrs      = new Dictionary <String, String>();
     attrs[tag] = null;
     worker.UpdateChain(tag, attrs);;
 }
예제 #3
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();
     worker.SetPendingLI(false);
     worker.SetSkipText(true);
     worker.UpdateChain(tag);
     worker.ProcessListItem();
 }
예제 #4
0
 /**
  * @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 (!attrs.ContainsKey(HtmlTags.SIZE))
     {
         int v = 7 - int.Parse(tag.Substring(1));
         attrs[HtmlTags.SIZE] = v.ToString();
     }
     worker.UpdateChain(tag, attrs);
 }
예제 #5
0
 /**
  * @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 (!attrs.ContainsKey(HtmlTags.FACE))
     {
         attrs[HtmlTags.FACE] = "Courier";
     }
     worker.UpdateChain(tag, attrs);
     worker.SetInsidePRE(true);
 }
예제 #6
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.IsPendingLI())
     {
         worker.EndElement(HtmlTags.LI);
     }
     worker.SetSkipText(false);
     worker.UpdateChain(tag);
     worker.ProcessList();
 }
예제 #7
0
 /**
  * @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.IsPendingLI())
     {
         worker.EndElement(HtmlTags.LI);
     }
     worker.SetSkipText(true);
     worker.UpdateChain(tag, attrs);;
     worker.PushToStack(worker.CreateList(tag));
 }
예제 #8
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);
 }
예제 #9
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.IsPendingTD())
     {
         worker.EndElement(HtmlTags.TD);
     }
     worker.SetPendingTR(false);
     worker.UpdateChain(tag);
     worker.ProcessRow();
     worker.SetSkipText(true);
 }
예제 #10
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);
 }
예제 #11
0
 /**
  * @throws DocumentException
  * @see com.itextpdf.text.html.simpleparser.HTMLTagProcessors#startElement(com.itextpdf.text.html.simpleparser.HTMLWorker, java.lang.String, java.util.Map)
  */
 virtual public void StartElement(HTMLWorker worker, String tag, IDictionary <String, String> attrs)
 {
     worker.CarriageReturn();
     if (worker.IsPendingTD())
     {
         worker.EndElement(tag);
     }
     worker.SetSkipText(false);
     worker.SetPendingTD(true);
     worker.UpdateChain(HtmlTags.TD, attrs);
     worker.PushToStack(worker.CreateCell(tag));
 }
예제 #12
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();
                TableWrapper table = new TableWrapper(attrs);

                worker.PushToStack(table);
                worker.PushTableState();
                worker.SetPendingTD(false);
                worker.SetPendingTR(false);
                worker.SetSkipText(true);
                // Table alignment should not affect children elements, thus remove
                attrs.Remove(HtmlTags.ALIGN);
                worker.UpdateChain(tag, attrs);
            }
예제 #13
0
            /**
             * @throws DocumentException
             * @see com.itextpdf.text.html.simpleparser.HTMLTagProcessors#startElement(com.itextpdf.text.html.simpleparser.HTMLWorker, java.lang.String, java.util.Map)
             */
            virtual public void StartElement(HTMLWorker worker, String tag, IDictionary <String, String> attrs)
            {
                worker.CarriageReturn();
                TableWrapper table = new TableWrapper(attrs);

                worker.PushToStack(table);
                worker.PushTableState();
                worker.SetPendingTD(false);
                worker.SetPendingTR(false);
                worker.SetSkipText(true);
                // Table alignment should not affect children elements, thus remove
                attrs.Remove(HtmlTags.ALIGN);
                // In case this is a nested table reset colspan and rowspan
                attrs[HtmlTags.COLSPAN] = "1";
                attrs[HtmlTags.ROWSPAN] = "1";
                worker.UpdateChain(tag, attrs);
            }
예제 #14
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();
     worker.UpdateChain(tag);
 }
예제 #15
0
 /**
  * @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();
     worker.UpdateChain(tag, attrs);
 }
 /// <summary>
 /// Tells the HTMLWorker what to do when an open tag is encountered.
 /// </summary>
 public void StartElement(HTMLWorker worker, string tag, IDictionary<string, string> attrs)
 {
     worker.UpdateChain(tag, attrs);
     worker.ProcessImage(_image, attrs);
     worker.UpdateChain(tag);
 }
예제 #17
0
 /**
  * @see com.itextpdf.text.html.simpleparser.HTMLTagProcessors#endElement(com.itextpdf.text.html.simpleparser.HTMLWorker, java.lang.String)
  */
 virtual public void EndElement(HTMLWorker worker, String tag)
 {
     tag = MapTag(tag);
     worker.UpdateChain(tag);
 }
예제 #18
0
 /**
  * @see com.itextpdf.text.html.simpleparser.HTMLTagProcessors#endElement(com.itextpdf.text.html.simpleparser.HTMLWorker, java.lang.String)
  */
 virtual public void EndElement(HTMLWorker worker, String tag)
 {
     worker.CarriageReturn();
     worker.UpdateChain(tag);
     worker.SetInsidePRE(false);
 }
예제 #19
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.ProcessLink();
     worker.UpdateChain(tag);
 }
예제 #20
0
 /**
  * @see com.itextpdf.text.html.simpleparser.HTMLTagProcessors#startElement(com.itextpdf.text.html.simpleparser.HTMLWorker, java.lang.String)
  */
 public void StartElement(HTMLWorker worker, String tag, IDictionary <String, String> attrs)
 {
     worker.UpdateChain(tag, attrs);
     worker.FlushContent();
 }
예제 #21
0
 /**
  * @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.UpdateChain(tag, attrs);
     worker.ProcessImage(worker.CreateImage(attrs), attrs);
     worker.UpdateChain(tag);
 }
예제 #22
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.UpdateChain(tag);
 }