GithubHelp home page GithubHelp logo

Comments (5)

sambitdash avatar sambitdash commented on June 16, 2024 1

These files are not according to the PDF spec. So technically, the behavior of a parser on corrupt files cannot be guaranteed and should not be fixed in a hurry. While I will keep in mind to update the parser to handle some bad files, I cannot make it a guranteed feature in the product. For now you can remove the bad MIME corruptions in the file manually and work with them.

Can be done easily with a binary preserving text editor like vi or emacs on Unix or Linux.

from pdfio.jl.

sambitdash avatar sambitdash commented on June 16, 2024

The file is corrupt. The PDF file must start with %PDF and end with %%EOF. While some readers take a lenient stand on it, one cannot say that is the right approach. Anyway I fixed the file and uploading here for reference.
fixed.pdf

from pdfio.jl.

diegozea avatar diegozea commented on June 16, 2024

Thank you so much for the quick answer. I am having this error with the 75% of my files. Would it be possible to have some keyword argument for allowing parsing this kind of files? Something like permisive=true, but being false by default?

from pdfio.jl.

diegozea avatar diegozea commented on June 16, 2024

Thank you very much! There is no hurry at all :D

from pdfio.jl.

sambitdash avatar sambitdash commented on June 16, 2024

A fix in 4a4f071

from pdfio.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.