You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by ta...@insb.uscourts.gov on 2009/04/02 15:51:09 UTC
IOException upon opening a PDF
I am working with PDFBox-0.7.3-dev and receive the following error when
opening a PDF file:
Exception in thread "main" java.io.IOException: Error: Expected an integer
type, actual='/Subtype/Image'
at org.pdfbox.pdfparser.BaseParser.readInt(BaseParser.java:1335)
at org.pdfbox.pdfparser.PDFParser.parseObject(PDFParser.java:415)
at org.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:176)
at org.pdfbox.pdmodel.PDDocument.load(PDDocument.java:578)
at org.pdfbox.pdmodel.PDDocument.load(PDDocument.java:549)
at cmecf.pdf.xxx.ProcessPDF(xxx.java:257)
at cmecf.pdf.xxx.main(xxx.java:78)
Here is the Java code that is used to open the PDF file:
loPdfDocument = PDDocument.load(this.cFile);
The PDF file contains sensitive information, so I cannot attach it. The
PDF is rendered fine within Adobe Acrobat. Is this a bug?
Thanks!
Tim
Re: IOException upon opening a PDF
Posted by ta...@insb.uscourts.gov.
Does this need to be reported as a bug? If so, what do I need to do?
Tim
Daniel Wilson <wi...@gmail.com>
04/02/2009 02:03 PM
To
pdfbox-users@incubator.apache.org
cc
Subject
Re: IOException upon opening a PDF
I am aware of a bug to that effect. I've seen the same error in one of my
test PDF's.
Daniel Wilson
On Thu, Apr 2, 2009 at 9:51 AM, <ta...@insb.uscourts.gov> wrote:
> I am working with PDFBox-0.7.3-dev and receive the following error when
> opening a PDF file:
>
> Exception in thread "main" java.io.IOException: Error: Expected an
integer
> type, actual='/Subtype/Image'
> at org.pdfbox.pdfparser.BaseParser.readInt(BaseParser.java:1335)
> at org.pdfbox.pdfparser.PDFParser.parseObject(PDFParser.java:415)
> at org.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:176)
> at org.pdfbox.pdmodel.PDDocument.load(PDDocument.java:578)
> at org.pdfbox.pdmodel.PDDocument.load(PDDocument.java:549)
> at cmecf.pdf.xxx.ProcessPDF(xxx.java:257)
> at cmecf.pdf.xxx.main(xxx.java:78)
>
> Here is the Java code that is used to open the PDF file:
>
> loPdfDocument = PDDocument.load(this.cFile);
>
> The PDF file contains sensitive information, so I cannot attach it. The
> PDF is rendered fine within Adobe Acrobat. Is this a bug?
>
> Thanks!
> Tim
Re: IOException upon opening a PDF
Posted by Daniel Wilson <wi...@gmail.com>.
I am aware of a bug to that effect. I've seen the same error in one of my
test PDF's.
Daniel Wilson
On Thu, Apr 2, 2009 at 9:51 AM, <ta...@insb.uscourts.gov> wrote:
> I am working with PDFBox-0.7.3-dev and receive the following error when
> opening a PDF file:
>
> Exception in thread "main" java.io.IOException: Error: Expected an integer
> type, actual='/Subtype/Image'
> at org.pdfbox.pdfparser.BaseParser.readInt(BaseParser.java:1335)
> at org.pdfbox.pdfparser.PDFParser.parseObject(PDFParser.java:415)
> at org.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:176)
> at org.pdfbox.pdmodel.PDDocument.load(PDDocument.java:578)
> at org.pdfbox.pdmodel.PDDocument.load(PDDocument.java:549)
> at cmecf.pdf.xxx.ProcessPDF(xxx.java:257)
> at cmecf.pdf.xxx.main(xxx.java:78)
>
> Here is the Java code that is used to open the PDF file:
>
> loPdfDocument = PDDocument.load(this.cFile);
>
> The PDF file contains sensitive information, so I cannot attach it. The
> PDF is rendered fine within Adobe Acrobat. Is this a bug?
>
> Thanks!
> Tim
get table position or table text
Posted by Pedro <pe...@ptbsl.com>.
Hi, I'm working with pdfbox to get information from pdf files. The
situacion of my application it is:
I have a *doc, *odt document with text, images and tables, y convert
this documents to pdf and i can get easily the text and image
information, but i cant get the table position.
I am interested to get the table position, or the object "table" if it
can. I have readed a lot of information about pdfbox and i couldn't find
a response for that.
If someone knows how to get text in a table or a table position i'll be
very agreed.
Thanks