modesty / modesty/pdf2json

Merge algorithm is broken

Open
#150 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

Re-Combining of the text stream does not work as

  • .x and .width are in different coordinate systems pdffont.js
  • width has some added magic number and additions
  • and the modified coordinates are assumed in the same coordinate system for bounding box comparison

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 reading pdffont.js and tracing how .x and .width are produced and compared during text-stream recombination. Confirm which values use each coordinate system and identify the source of the width adjustments; done means bounding-box comparisons recombine the text stream correctly without inconsistent coordinates.

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
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.