Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
tuckertranslator opened this issue Aug 11, 2019 · 5 comments

Comments

@tuckertranslator
Copy link

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] read_trailer(::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
Copy link
Owner

sambitdash commented Aug 11, 2019

@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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

Fixed in: 89364fb

@sambitdash
Copy link
Owner

Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants