WIP: enable post processing of scanned file with external shell script
I still missed the OCR feature (see #1) so I found ocrmypdf. Which does its job pretty well.
So I love the simplicity of simple-scan
and the cability to have searchable pdfs.
new functionality
It extends the BookSaver
to delegate post-processing to an external script.
In this example implementation the scripts invokes ocrmypdf
.
Communication is done via environment variables.
How to use:
# compilation
meson --prefix $PWD/_install _build
ninja -C _build all install
# running
export GNOME_SIMPLE_SCAN_POST_PROCESS_SCRIPT=./simple-scan-post-process.sh
export GNOME_SIMPLE_SCAN_LOG=1
XDG_DATA_DIRS=_install/share:$XDG_DATA_DIRS ./_install/bin/simple-scan --debug test
This is my first working draft as a first time vala coder ;).
Edited by Bartosz