modesty / modesty/pdf2json

extracted data in the form of encoding format

Open
#132 3 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

Hi @modesty,

When I read data from pdf file the output data is in the form of encoding format.
Can you please take a look?
Periods.pdf

Code snippet:
var pdfParser = new PDFParser(this,1);
pdfParser.on("pdfParser_dataError", errData => console.error(errData.parserError) );
pdfParser.on("pdfParser_dataReady", pdfData => {
console.log(pdfParser.getRawTextContent());
//console.log(pdfParser.getAllFieldsTypes());
fs.writeFile('' + filePath + '/Axioma Optimization 101.txt', pdfParser.getRawTextContent());
});

    pdfParser.loadPDF('' + filePath + '/Periods.pdf'); 

Regards,
Durga Prasad

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 by reproducing the report with the attached Periods.pdf and the provided PDFParser snippet, then trace how getRawTextContent() produces its output. The issue is resolved when the extracted text is readable rather than an encoding-form representation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
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.