Code: Select all
$ pdfimages -all input.pdf name
$ find . -maxdepth 1 -iname '*jpg' -exec convert -threshold 50% {} ouputdirectory/{} \;
$ mogrify -format pdf -- *.jpg
$ pdfunite *.pdf output.pdf
Code: Select all
$ pdfimages -all input.pdf name
$ find . -maxdepth 1 -iname '*jpg' -exec convert -threshold 50% {} ouputdirectory/{} \;
$ mogrify -format pdf -- *.jpg
$ pdfunite *.pdf output.pdf
Code: Select all
$ convert in.pdf -threshold 50% out.pdf