smalot / smalot/pdfparser

Text Layout are unpredictable

Open
#672 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Often you can have PDF that generated by some customer apps, with not obvious order of objects.
if you need parse text im "page-position-order" you can become crap of data from tables.

try extract data from attached pdf.
Pdf-Layout-Issue.pdf

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 extraction problem with the attached Pdf-Layout-Issue.pdf and inspect how the parser orders text objects when using page-position-order. The issue does not identify a source file, test, or expected ordering, so confirm the desired output and locate the relevant layout-ordering entry point before defining a fix. Done should mean the attached PDF yields the agreed text order.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.