Investigations - PDF Processing
Tips
Stripping Metadata
INPUTPDF=filename.pdf ; gs -sDEVICE=pdfwrite -dNOPAUSE -dQUIET -dBATCH -dPDFSETTINGS=/prepress -sOutputFile=`echo $INPUTPDF | sed -e 's/\.pdf/_cleaned.pdf/'` $INPUTPDF
Embedded OCR
from https://qiita.com/takafi/items/67cb5be4e0eed23be606