smalot / smalot/pdfparser

Question: PDF parser concatenating text

Open
#225 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PHP
Stars
2.7k
Forks
579
Avg merge
2m
Merged PRs (30d)
1

Description

Hi,
I have an interesting issue, that I have yet to resolve, or find a solution for.
So I thought to reach out.

I have run a pdf parse on my pdf file, (this is an invoice) the attached screenshot has three sale lines, the first 2 look pretty good, the third line has two quantity columns that have been concatenated and so I am trying to see what and how the PDF parser is reading the data and why this third line is being treated differently. - Screenshot: https://share3.ecnal.com.au/Zq5bDLb1wQ
Any insights would be greatly appreciated.

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

No repository file, test, or entry point is named. Start by obtaining the invoice PDF referenced by the screenshot and reproducing the parsed output for the third sale line, then compare it with the first two lines. Done means identifying the cause of the concatenated quantity columns and adding a verified regression case or clear explanation.

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.