modesty / modesty/pdf2json

For 'Locked' PDF file, it does not return the reason of parsing error

Open
#95 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
2.2k
Forks
394
Avg merge
3d 5h
Merged PRs (30d)
7

Description

parser.on("pdfParser_dataError", function(dataError) {
     // ....
     // dataError.parserError
});

dataError.parseError is 'undefined' when 'locked (password protected)' PDF file is used

Contributor guide

No contributing guide indexed for this repository

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 at the pdfParser_dataError event and trace how parserError is populated for locked or password-protected PDFs. Confirm the existing behavior with a locked PDF, then make the parsing error reason available through dataError.parserError; done means the event reports a non-undefined reason.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.