Skip to content

Would you be open to receive a port of resilience improvements from smalot/pdfparser? #315

Description

@vitormattos

I’m working on a PR for the smalot/pdfparser project that significantly improves the parser’s resilience to malformed PDFs. Practically: from 870 PDFs parsed from the PDF.js, the successful count rose to 922, +52 files that previously failed now parse correctly.

At LibreSign we plan to use this to replace pdfinfo (a Poppler binary). I opened a PR to smalot/pdfparser to add support for extracting page dimensions (CropBox/MediaBox), which would let us remove the current LibreSign workaround that relies on pdfinfo for many problematic PDFs.

Would you be interested in accepting a port of my contribution into this project? I propose to port PR smalot/pdfparser#795, it was developed with TDD and fixtures for all fixes required to extract page dimensions, and it produced the improvement described above.

Your project appears more active than smalot’s and targets supported PHP versions only. However, your package doesn’t seem to include smalot’s commit history, which reduces visibility in my view. Given these points, and despite having fewer contributors than smalot/pdfparser, it would make more sense for me to focus effort here, so LibreSign can rely on a stable package and contribute to its maintenance.

Would you be open to discussing this?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions