I stay in Germany, and whereas many assume we’ve issues so as right here, we nonetheless have to kind out forms. It is a clu**fu** at greatest as a result of German officers depend on paper – paper and handwritten signatures.
It may go thus far {that a} scanned doc picture is most popular over a pleasant and sharp PDF. I do not personal a printer, not to mention a scanner, so often, I drag myself to the native copy store to do official enterprise.
Till now! I have been shopping Hacker Information, and the shell script beneath takes a PDF and makes it appear like it has been scanned.
#!/bin/sh
ROTATION=$(shuf -n 1 -e '-' '')$(shuf -n 1 -e $(seq 0.05 .5))
convert -density 150 $1
-linear-stretch '1.5percentx2%'
-rotate ${ROTATION}
-attenuate '0.01'
+noise Multiplicative
-colorspace 'grey' $2
Suppose you known as the script index
, now you can run the next command…
./index.sh unique.pdf scanned.pdf
… to scan your PDFs with no bodily scanner.
Aspect notice: the convert
command is a part of the imagemagick
instruments and wasn’t out there on my machine. You might need to put in it first. A brew set up imagemagick
did the trick for me, although.