sambitdash / PDFIO.jl

PDF Reader Library for Native Julia.
Other
127 stars 13 forks source link

Not able to execute any functions on a basic PDF. Error: Found ' (32)' Expected '<' here #72

Closed tuckertranslator closed 5 years ago

tuckertranslator commented 5 years ago

Hi there. I am getting an error when I try to execute getPDFText() or pdDocOpen() or any other function. This the error: Found ' (32)' Expected '<' here

And here is the first few lines of stack trace: the stacktrace: _[1] error(::String) at ./error.jl:33 [2] skipv at /Users/tuckercahillchambers/.julia/packages/PDFIO/Miu63/src/BufferParser.jl:25 [inlined] [3] readtrailer(::IOStream, ::Int64) at /Users/tuckercahillchambers/.julia/packages/PDFIO/Miu63/src/CosDoc.jl:382

I have searched for this error and come up with nothing. Any ideas on where to go from here? Thank you.

sambitdash commented 5 years ago

@tuckertranslator, can you share the file where you faced the error? If you cannot share the file here in public, you can send the file to me by e-mail. Without the file it'll be hard for me to to comment on the issue.

sambitdash commented 5 years ago

You can also run the default tests on the PDFIO installation by using the following commands:

(PDFIO) pkg> test PDFIO
   Testing PDFIO
 Resolving package versions...
Copying Arial.afm to /home/sambit/.julia/dev/PDFIO/test/../data/fonts
┌ Warning: Embedded file streams without Crypt filters may not decrypt
└ @ PDFIO.Cos ~/.julia/dev/PDFIO/src/StdSecHandler.jl:357
┌ Warning: Embedded file streams without Crypt filters may not decrypt
└ @ PDFIO.Cos ~/.julia/dev/PDFIO/src/PKISecHandler.jl:62
Test Summary: | Pass  Total
PDFIO tests   |  120    120
Removing Arial.afm from /home/sambit/.julia/dev/PDFIO/test/../data/fonts
   Testing PDFIO tests passed 

If the test passes the error must be due to something specific in the PDF file.

tuckertranslator commented 5 years ago

Hi Sambit. I emailed you the PDF as it is a bit sensitive. I ran the package test per your suggestion, and the package seems to be fine. I will update here later on, if we manage to resolve the PDF issue. Thank you.

sambitdash commented 5 years ago

Fixed in: https://github.com/sambitdash/PDFIO.jl/commit/89364fbcf46cc718e5eef1643da7ec0602795eba

sambitdash commented 5 years ago

Closing.