Problem reading a pdf containing e-mail address with a dot (.)
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 2.7k
- Forks
- 579
- Avg merge
- 2m
- Merged PRs (30d)
- 1
Description
So I encountered a problem while parsing some pdf containing contact details like e-mails.
The strings in my .pdf file are in format:
[e-mail], [phone number]
For example:
Kontaktní údaje: helena.svatova@seznam.cz, 60665
gives a result of
Kontaktní údaje: <004B0048004F0048005100440011005600590044005700520056005200590044002300560048005D00510044005000110046 005D000F> 60665
It seems to be okay as long the e-mail address does not contain a single dot. Interestingly, if an e-mail address contains two dots, ie: foo.baar.4@gmail.com, then it is read correctly.
Any quick fix to solve this?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the PDF parsing problem with the provided e-mail examples, especially the address containing one dot. Trace the PHP PDF text extraction path to find where that address becomes encoded incorrectly; done means the single-dot address is read correctly without breaking the two-dot case.
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
- 28/100