pdfunit-outfox.pl - Send responses to the dialog box of the evaluation version
pdfunit-outfox.pl
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.!
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.
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.)
This program uses the following tools:
On a Debian 8 system, you get these installed via:
aptitude install xvfb x11-apps imagemagick xdotool tesseract-ocr
Sometimes the OCR fails. That's the way it is.
See "IMPORTANT" in this case.
Axel Miesen <miesen@quadraginta-duo.de>
PDF::PDFUnit, PDF::PDFUnit::Config
To install PDF::PDFUnit, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PDF::PDFUnit
CPAN shell
perl -MCPAN -e shell install PDF::PDFUnit
For more information on module installation, please visit the detailed CPAN module installation guide.