Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As @mkl said, we'll need more information as to why things aren't working. But I can tell you a couple of things that might help you.</p> <p>First, <code>SimpleTextExtractionStrategy</code> is <strong><em>very simple</em></strong>. If you <a href="http://api.itextpdf.com/itext/com/itextpdf/text/pdf/parser/SimpleTextExtractionStrategy.html" rel="nofollow noreferrer">read the docs</a> for it you'll see that:</p> <blockquote> <p>If the PDF renders text in a non-top-to-bottom fashion, this will result in the text not being a true representation of how it appears in the PDF</p> </blockquote> <p>What that means is that although a PDF may look like it should be read from top to bottom, it may have been written in a different order. The PDF you referenced actually has the second visual line written first. See my <a href="http://wp.me/p2bixg-4k" rel="nofollow noreferrer">post here for a slightly smarter text extraction strategy</a> that tries to return text top to bottom. When I run my code against the first page of your PDF it appears to pull out each "line" correctly.</p> <p>Second, PDFs don't have a concept of tables. They just have text and lines drawn at certain locations and neither of these are related to each other. What that means is that you would need to calculate each and every line and build your own concept of a table, you won't find any code within iTextSharp that does this for you. I personally wouldn't even bother trying to write one.</p> <p>Third, the text extraction is for pulling text which has nothing to do with fonts. If you want that you'll have to build that logic in yourself. See my <a href="https://stackoverflow.com/a/6884297/231316">post here</a> for a very basic start at it.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload