LeoFCardoso / pdf2pdfocr

A free tool to OCR a PDF and add a text "layer" in the original file, making a searchable PDF. Use only open source tools. Please tip!
Apache License 2.0
266 stars 33 forks source link

GUI #6

Closed ericmoret closed 5 years ago

ericmoret commented 6 years ago

Would be nice to have a simple gui to this tool. Maybe a contextual menu in finder, a print driver, or even an icon that could accept dragged and dropped pdf files ready to OCR?

sky4055 commented 6 years ago

@ericmoret +1

LeoFCardoso commented 6 years ago

Hi there! Thanks for the suggestion. I will try to build something multiplatform. By now, in MacOS you can try Automator. I have a "workflow" with this script:

source /etc/profile
source /Users/XXXXX/.profile   # Use your username
#
for f in "$@"
do
    /usr/local/bin/pdf2pdfocr.py -st -i "$f"  
done

You can create various workflows with different PDF2PDFOCR parameters. It's not a GUI, so this issue stay open, but maybe it can work for you.

LeoFCardoso commented 6 years ago

Last commit introduce a simple GUI using Gooey library. Please install Gooey from PIP and have a try. Tested on MacOS and Windows.

LeoFCardoso commented 5 years ago

Please open new issues for GUI related features.