You have a broken pdf. Either the tool generates bad pdfs or what you
have in the blob is not what's on file. Does it work if the pdf is read
directly from file?

Best Regards,
Paulo Soares

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Panagiotis Varlagas
> Sent: Wednesday, April 07, 2004 3:22 PM
> To: [EMAIL PROTECTED]
> Subject: [iText-questions] IOException (Invalid object number)
> 
> Hi everybody!
> 
> This is my first posting to the list.
> 
> I am experiencing the following problem:
> 
> I get a PDF from a 3rd-party tool, which shows pretty
> fine as is. However, I wish to "massage" it through
> iText. What, happens is that before I even begin doing
> any "massaging", I get an IOException at the following
> line of code:
> 
> PdfReader reader = new PdfReader(blob)
> 
> where blob is the byte[] containing the original
> report, and which shows pretty fine on its own.
> 
> The exact exception is below.
> 
> (Please note that I got this exception, both with the
> 0.98 iText jar that I normally use, as well as with
> the latest - 1.02- jar).
> 
> Any help with this would be greatly appreciated!!!
> 
> Thanks in advance,
> Panagiotis.
> 
> java.io.IOException: Invalid object number. at file
> pointer 4346
> 
> at
> gr.novabank.epdc.webapp.controller.PdfPipe.pipePdf(PdfPipe.java:92)
> 
> at
> gr.novabank.epdc.webapp.controller.BusinessObjectsServlet.perf
> ormTask(BusinessObjectsServlet.java:416)
> 
> at
> gr.novabank.epdc.webapp.controller.BusinessObjectsServlet.doGe
> t(BusinessObjectsServlet.java:151)
> 
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> 
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 
> at
> com.ibm.servlet.engine.webapp.StrictServletInstance.doService(
> ServletManager.java:827)
> 
> at
> com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(
> StrictLifecycleServlet.java:167)
> 
> at
> com.ibm.servlet.engine.webapp.IdleServletState.service(StrictL
> ifecycleServlet.java:297)
> 
> at
> com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(S
> trictLifecycleServlet.java:110)
> 
> at
> com.ibm.servlet.engine.webapp.ServletInstance.service(ServletM
> anager.java:472)
> 
> at
> com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispa
> tch(ServletManager.java:1012)
> 
> at
> com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatc
> h(ServletManager.java:913)
> 
> at
> com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWe
> bAppDispatch(WebAppRequestDispatcher.java:678)
> 
> at
> com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch
> (WebAppRequestDispatcher.java:331)
> 
> at
> com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(
> WebAppRequestDispatcher.java:117)
> 
> at
> com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvok
> er.java:134)
> 
> at
> com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(
> WebAppInvoker.java:239)
> 
> at
> com.ibm.servlet.engine.invocation.CachedInvocation.handleInvoc
> ation(CachedInvocation.java:67)
> 
> at
> com.ibm.servlet.engine.invocation.CacheableInvocationContext.i
> nvoke(CacheableInvocationContext.java:106)
> 
> at
> com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByU
> RI(ServletRequestProcessor.java:154)
> 
> at
> com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.servi
> ce(OSEListener.java:315)
> 
> at
> com.ibm.servlet.engine.http11.HttpConnection.handleRequest(Htt
> pConnection.java:60)
> 
> at
> com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnec
> tion.java:323)
> 
> at
> com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252)
> 
> at
> com.ibm.ws.util.CachedThread.run(ThreadPool.java:137)
> 
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Small Business $15K Web Design Giveaway 
> http://promotions.yahoo.com/design_giveaway/
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> 


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to