-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey there, 

I have been sitting down in front of my PC and this is the result [RECOMPDF]:

> #!/bin/bash
> fname=$1                      #take input-arguments
> jqual=$2                      #first is the filename, second is the 
> JPG-quality-value
> outname="${fname/.pdf}"-low   #strip filename-suffix and add "-low" instead
> mkdir /tmp/recompdf/          #work in /TMP/ directory
> convert -density 300 $fname /tmp/recompdf/split.jpg
> convert /tmp/recompdf/split*.jpg -quality $jqual "$outname".pdf
> rm -R /tmp/recompdf/          #clean up finally
> 

So actually it is none of the PDF-tools, that can help, but imagemagick, which 
is in turn
using ghostscript. Nice ain't it?



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlgJ35gACgkQ5+rBHyUt5wuEUQCeIboBikWF+H/JhZ9NUSEbdTS4
OYYAnihhjE73+xXCqYMgaNzUfD/09FJP
=6LkO
-----END PGP SIGNATURE-----

Reply via email to