]> gitweb.hhaalo.de Git - scantopdf.git/commitdiff
add generate trennblatt script
authorBastian Dehn <hhaalo@arcor.de>
Tue, 24 Dec 2024 16:14:06 +0000 (17:14 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Tue, 24 Dec 2024 16:16:41 +0000 (17:16 +0100)
build-package
control
generate-trennblatt [new file with mode: 0755]

index 9a4a0a1f2c5eb3e4126fbadc28d2843390b924c9..1eaf0e0d148ffabb3501db4b3c1c308727e949ac 100755 (executable)
@@ -13,6 +13,7 @@ main()
        cp scantopdf build/$PACKAGENAME/usr/local/bin/scantopdf
        cp scantopdfgray build/$PACKAGENAME/usr/local/bin/scantopdfgray
        cp scantopdfbw build/$PACKAGENAME/usr/local/bin/scantopdfbw
+       cp generate-trennblatt build/$PACKAGENAME/usr/local/bin/generate-trennblatt
 
        mkdir -p build/$PACKAGENAME/DEBIAN
        cp control build/$PACKAGENAME/DEBIAN/control
diff --git a/control b/control
index f4ebc0ef171f3a9d3845d35c55f12c487395a9bb..9c936d60967f9536d484334e7a4ab453e746122f 100644 (file)
--- a/control
+++ b/control
@@ -2,5 +2,5 @@ Package: scantopdf
 Version: 1.0.0
 Architecture: amd64
 Maintainer: Bastian Dehn <hhaalo@arcor.de>
-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)
+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)
 Description: scan to pdf with ocr scripts for sane-kds-s2000w-net
diff --git a/generate-trennblatt b/generate-trennblatt
new file mode 100755 (executable)
index 0000000..10b04af
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+main()
+{
+       echo "Trennblatt" \
+               | qrencode --level=H \
+                       --type=SVG \
+                       --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