You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Brendan Jacobs <rt...@gmail.com> on 2009/08/28 16:26:47 UTC

IOException when extracting text from a pdf

I'm getting a "java.io.IOException: Resetting to invalid mark" within the
parse method of org.pdfbox.pdfparser.PDFParser.  Any idea what might be
causing the problem and if there is a workaround?  Thanks in advance.

Re: IOException when extracting text from a pdf

Posted by Brendan Jacobs <rt...@gmail.com>.
OK, I'll try out the latest code. Thanks for your help.
On Fri, Aug 28, 2009 at 11:37 AM, Daniel Wilson <
williamstonconsulting@gmail.com> wrote:

> We're getting closer to a release.  As these are all or nearly all
> volunteer
> efforts, hard deadlines just don't exist.  But the leading developers are
> working toward it (currently that would be Jukka and Andreas).
>
> But ... if you're good for a Java build ... go ahead and grab the latest
> code!
>
> On Fri, Aug 28, 2009 at 11:25 AM, Brendan Jacobs <rtcppguru@gmail.com
> >wrote:
>
> > Yes, I am using the 0.7.3 code.  The error is happening when
> > org.apache.jackrabbit.extractor.PdfTextExtractor.extractText() calls the
> > PDFParser.parse() method.  Unfortunately, extractText() catches the
> > exception, logs a warning, and returns.  So, there's no stack trace.
> >
> > Is there going to be a new release of pdfbox at some point?
> >
> > Thanks.
> >
> > On Fri, Aug 28, 2009 at 11:09 AM, Daniel Wilson <
> > williamstonconsulting@gmail.com> wrote:
> >
> > > Are you using the 0.7.3 code or the trunk code?  The trunk code
> contains
> > a
> > > LOT of improvements over the last release.
> > >
> > > If you get the error in the trunk code, would you post a stack trace?
> > >
> > > thanks.
> > >
> > > Daniel
> > >
> > > On Fri, Aug 28, 2009 at 10:26 AM, Brendan Jacobs <rtcppguru@gmail.com
> > > >wrote:
> > >
> > > > I'm getting a "java.io.IOException: Resetting to invalid mark" within
> > the
> > > > parse method of org.pdfbox.pdfparser.PDFParser.  Any idea what might
> be
> > > > causing the problem and if there is a workaround?  Thanks in advance.
> > > >
> > >
> >
> >
> >
> > --
>

Re: IOException when extracting text from a pdf

Posted by Daniel Wilson <wi...@gmail.com>.
We're getting closer to a release.  As these are all or nearly all volunteer
efforts, hard deadlines just don't exist.  But the leading developers are
working toward it (currently that would be Jukka and Andreas).

But ... if you're good for a Java build ... go ahead and grab the latest
code!

On Fri, Aug 28, 2009 at 11:25 AM, Brendan Jacobs <rt...@gmail.com>wrote:

> Yes, I am using the 0.7.3 code.  The error is happening when
> org.apache.jackrabbit.extractor.PdfTextExtractor.extractText() calls the
> PDFParser.parse() method.  Unfortunately, extractText() catches the
> exception, logs a warning, and returns.  So, there's no stack trace.
>
> Is there going to be a new release of pdfbox at some point?
>
> Thanks.
>
> On Fri, Aug 28, 2009 at 11:09 AM, Daniel Wilson <
> williamstonconsulting@gmail.com> wrote:
>
> > Are you using the 0.7.3 code or the trunk code?  The trunk code contains
> a
> > LOT of improvements over the last release.
> >
> > If you get the error in the trunk code, would you post a stack trace?
> >
> > thanks.
> >
> > Daniel
> >
> > On Fri, Aug 28, 2009 at 10:26 AM, Brendan Jacobs <rtcppguru@gmail.com
> > >wrote:
> >
> > > I'm getting a "java.io.IOException: Resetting to invalid mark" within
> the
> > > parse method of org.pdfbox.pdfparser.PDFParser.  Any idea what might be
> > > causing the problem and if there is a workaround?  Thanks in advance.
> > >
> >
>
>
>
> --
> Best Regards,
> Brendan Jacobs
> (301) 920-1610
> brendan.j@rcn.com
>

Re: IOException when extracting text from a pdf

Posted by Brendan Jacobs <rt...@gmail.com>.
Yes, I am using the 0.7.3 code.  The error is happening when
org.apache.jackrabbit.extractor.PdfTextExtractor.extractText() calls the
PDFParser.parse() method.  Unfortunately, extractText() catches the
exception, logs a warning, and returns.  So, there's no stack trace.

Is there going to be a new release of pdfbox at some point?

Thanks.

On Fri, Aug 28, 2009 at 11:09 AM, Daniel Wilson <
williamstonconsulting@gmail.com> wrote:

> Are you using the 0.7.3 code or the trunk code?  The trunk code contains a
> LOT of improvements over the last release.
>
> If you get the error in the trunk code, would you post a stack trace?
>
> thanks.
>
> Daniel
>
> On Fri, Aug 28, 2009 at 10:26 AM, Brendan Jacobs <rtcppguru@gmail.com
> >wrote:
>
> > I'm getting a "java.io.IOException: Resetting to invalid mark" within the
> > parse method of org.pdfbox.pdfparser.PDFParser.  Any idea what might be
> > causing the problem and if there is a workaround?  Thanks in advance.
> >
>



-- 
Best Regards,
Brendan Jacobs
(301) 920-1610
brendan.j@rcn.com

Re: IOException when extracting text from a pdf

Posted by Daniel Wilson <wi...@gmail.com>.
Are you using the 0.7.3 code or the trunk code?  The trunk code contains a
LOT of improvements over the last release.

If you get the error in the trunk code, would you post a stack trace?

thanks.

Daniel

On Fri, Aug 28, 2009 at 10:26 AM, Brendan Jacobs <rt...@gmail.com>wrote:

> I'm getting a "java.io.IOException: Resetting to invalid mark" within the
> parse method of org.pdfbox.pdfparser.PDFParser.  Any idea what might be
> causing the problem and if there is a workaround?  Thanks in advance.
>