tecnickcom/tc-lib-pdf-filter
Pure-PHP decoder for standard PDF stream filters, including FlateDecode, LZWDecode, RunLengthDecode, ASCIIHexDecode, ASCII85Decode, CCITTFaxDecode, DCTDecode, JPXDecode and JBIG2Decode. Chain multiple filters in sequence, with typed exceptions for invalid or unknown filters. Requires PHP 8.2+ and zl...
Decoder library for standard PDF stream filters.
💖 Part of the tc-lib-pdf / TCPDF ecosystem (100M+ installs). Sponsor its maintenance →
tc-lib-pdf-filter decodes compression and transformation filters defined by the PDF specification.
It is intended for parsing workflows where encoded PDF streams must be decoded according to the standard filter pipeline. By isolating filter logic in one component, callers get predictable behavior and easier testing across different document inputs.
| Namespace | \Com\Tecnick\Pdf\Filter |
| Author | Nicola Asuni [email protected] |
| License | GNU LGPL v3 - see LICENSE |
| API docs | https://tcpdf.org/docs/srcdoc/tc-lib-pdf-filter |
| Packagist | https://packagist.org/packages/tecnickcom/tc-lib-pdf-filter |
FlateDecode, LZWDecode, RunLengthDecodeASCIIHexDecode, ASCII85DecodeCCITTFaxDecode, DCTDecode, JPXDecode, JBIG2Decodezlibcomposer require tecnickcom/tc-lib-pdf-filter
<?php
require_once __DIR__ . '/vendor/autoload.php';
$filter = new \Com\Tecnick\Pdf\Filter\Filter();
$decoded = $filter->decodeAll(['ASCIIHexDecode', 'FlateDecode'], $data);
make deps
make help
make qa
make rpm
make deb
For system packages, bootstrap with:
require_once '/usr/share/php/Com/Tecnick/Pdf/Filter/autoload.php';
Contributions are welcome. Please review CONTRIBUTING.md, CODE_OF_CONDUCT.md, and SECURITY.md.
How can I help you explore Laravel packages today?