Git Product home page Git Product logo

Comments (8)

adrienjoly avatar adrienjoly commented on August 11, 2024

Thanks for reporting this issue, Ryan.

In order to find a solution, our community needs a more precise description of the problem (e.g. error message) and, if possible, a way to reproduce the issue. Can you share more details and provide a PDF file that fails to parse with pdfreader, please?

from npm-pdfreader.

lauzonryd avatar lauzonryd commented on August 11, 2024

I was able to diagnose the exact situation in which this is failing. I am attaching two PDFs here. It appears that when a comment is added onto a table, the server crashes. There is no error message, it just stops working completely and the whole server needs restarted. If there was an error message I would be able to handle it accordingly.

testingWithTable.pdf - this PDF fails
testingWithTable-noComment.pdf - this PDF does not fail

testingWithTable.pdf
testingWithTable-noComment.pdf

from npm-pdfreader.

adrienjoly avatar adrienjoly commented on August 11, 2024

from npm-pdfreader.

lauzonryd avatar lauzonryd commented on August 11, 2024

When attempting to open these pdfs with pdf2json, I'm getting the same results. The server is crashing when a comment is placed within a table, and works as expected without comments.

from npm-pdfreader.

adrienjoly avatar adrienjoly commented on August 11, 2024

from npm-pdfreader.

adrienjoly avatar adrienjoly commented on August 11, 2024

FYI, I just published a new version of pdfreader that uses the last version of pdf2json: Release v1.2.11 · adrienjoly/npm-pdfreader

from npm-pdfreader.

lauzonryd avatar lauzonryd commented on August 11, 2024

Thanks, I ran the update and tried again but the issue persists. I posted an issue in within the pdf2json repo but I haven't gotten any response.

from npm-pdfreader.

adrienjoly avatar adrienjoly commented on August 11, 2024

For reference, here's the issue you opened on pdf2json's repo: modesty/pdf2json#242

I'm guessing that it was fixed in pdf2json v1.2.5. Unfortunately, that release introduced a breaking change which is not (yet) supported by pdfreader. (see #95)

In you feel like it, feel free to propose a Pull Request to make pdfreader support that version of pdf2json.

from npm-pdfreader.

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.