NAME

pdfunit-outfox.pl - Send responses to the dialog box of the evaluation version

USAGE

pdfunit-outfox.pl

IMPORTANT

1. If you are using PDFUnit-Java for productive work, get yourself a license!

2. This program only works on Linux! It will never be ported to Windows!

3. See 1.!

DESCRIPTION

pdfunit-outfox.pl runs in an endless loop and waits for the dialog window of the non-licened version of PDFUnit-Java to appear.

If this happens, it saves a temporary screenshot of the dialog window, converts it to TIFF, starts an optical character recognition, and extracts the arithmetic expression.

Finally it calculates the response and sends it back to the dialog.

CONFIGURATION

Normally, no configuration is required.

If you don't have X11 running, or if you don't like the dialog to pop up, you can "fake" an X Server with the following line in your pdfunit config:

outfox_display = :42

(Choose any number different from existing $DISPLAY numbers.)

REQUIREMENTS

This program uses the following tools:

Xvfb
xwd
convert
xdotool
tesseract

On a Debian 8 system, you get these installed via:

aptitude install xvfb x11-apps imagemagick xdotool tesseract-ocr

BUGS

Sometimes the OCR fails. That's the way it is.

See "IMPORTANT" in this case.

AUTHOR

Axel Miesen <miesen@quadraginta-duo.de>

SEE ALSO

PDF::PDFUnit, PDF::PDFUnit::Config