Re: [iText-questions] Extracting content from Pdf document throws exception

2014-07-08 Thread iText mailing list
On 7/8/2014 2:04 PM, göktürk mavuş wrote: > I donot understand what you are trying to say in the below paragraph; thus, > may you clearify it. To remind, I just tried to extract the text from pdf. You assume that all text is in the Content stream. That assumption is wrong. Text can be in an exte

Re: [iText-questions] Extracting content from Pdf document throws exception

2014-07-08 Thread göktürk mavuş
I donot understand what you are trying to say in the below paragraph; thus, may you clearify it. To remind, I just tried to extract the text from pdf. My last question, how can I fix the problem and as I understand, I am ddoing something wrong. Can you show me proper way? > Also: what is the p

Re: [iText-questions] Extracting content from Pdf document throws exception

2014-07-08 Thread iText mailing list
On 7/8/2014 1:45 PM, göktürk mavuş wrote: > reference = (PRIndirectReference) > dictionary.get(PdfName.CONTENTS); > /*line 166*/contentStream = (PRStream) > PdfReader.getPdfObject(reference); You are assuming that the Contents of a page is ALWAYS a