Re: [iText-questions] NPE while Extracting text

2010-06-21 Thread Ben Short
...@1t3xt.info wrote: Ben Short wrote: subType is /Type3 Does this help identify the problem? Yes, but it doesn't bring us closer to a solution. Type 3 fonts are user defined fonts. See for instance: http://itextpdf.com/examples/index.php?page=exampleid=200 In that example, a 'delta' and 'sigma

Re: [iText-questions] NPE while Extracting text

2010-06-18 Thread Ben Short
Hi Kevin, I'm happy to dig in to the code. Can you point me to a place to start debugging? Ben On 18 June 2010 00:04, Kevin Day ke...@trumpetinc.com wrote: ok - most likely the font is using an encoding that we just don't have support for yet.  The encodings are a bit of a hack right now, so

Re: [iText-questions] NPE while Extracting text

2010-06-18 Thread Ben Short
, /Subtype=/Type3, /Name=/C0HN2000T1X005000, /Widths=135 0 R, /FirstChar=32} baseFont is null fontName is Unspecified Font Name subType is /Type3 Does this help identify the problem? Regards Ben On 18 June 2010 11:01, Ben Short b...@benshort.co.uk wrote: Hi Kevin, I'm happy to dig

Re: [iText-questions] NPE while Extracting text

2010-06-17 Thread Ben Short
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

Re: [iText-questions] NPE while Extracting text

2010-06-17 Thread Ben Short
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

Re: [iText-questions] NPE while Extracting text

2010-06-16 Thread Ben Short
On Mark's advice I downloaded the source code from the 5.0.2 branch and dug a little deeper... The NPE is thrown on the following line of the DocumentFont constructor. fontName = PdfName.decodeName(font.getAsName(PdfName.BASEFONT).toString()); It turns out that font.getAsName(PdfName.BASEFONT)

[iText-questions] NPE while Extracting text

2010-06-15 Thread Ben Short
machine if acrobat reader can read the file? Can anyone give me a some help making this text extraction work? Kind Regards Ben Short -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway