nachdem mir dieser Thread Lust gemacht hat meine Dokumentenarchivierung etwas komfortabler zu gestalten, habe ich eine erste Version meines Scripts scan2pdf im Wikiartikel MultiScanTNG veröffentlicht.
Das Script erlaubt es, ein- und mehrseitige Dokumente als PDF zu Archivieren, wobei die durchnittliche Größe für eine DIN-A4 schwarz-weiß Kopie mit etwa 60Kb recht moderat ausfällt.
"Screenshots":
Code: Alles auswählen
~$ scan2pdf
Note: scan2pdf creates its PDF files in /home/puntarenas/scan2pdf,
using /tmp for temporary files.
Usage: scan2pdf [-h] [-b] [-c] [-a "author"] [-t "title"] [-k "keywords"] file
-h show this help
-b use the scanners button for batch mode scanning
-c force cleanup of temporary files
PDF options (optional):
-a Author to show up in the document properties, quotes needed
-t Title to show up in the document properties, quotes needed
-k Keywords to show up in the document properties, quotes needed
file Name of the resulting PDF without suffix (required)
Code: Alles auswählen
~$ scan2pdf -a "puntarenas" -t "Einkaufszettel" -k "mein doppelseitiger DIN A4 Einkaufszettel vom 29. Februar" zettel
Please enter the first page and press any key to scan
Scanning page 1 ...
Please enter page 2 and press any key to scan
Press <q> to quit batch mode and start conversion
Scanning page 2 ...
Please enter page 3 and press any key to scan
Press <q> to quit batch mode and start conversion
Creating TIFF images...
/tmp/scan2pdfout101.pgm
scan2pdftiff101.tif
/tmp/scan2pdfout102.pgm
scan2pdftiff102.tif
Combining TIFF images...
Creating PDF document...
Optimizing PDF...
zettel.pdf was created at /home/puntarenas/scan2pdf
Cleaning up...
Code: Alles auswählen
~$ ls -hs scan2pdf/zettel.pdf
112K scan2pdf/zettel.pdf
puntarenas
Edit: "Screenshots erneuert"