1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

pdf-ocr: fix

This commit is contained in:
2026-03-04 17:59:38 +01:00
parent dce42c7e80
commit f8bb3c04bf

View File

@@ -2,7 +2,7 @@
{ {
lib, lib,
writers, writers,
poppler_utils, poppler-utils,
tesseract, tesseract,
coreutils, coreutils,
}: }:
@@ -21,7 +21,7 @@ writers.writeDashBin "pdf-ocr" ''
cd "$tmpdir" cd "$tmpdir"
${lib.getExe' poppler_utils "pdftoppm"} -png "$pdf_path" pdf-ocr ${lib.getExe' poppler-utils "pdftoppm"} -png "$pdf_path" pdf-ocr
for png in pdf-ocr*.png; do for png in pdf-ocr*.png; do
${lib.getExe tesseract} "$png" "$png.txt" 2>/dev/null ${lib.getExe tesseract} "$png" "$png.txt" 2>/dev/null
done done