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,
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user