NYCPHP Meetup

NYPHP.org

[nycphp-talk] Compressing PDF's

Hans Zaunere hans at nyphp.org
Wed Jul 9 15:23:12 EDT 2003


Hey Jerry,

Jerry Kapron wrote:
> Does anyone know of a way to compress an *existing* raw PDF (ascii) file in
> LAMP environment?

Since PDF is just text, why not gzip, bzip2 or even zip?  For example,

$compressed = `/usr/bin/gzip -c something.pdf`;

[those are backticks]

And I think newer versions of PHP support this type of thing internally via http://us2.php.net/zlib

H






More information about the talk mailing list