Hi Nassar,

I am using pjx.jar api to read pdf document. My aim is to get the "object
structure" of the pdf document.
When i try to read pdf files, i get exceptions like ...

while reading pdf file1

com.etymon.pj.exception.PdfFormatException: Token "   " not recognized.
        at com.etymon.pj.StreamParser.processToken(StreamParser.java:958)
        at com.etymon.pj.StreamParser.parse(StreamParser.java:22)
        at GetPDFInfo.main(GetPDFInfo.java:35)

-------------------------------------------------------------

while reading pdf file 2

com.etymon.pj.exception.PdfFormatException: Token "%!PS-AdobeFont-1.1:" not
recognized.
    at com.etymon.pj.StreamParser.processToken(StreamParser.java:958)
    at com.etymon.pj.StreamParser.parse(StreamParser.java:22)
    at GetPDFInfo.main(GetPDFInfo.java:35)

-------------------------------------------------------------

while reading pdf file 3
com.etymon.pj.exception.PdfFormatException: Token "???? ?Adobe d?    ?? C "
not
recognized.
        at com.etymon.pj.StreamParser.processToken(StreamParser.java:958)
        at com.etymon.pj.StreamParser.parse(StreamParser.java:22)
        at GetPDFInfo.main(GetPDFInfo.java:101)


Can you please tell me, what is the reason for errors?

I am attaching sample java file for your perusal.

Regards,
Balbhadra





Attachment: GetPDFInfo.java
Description: Binary data

Reply via email to