mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
pdf-ocr: fix
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
{
|
||||
lib,
|
||||
writers,
|
||||
poppler_utils,
|
||||
poppler-utils,
|
||||
tesseract,
|
||||
coreutils,
|
||||
}:
|
||||
@@ -21,7 +21,7 @@ writers.writeDashBin "pdf-ocr" ''
|
||||
|
||||
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
|
||||
${lib.getExe tesseract} "$png" "$png.txt" 2>/dev/null
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user