Best way to downsample a ripped version of PDF to PDF

This way requires a bit of linux software

Debian / Ubuntu
apt-get install ps2pdf
apt-get install pdf2ps

And then to the magic – lets say that your pdf is located at /home/mypdf.pdf

shell_exec(“pdf2ps /home/mypdf.pdf /home/”);
shell_exec(“ps2pdf /home/ /home/mypdf.pdf”);

Leave a comment

Your email address will not be published. Required fields are marked *