Skip to content

unze/ocrmypdf-watchdog

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ocrmypdf-watchdog

This is a simple watchdog for OCRMyPDF (and maybe others). It watches a given folder for new files with definable extensions and runs then ocrmypdf (or another command) to convert files to pdf.

Docker

The Dockerfile creates an image based on the jbarlow83/ocrmypdf image and adds the watchdog.

docker-compose up -d

There are 3 volumes: /in, /bak and /out The docker-compose.yml shows how to use them.

Environment

The watchdog looks for the following environment variables:

  • OCRMYPDF_IN
  • OCRMYPDF_BAK
  • OCRMYPDF_OUT
  • OCRMYPDF_BINARY
  • OCRMYPDF_PARAMETER
  • WATCHDOG_EXTENSIONS
  • WATCHDOG_FREQUENCY

Parameters

The watchdog accepts the following parameters:

  • --in
  • --bak
  • --out
  • --frequency
  • --ocrmypdf

About

A watchdog for OCRMyPDF written in go

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 92.0%
  • Dockerfile 8.0%