pdf with background image/color gives Invalid object reference for $obj. Error
Open
Nobody has claimed this yet.
bug
- Dominant language
- PHP
- Stars
- 2.7k
- Forks
- 579
- Avg merge
- 2m
- Merged PRs (30d)
- 1
Description
Exception: Invalid object reference for $obj. in Smalot\PdfParser\RawData\RawDataParser->getindirectObject() (line 528 in vendor/smalot/pdfparser/src/Smalot\PdfParser/RawData/RawDataParser.php)
im using v1.1.0, I tried the latest version but still get the same issue.
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 error with a PDF containing a background image or color, then inspect vendor/smalot/pdfparser/src/Smalot\PdfParser\RawData\RawDataParser.php at line 528 and trace the invalid object reference. Done means that this PDF is parsed without the reported exception and the behavior is covered by a regression check.
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