From 1e4247772c3e06b5a8706dc977166f58e60d1bc3 Mon Sep 17 00:00:00 2001 From: Pig Monkey Date: Mon, 29 Apr 2019 18:47:23 -0700 Subject: [PATCH] add ocrmypdf Currently the python-pdfminer.six AUR package is broken, so this needs to be installed manually. --- roles/pdf/tasks/main.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/roles/pdf/tasks/main.yml b/roles/pdf/tasks/main.yml index f65e754..559f1f9 100644 --- a/roles/pdf/tasks/main.yml +++ b/roles/pdf/tasks/main.yml @@ -66,3 +66,22 @@ state: present tags: - pdfgrep + +- name: Install OCRmyPDF and dependencies + aur: + name: + - python-pdfminer.six + - python-pikepdf + - python-ruffus + - ocrmypdf + user: "{{ user.name }}" + tags: + - ocrmypdf + - aur + +- name: Install tesseract-data-eng + pacman: + name: tesseract-data-eng + state: present + tags: + - ocrmypdf