Releases: smalot/pdfparser
v1.2.0-RC2
❗Not production ready - We reworked our code base and added typed parameters as well as return values. If you find anything, please drop us a comment. Further information can be found #468. Thank you in advance!❗
Changes since v1.2.0-RC1
- Fix TypeError on default font when no fonts available (#466, thanks for @PrinsFrank)
- Fix for extractRawData, extractDecodedRawData, getDataTm and getDataXY do not work with a Pdf file produced by FPDI/FPDF (#454, thanks to @izabala)
Further information about changes and fixes in 1.2.0 can be found here: https://github.com/smalot/pdfparser/releases/tag/v1.2.0-RC1
v1.2.0-RC1
Bug fix and performance release
❗Not production ready - We reworked our code base and added typed parameters as well as return values. If you find anything, please drop us a comment. Further information can be found #468. Thank you in advance!❗
Highlights:
- massive code refactoring (thanks to @jee7, #440)
- workaround to enable FPDFs (thanks to @izabala, #453)
- Added cache for Documents object cache dictionary, which also results in better performance in some cases (thanks to @jee7, #434)
- prevent endless loops during
Page->getText()
in some cases (thanks to @Nickmanbear, #457) - Fixes invalid return type on unknown glyphs (thanks to @PrinsFrank, #459)
- Fix TypeError on
Document::getFirstFont
when no fonts are available (thanks to @PrinsFrank, #461)
@j0k3r improved our test backend.
v1.1.0
Maintenance and small performance boost
PDFs with images can be parsed with less resource consumption (like memory) from now on. @Connum added a feature with #441 to ignore image data. It must be enabled manually though. You can do it easily:
use Smalot\PdfParser\Config;
use Smalot\PdfParser\Parser;
$config = new Config();
$config->setRetainImageContent(false);
$parser = new Parser([], $config);
// $parser->parseFile (...)
Besides that, we fixed a problem with Scrutinizer (part of our test infrastructure).
v1.0.2
v1.0.1
v1.0.0
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)
v0.19.0
Bugfix and feature release
Features:
- Add support for PDF 1.5 Xref stream (#400, thanks @smalot)
- Add support for Reversed Chars instruction in BMC blocs (#402, thanks @smalot)
Fixes:
- Encoding::__toString complies with PHP specification from now on (#407, thanks @igor-krein and others from #85)
- fix
Call to a member function getFontSpaceLimit() on null
(#406, thanks @xfolder) - Consider all PDF white-space characters in object header (#405, thanks @LucianoHanna)
v0.18.2
Maintenance release
- Bugfix for #391 (
Uncaught Error: Call to undefined method Smalot\PdfParser\Header::__toString() in /var/www/vendor/smalot/pdfparser/src/Smalot/PdfParser/Font.php
) (thanks @fsmoak) - Addition of an alternative autoloader for non-Composer installations (#388). Based on the work of @apmuthu and others from #117.
v0.18.1
v0.18.0
🎆 Happy new year release! 🧨
A few bug fixes and improvements.
Fixes:
- Implemented missing
__toString
method inEncoding.php
(thanks @tomlutzenberger, #378). - In
Header.php
make sureinit
is only called if$element
is of typeElement
(thanks @lukgru, #380).
Improvements: