{"repo":"jfilter/pdf-scripts","free":true,"listed":false,"github":"https://github.com/jfilter/pdf-scripts","clone":"git clone https://github.com/jfilter/pdf-scripts.git","description":"📑 Scripts to repair, verify, OCR, compress, wrangle, crop (etc.) PDFs","language":"Shell","stars":71,"topics":["pdf","ocr","repair","verify","compress","bash-script","bash","crop-image","python"],"license":"GPL-3.0","category":"media-processing","readme_excerpt":"PDF Scripts Scripts (mostly Bash) to repair, verify, OCR, compress (etc.) PDFs. Currently in beta status, so except backward-incompatible changes. Install You need to have Bash) installed. The scripts use several software libraries. setup.sh installs them for macOS (via brew) or Ubuntu/Debian. Usage 1. Go to root of this repository: cd pdf-scripts 2. Excute script ./pipeline.sh -l deu /path/to/document-in-german.pdf Please refer to the scripts for the command-line arguments and options. NB: It's not possible to combine options, e.g., use -x -y instead of -xy . Most scripts work on individual PDFs as well as on folders full of PDFs. Overview ocr pdf.sh OCR PDFs with OCRmyPDF. repair pdf.sh Using: pdftocairo from poppler, mutool clean from MuPDF, qpdf Caveat: May remove text in OCRd PDFs. Use --check to check for OCRd text in order to preserve it. verify pdf.sh Checks if text can be extracted (if it's already on the PDF) compress pdf.sh Using ghostcript to compress images in PDFs. reduce size pdf.sh Use compress pdf.sh but also pdfsizeopt to reduze file size of PDFs. clean metadata pdf.sh Remove metadata with exiftool. is ocrd pdf.sh Detect OCRd PDFs. See also sort ocrd pdfs.sh to sort PDFs. pipeline.sh Combining several of the above scripts. FAQ Why Bash? Bash is still the most-used shell. And the scipts comprise mostly of simple conditionals and sequences of CLI commands. This could also be done with Python's psutil but this would add yet another layer. However, at some point","default_branch":null,"files":null,"tree":[],"storefront":"/r/jfilter","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jfilter/pdf-scripts/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}