OK so I changed the code to write the output of the Text Extraction to a ByteArrayOutputStream. Looking at the contents of the ByteArrayOutputStream I can see that most bytes have an int value of 0 and some have an int value of 32.
On 17 June 2010 23:12, Mark Storer <msto...@autonomy.com> wrote: > Err... why wordpad? Is that another way of saying "all the bytes are 0x00" > or what? Did you try... opening it with Reader? Or a PdfReader for that > matter. > > --Mark Storer > Senior Software Engineer > Cardiff.com > > import legalese.Disclaimer; > Disclaimer<Cardiff> DisCard = null; > > >> -----Original Message----- >> From: Ben Short [mailto:b...@benshort.co.uk] >> Sent: Thursday, June 17, 2010 2:47 PM >> To: Post all your questions about iText here >> Subject: Re: [iText-questions] NPE while Extracting text >> >> Hi, >> >> I downloaded and built the latest source code and the exception is no >> longer thrown. Now I'm left with a file that's 101KB in size but shows >> no content when opened in wordpad. >> >> Am I missing something? >> >> Ben >> >> On 17 June 2010 09:08, Ben Short <b...@benshort.co.uk> wrote: >> > Hi Kevin, >> > >> > Thats for this. I'll give it a go tonight. >> > >> > Ben >> > >> > On 17 June 2010 01:17, Kevin Day <ke...@trumpetinc.com> wrote: >> >> >> >> Mark - FYI, basefont isn't required for Type3 fonts (or TrueType for >> that >> >> matter). I had the same reaction when I first ran into this issue, but >> the >> >> spec never lies, right? It just injects ambiguity and confusion. >> >> -- >> >> View this message in context: http://itext- >> general.2136553.n4.nabble.com/NPE-while-Extracting-text- >> tp2256512p2258064.html >> >> Sent from the iText - General mailing list archive at Nabble.com. >> >> >> >> ----------------------------------------------------------------------- >> ------- >> >> ThinkGeek and WIRED's GeekDad team up for the Ultimate >> >> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >> >> lucky parental unit. See the prize list and enter to win: >> >> http://p.sf.net/sfu/thinkgeek-promo >> >> _______________________________________________ >> >> iText-questions mailing list >> >> iText-questions@lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/itext-questions >> >> >> >> Buy the iText book: http://www.itextpdf.com/book/ >> >> Check the site with examples before you ask questions: >> http://www.1t3xt.info/examples/ >> >> You can also search the keywords list: >> http://1t3xt.info/tutorials/keywords/ >> >> >> > >> >> -------------------------------------------------------------------------- >> ---- >> ThinkGeek and WIRED's GeekDad team up for the Ultimate >> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >> lucky parental unit. See the prize list and enter to win: >> http://p.sf.net/sfu/thinkgeek-promo >> _______________________________________________ >> iText-questions mailing list >> iText-questions@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/itext-questions >> >> Buy the iText book: http://www.itextpdf.com/book/ >> Check the site with examples before you ask questions: >> http://www.1t3xt.info/examples/ >> You can also search the keywords list: >> http://1t3xt.info/tutorials/keywords/ >> >> >> No virus found in this incoming message. >> Checked by AVG - www.avg.com >> Version: 9.0.829 / Virus Database: 271.1.1/2944 - Release Date: 06/17/10 >> 04:33:00 > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > iText-questions mailing list > iText-questions@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/itext-questions > > Buy the iText book: http://www.itextpdf.com/book/ > Check the site with examples before you ask questions: > http://www.1t3xt.info/examples/ > You can also search the keywords list: http://1t3xt.info/tutorials/keywords/ > ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/