NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist, #349 most downloaded on Packagist
Pdf parser library. Can read and extract information from pdf file.
Latest stable
v2.13.1
Last release 1 months ago
13 Oct 2026
Ships fairly regularly
a new release about every 3 months
Rarely documented
notes for 12 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
77 releases · first in 2013
Drag across the ruler to compare, or tap a release to open it.
Mitigation of Denial-of-Service vulnerabilities
This release introduces safeguards against potential denial-of-service attacks caused by specially crafted PDF files.
LZWDecode and RunLengthDecode).To preserve backward compatibility, the default decompression limit remains 0 (unlimited). Applications processing untrusted PDFs should explicitly configure Config::setDecodeMemoryLimit().
The nesting depth limit defaults to 5,000 levels but does not currently cover recursion caused by consecutive PDF comments. These safeguards therefore mitigate, but do not completely eliminate, the reported risks.
Special thanks to Eduardo Santos de Abreu (@blackrose-0xday) for responsibly reporting both vulnerabilities and providing detailed proof-of-concept examples.
CVE identifiers will be added once available.
See #843 for further details.
Your coding agent can read these notes before it upgrades. Set up the MCP server →
@kernie , @bernemann , @splitbrain and @NiekNijland contributed bug fixes and performance optimizations for this release. Thank you. 🚀
@kernie, @bernemann, @splitbrain and @NiekNijland contributed bug fixes and performance optimizations for this release. Thank you. 🚀
Full Changelog: v2.12.5...v2.13.0
@kernie , @bernemann , @splitbrain and @NiekNijland contributed bug fixes and performance optimizations for this release. Thank you. 🚀
@kernie, @bernemann, @splitbrain and @NiekNijland contributed bug fixes and performance optimizations for this release. Thank you. 🚀
❗ I have marked it as a beta version because it may contain changes that could affect the production system. Before marking it as the latest stable release I wanna see if there are bug reports / complains from our users. Further information about this release can be found in #844.
🐛 If you find problems, please open a new issue. Thanks
Full Changelog: v2.12.5...v2.13.0-beta1
For PHP 8.5: Fix chr() deprecation in ASCII85 last-tuple decoding by @Ciki in #793
Full Changelog: v2.12.4...v2.12.5
Refining a change in the latest release:
Refining a change in the latest release:
Ignore Form as well as Image XObjects when assembling the text array for a PDFObject. by @rupertj in #783
When assembling the text array for an object, skip Forms that don't contain any text, instead of all Forms. by @rupertj in #789
Full Changelog: v2.12.3...v2.12.4
Fix for potential Denial of Service vulnerability
Summary: The fix prevents the RawDataParser.php to enter an endless loop under certain circumstances which would lead to memory exhaustion.
Details: When parsing a specifically crafted, malformed PDF file, the low-level RawDataParser enters a state that leads to uncontrolled memory allocation. This continues until the PHP script exhausts its memory_limit and crashes with a fatal error. An attacker can leverage this vulnerability by submitting a small, malicious PDF file to any service using this library, causing the server process to crash and become unavailable.
Thank you Yang LUO (https://github.com/N0zoM1z0) for reporting this and the provided details on the matter. #787 contains further information.
Ignore Form as well as Image XObjects when assembling the text array for a PDFObject. by @rupertj in #783
Full Changelog: v2.12.2...v2.12.3
Include PHP 8.5 in CI + Fixes deprecations by @k00ni in #779
Full Changelog: v2.12.1...v2.12.2
Stop Image XObjects being included as empty strings in PDFObject::getTextArray(). by @rupertj in #775
Fix incorrect parsing of bfrange ( #631 ) by @nsfisis in #763
Full Changelog: v2.11.0...v2.12.0
Account for inline images in formatContent() by @GreyWyvern in #693
Full Changelog: v.2.10.0...v2.11.0
Prevent zero from being passed to array_chunk() by @GreyWyvern in #686
Full Changelog: v2.9.0...v.2.10.0
Fix returning empty text in some cases by @xAzoom in #666
Full Changelog: v2.8.0...v2.9.0
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Compare
Compare
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.