for i in *.pdf;
do
convert "$i" -compress zip ../compressed/"$i"
done
My solution would be to SSH with php into localhost and run the commands, but I can't figure out how to install the libssh2 libraries for XAMPP. Any help?
Edit: I need to use pdftotext as well, which doesn't seem to come with XAMPP like imagemagick does.