Running scripts on some events could be handy. The scripts to run could be defined by the user using hidden options in the configuration file (--> no GUI modification).
Events:
before each page scan
after each page scan + OCR + label detection
before each document deletion
before each page deletion
after a document modification (pages order changed)
after a page modification (page orientation changed or cropping) + OCR
...
Possible problem: Paperwork has many file descriptors opened (mostly due to a problem with PDF support). When forking+exec, scripts will inherit these file descriptors. Hopefully it shouldn't be much of a problem.
TODO: Find good examples of use cases
Running scripts on some events could be handy. The scripts to run could be defined by the user using hidden options in the configuration file (--> no GUI modification).
Events:
Possible problem: Paperwork has many file descriptors opened (mostly due to a problem with PDF support). When forking+exec, scripts will inherit these file descriptors. Hopefully it shouldn't be much of a problem.