v2.3.1
Bug Fixes
- Fixed
SplitHandleroff-by-one bug: output files are now correctly namedpart_1.pdf–part_N.pdfto match Ghostscript's actual output (waspart_0.pdf–part_{N-1}.pdf) - Fixed
MergeHandlerundefined variable in catch block; added guard to throwHandlerExceptionwhen$filesis empty - Fixed
GetTotalPagesHandlerundefined variable in catch block - Fixed
isPdf()inBaseHandlerto check file existence before callingmime_content_type(), preventing PHP warnings on non-existent paths - Added image type validation in
ToImageHandler— onlyjpegandpngare accepted; invalid types now throwHandlerException
CI
- Resolved PHPUnit security advisory blocking issue via
composer.jsonaudit ignore config
Full Changelog: v2.3.0...v2.3.1