From de5fef2349d1a7c85e96725912c0cac83e3c0745 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Tue, 24 Dec 2024 19:01:27 +0100 Subject: [PATCH] remove datamatrix support for performance --- control | 2 +- generate-trennblatt | 7 ------- readme.md | 8 -------- scantopdf | 6 ------ scantopdfbw | 6 ------ scantopdfgray | 6 ------ 6 files changed, 1 insertion(+), 34 deletions(-) diff --git a/control b/control index 739c7cf..97edcf0 100644 --- a/control +++ b/control @@ -2,5 +2,5 @@ Package: scantopdf Version: 1.0.1 Architecture: amd64 Maintainer: Bastian Dehn -Depends: sane (>= 1.0.14), qpdf (>= 11.3.0), pdftk (>= 2.02), libtiff-tools (>= 4.5.0), ocrmypdf (>= 14.0.1), tesseract-ocr-deu (>= 4.1.0), zbar-tools (>= 0.23.92), dmtx-utils (>= 0.7.6), qrencode (>= 4.1.), librsvg2-bin (>= 2.54.7), imagemagick (>= 8:6.9.11) +Depends: sane (>= 1.0.14), qpdf (>= 11.3.0), pdftk (>= 2.02), libtiff-tools (>= 4.5.0), ocrmypdf (>= 14.0.1), tesseract-ocr-deu (>= 4.1.0), zbar-tools (>= 0.23.92), qrencode (>= 4.1.), librsvg2-bin (>= 2.54.7) Description: scan to pdf with ocr scripts for sane-kds-s2000w-net diff --git a/generate-trennblatt b/generate-trennblatt index 10b04af..1352b4a 100755 --- a/generate-trennblatt +++ b/generate-trennblatt @@ -8,13 +8,6 @@ main() --output=- \ | rsvg-convert --format=pdf \ --output=trennblatt-qr.pdf - echo "Trennblatt" \ - | dmtxwrite --symbol-size=32x32 \ - --format=SVG \ - --output=- \ - | rsvg-convert --format=pdf \ - --output=trennblatt-datamatrix.pdf - } main diff --git a/readme.md b/readme.md index 7840830..4796682 100644 --- a/readme.md +++ b/readme.md @@ -9,14 +9,6 @@ scripts to scan with scanimage into pdf. it can scan many pages with cut page in - scantopdfbw - scan into black and white pdf - generate-trennblatt - generate cut page -## Prerequisite for multi pdf scan - -you must change the line wiht pattern `PDF` in /etc/ImageMagick-6/policy.xml - -```xml - -``` - ## Usage scan 5 pages into one pdf `test.pdf` diff --git a/scantopdf b/scantopdf index 2433024..53b095c 100755 --- a/scantopdf +++ b/scantopdf @@ -73,12 +73,6 @@ detectsplit() return fi - trenn=$(dmtxread $pdf) - if [ "$trenn" == "Trennblatt" ]; then - echo "true" - return - fi - echo "false" } diff --git a/scantopdfbw b/scantopdfbw index 6814a87..9c98580 100755 --- a/scantopdfbw +++ b/scantopdfbw @@ -73,12 +73,6 @@ detectsplit() return fi - trenn=$(dmtxread $pdf) - if [ "$trenn" == "Trennblatt" ]; then - echo "true" - return - fi - echo "false" } diff --git a/scantopdfgray b/scantopdfgray index eb7fb10..49eca9f 100755 --- a/scantopdfgray +++ b/scantopdfgray @@ -73,12 +73,6 @@ detectsplit() return fi - trenn=$(dmtxread $pdf) - if [ "$trenn" == "Trennblatt" ]; then - echo "true" - return - fi - echo "false" } -- 2.39.5