Hi I am new user of this library.
I am trying to read a pdf file possibly created from AutoCad.
I am using extractText method from
http://itextpdf.com/examples/iia.php?id=275 example.

Below is my RenderText method looks like.
Problem is renderInfo.getText() returns empty string, though it gives its
location successfully.

Is it because text content stored in my pdf is in binary format ? because
when I use the same code for
http://www.asu.edu/map/pdf/asu_map_tempe_2011.pdf
it gives all the text along with its location. 

 public void renderText(TextRenderInfo renderInfo) {
        try {
            out.write("<");
            int n  = renderInfo.getTextRenderMode();
            Vector v = renderInfo.getBaseline().getStartPoint();
            
            out.write(count++ + " " + renderInfo.getText() + " | Location :
" + v.toString());
            out.write(">");
            out.write("\n");
        } catch (IOException e) {
            throw new RuntimeException( e );
        }
    }




Any help would be GREATLY appreciated !!!



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/renderInfo-getText-gives-empty-String-tp4656702.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to