smalot / smalot/pdfparser

After parsing it gives wrong character for well formated pdf

Open
#249 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I have well formatted pdf from which I want one number. It is needed to read all the text and find out number. But when parsed it gives some wrong text , few chars it is not reading properly.

PDF contains such a text " JOBCARD + PROCESS FLOW SHEET +QUALITY PLAN"
But it reads like 'JOBCARD PROCESS + SHEEl OUALITY PLAN'

Also for text " THM0041201" it reads like '7H[rm41201'

Can we fix this issue?

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 reported extraction with the referenced PDF and compare the expected strings with the parsed output, especially the missing spaces and misread characters in “JOBCARD + PROCESS FLOW SHEET +QUALITY PLAN” and “THM0041201”. Done means the parser extracts those characters and separators correctly without regressing other PDF text.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.