Hi,

Yes your file is corrupt. PDFBox does catch it when parse:

Warning [PDFStreamEngine] Unexpected object type: org.apache.pdfbox.cos.COSDictionary java.io.IOException: Unexpected object type: org.apache.pdfbox.cos.COSDictionary at org.apache.pdfbox.pdmodel.graphics.PDXObject.createXObject(PDXObject.java:62) at org.apache.pdfbox.pdmodel.PDResources.getXObject(PDResources.java:409) at org.apache.pdfbox.contentstream.operator.graphics.DrawObject.process(DrawObject.java:53) at org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:853) at org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:509) at org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:477) at org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:158)
    at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:221)
at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:147) at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:69) at org.apache.pdfbox.debugger.pagepane.PagePane$RenderWorker.doInBackground(PagePane.java:290) at org.apache.pdfbox.debugger.pagepane.PagePane$RenderWorker.doInBackground(PagePane.java:259)
    at javax.swing.SwingWorker$1.call(SwingWorker.java:295)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at javax.swing.SwingWorker.run(SwingWorker.java:334)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

The problem is at Root/Pages/Kids/[0]/Resources/XObject/Im1 , at position 504.907 663.76, probably a missing logo at the top right. This should contain a stream dictionary with image or form items, but it contains only a dictionary with one item "nums". PDFBox somehow survives this.

However there must be another problem... I was able to fix the mentioned problem, but still can't view the file with Adobe Reader.

Now what you asked for is whether one could catch it. Sadly, so many people asked us to be able to display all sort of corrupt files with the argument "but it is displayed by Adobe!" so we are very lenient.

Tilman



Am 03.04.2017 um 08:52 schrieb karthick g:
Hi team,

These are the drop box links for the error pdf file.

PDF File
---------------
https://www.dropbox.com/s/hzkzfowl29b62fy/corrupt.pdf?dl=0

Screen Shot when loading the PDF file
------------------------------------------------------

https://www.dropbox.com/s/h9x5wad9dgwxnxt/pdf-error.png?dl=0

Screen Shot when pressing the CTRL key
-------------------------------------------------------------

https://www.dropbox.com/s/qpkztacdfx6hwep/ctrl-key-error-pdf.png?dl=0

  Please let me know if you need more information

Regards,
karthick G






On Fri, Mar 31, 2017 at 10:51 AM, karthick g <[email protected]>
wrote:

Hi Team,

Apologies for sending the previous mail to developer team, Please guide me

*  There was a problem when loading a pdf file to Adobe Acrobat.

*    "There was a problem reading this document (18) " (Error Shown by
acrobat)*
*  When running  the same file to the PDFBox it is working fine.

*    Is their way to catch this document(18) error in pdfbox while parse?*


Regards,
karthick



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to