smalot / smalot/pdfparser

Encrypted but not really _encrypted_ PDF isn't parsed and detected as "secured pdf"

Open
#320 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs more info parsing fail
Dominant language
PHP
Stars
2.7k
Forks
579
Avg merge
2m
Merged PRs (30d)
1

Description

This is a very good package with excellent and easy to use API but it seems not production-ready yet. I'm having errors with different PDFs.

also, I'm getting an error saying pdf in encrypted. I double-checked if the PDF is protected, it wasn't.

maybe a version issue? like in another issue posted in this repository.

I have created a screencast for better understanding and these pdf is not getting parsed in your demo page too.

Please find the files in the attachment.

pdf and screencasts.zip

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the report with the attached PDF and screencast files, both through the package and its demo page. Investigate why an apparently unprotected PDF is classified as secured and why parsing fails; done means the supplied PDFs are parsed without the false encrypted-PDF error, with the relevant behavior verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.