PackageTrack
Sign in Get early access

smalot/pdfparser

Pdf parser library. Can read and extract information from pdf file.

v2.12.5 45M downloads/mo #386 most downloaded on Packagist smalot/pdfparser

What this package is like to depend on

Last release 4 months ago

17 Apr 2026

Ships fairly regularly

a new release about every 3 months

Rarely documented

notes for 10 of 70 stable releases

Nothing withdrawn

no release was ever pulled

13 years old

74 releases · first in 2013

4 releases in the last 12 months

see the full history below

Release timeline

72 releases · Sep 2013 to Apr 2026
2014 2016 2018 2020 2022 2024 2026
Release Pre-release

Releases

latest 60 of 74
  1. v2.12.5 17 Apr 2026
    Release notes

    What's Changed

    • Updated .gitattributes so less files will be distributed when someone downloads the package (by @williamdes in #792)
    • For PHP 8.5: Fix chr() deprecation in ASCII85 last-tuple decoding by @Ciki in #793

    New Contributors

    Full Changelog: v2.12.4...v2.12.5

    Open source →
  2. v2.12.4 10 Mar 2026
    Release notes

    Bugfix 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

    Open source →
  3. v2.12.3 08 Jan 2026
    Release notes

    Security fix and refinements

    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.

    Refinement to improve extracted texts

    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

    Open source →
  4. v2.12.2 04 Sep 2025
    Release notes

    What's Changed

    • Include PHP 8.5 in CI + Fixes deprecations by @k00ni in #779

    Full Changelog: v2.12.1...v2.12.2

    Open source →
  5. v2.12.1 31 Jul 2025
    Release notes

    What's Changed

    • Stop Image XObjects being included as empty strings in PDFObject::getTextArray(). by @rupertj in #775

    Internal

    • CI: Updated OS images (Windows, Ubuntu) by @k00ni in #776

    New Contributors

    Full Changelog: v2.12.0...v2.12.1

    Open source →
  6. v2.12.0 31 Mar 2025
    Release notes

    What's Changed

    Internal changes

    • chore: update phpunit.xml by @vitormattos in #757
    • CI: added PHP 8.4 by @k00ni in #723
    • Simplified Coding Style checks: PSR12 replaces Symfony, risky not allowed anymore by @k00ni in #737
    • Introducing CONTRIBUTING.md by @k00ni in #744
    • pull_request_template.md: Set path to CONTRIBUTING.md by @k00ni in #760

    New Contributors

    Full Changelog: v2.11.0...v2.12.0

    Open source →
  7. v2.11.0 16 Aug 2024
    Release notes

    What's Changed

    • Account for inline images in formatContent() by @GreyWyvern in #693
    • Fix for two bugs related to Unicode translation support by Font objects by @unixnut in #698
    • Fix for adjacent escaped slashes and escaped parentheses in strings by @GreyWyvern in #711
    • Merge XMP Metadata if dc:format tag not found by @GreyWyvern in #722
    • Implement missing cm command by @DominikDostal in #720
    • fix typo and clarify sentence by @bernard-ng in #729
    • fix: check that the previous xref is not the just processed xref by @tkegan in #727

    Internal changes

    • Continuous-integration.yml: let workflow run on each push event by @k00ni in #719

    New Contributors

    Full Changelog: v.2.10.0...v2.11.0

    Open source →
  8. v2.10.0 29 Apr 2024
    Release notes

    What's Changed

    Internal changes

    • improved documentation: Return page width and height from document by @vitormattos in #700
    • Fixed CS issue in PDFObject.php by @k00ni in #695

    Full Changelog: v2.9.0...v.2.10.0

    Open source →
  9. v2.9.0 01 Mar 2024
    Release notes

    What's Changed

    • Fix returning empty text in some cases by @xAzoom in #666
    • Baseencoding fallback by @GreyWyvern in #669
    • Check for binary content in formatContent() before a problematic regexp by @GreyWyvern in #676
    • Fixed latest coding style issues and refined a few PHP doc entries to match types by @k00ni in #677
    • Fixes Scrutinizer integration (mostly failing tests) by @k00ni in #682
    • Fixed a few coding style issues by @k00ni in #670

    New Contributors

    Full Changelog: v2.8.0...v2.9.0

    Open source →
  10. v2.8.0 01 Dec 2023

    Nothing published for this version

  11. v2.8.0-RC2 no date pre-release

    Nothing published for this version

  12. v2.8.0-RC1 07 Nov 2023 pre-release

    Nothing published for this version

  13. v2.7.0 10 Aug 2023

    Nothing published for this version

  14. v2.5.0 24 Apr 2023

    Nothing published for this version

  15. v2.4.0 14 Mar 2023

    Nothing published for this version

  16. v2.3.0 21 Dec 2022

    Nothing published for this version

  17. v2.2.2 05 Dec 2022

    Nothing published for this version

  18. v2.2.1 02 May 2022

    Nothing published for this version

  19. v2.2.0 04 Apr 2022

    Nothing published for this version

  20. v2.1.0 03 Feb 2022

    Nothing published for this version

  21. v2.0.1 22 Nov 2021

    Nothing published for this version

  22. v2.0.0 18 Oct 2021

    Nothing published for this version

  23. v1.2.0-RC2 no date pre-release

    Nothing published for this version

  24. v1.2.0-RC1 01 Oct 2021 pre-release

    Nothing published for this version

  25. v1.1.0 03 Aug 2021

    Nothing published for this version

  26. v1.0.2 17 Jun 2021

    Nothing published for this version

  27. v1.0.1 20 May 2021

    Nothing published for this version

  28. v1.0.0 26 Apr 2021
    Release notes

    d4148fd

    This commit was created on GitHub.com and signed with GitHub’s verified signature . The key has expired.

    GPG key ID: 4AEE18F83AFDEB23 Expired

    Verified Learn about vigilant mode .

    Highlights

    • Removed support for PHP 5.6 and 7.0, requires at least PHP 7.1 or newer❗

    • extended Config.php with white space characters: it allows developers to override regex for white space recognition ( #411 , thanks @LucianoHanna )

    • Fixed some test-infrastructure related issues ( #412 , #413 , #414 )

    Open source →
  29. v0.19.0 13 Apr 2021

    Nothing published for this version

  30. v0.18.2 25 Feb 2021

    Nothing published for this version

  31. v0.18.1 05 Jan 2021

    Nothing published for this version

  32. v0.18.0 30 Dec 2020

    Nothing published for this version

  33. v0.17.1 29 Oct 2020

    Nothing published for this version

  34. v0.17.0 12 Oct 2020

    Nothing published for this version

  35. v0.16.2 31 Aug 2020

    Nothing published for this version

  36. 0.16.1 26 Jun 2020

    Nothing published for this version

  37. v0.16.0 08 Jun 2020

    Nothing published for this version

  38. v0.15.1 27 May 2020

    Nothing published for this version

  39. v0.15.0 21 Apr 2020

    Nothing published for this version

  40. v0.14.0 23 Jan 2019

    Nothing published for this version

  41. v0.13.3 11 Jan 2019

    Nothing published for this version

  42. v0.13.2 23 Jun 2018

    Nothing published for this version

  43. v0.13.1 22 Jun 2018

    Nothing published for this version

  44. v0.13.0 22 Jun 2018

    Nothing published for this version

  45. v0.12.0 16 Mar 2018

    Nothing published for this version

  46. v0.10.0 03 Jan 2017

    Nothing published for this version

  47. v0.9.26 05 Nov 2016

    Nothing published for this version

  48. v0.9.25 18 Sep 2015

    Nothing published for this version

  49. v0.9.24 26 May 2015

    Nothing published for this version

  50. v0.9.23 18 Mar 2015

    Nothing published for this version

  51. v0.9.22 21 Jan 2015

    Nothing published for this version

  52. v0.9.21 07 Jul 2014

    Nothing published for this version

  53. v0.9.20 16 Feb 2014

    Nothing published for this version

  54. v0.9.19 29 Jan 2014

    Nothing published for this version

  55. v0.9.18 28 Jan 2014

    Nothing published for this version

  56. v0.9.17 26 Jan 2014

    Nothing published for this version

  57. v0.9.16 25 Jan 2014

    Nothing published for this version

  58. v0.9.15 25 Jan 2014

    Nothing published for this version

  59. v0.9.14 25 Jan 2014

    Nothing published for this version

  60. v0.9.13 25 Jan 2014

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive