bernmic / ocrmypdf-watchdog

A watchdog for OCRMyPDF written in go
GNU General Public License v3.0
11 stars 6 forks source link

Overwrite settings via config file in input folder #4

Open CWempe opened 3 years ago

CWempe commented 3 years ago

I think it would be nice if you could set some options for ocrmypdf in a config file in the input folder.

My use case would be to temporarily add parameters without logging into my server and configuring my docker conatiner.

For example I might want to scan many documents that do not need good quality. I also know all pages will have a wrong orientation, but need a lower threshold to get fixed.

So my ocrmypdf.conf would look like this:

--optimize 3
--rotate-pages-threshold 0.1

This solution would also give other users of my NAS the possibility to change the parameters to their desire without needing my help.

I just started using ocrmypdf today. So I don't know if this actually makes sense or how difficult it would be to implement. 😄

Maybe this project is even deprecated since the official project has its own watchdog-container. 🤔

bernmic commented 3 years ago

I' have a look to it later today. I haven't seen, that there is a "official" watchdog container. I will also have a look to it.