How to create a PDF ?

252 views
Skip to first unread message

Saliaj Adrian

unread,
Mar 23, 2017, 9:14:03 AM3/23/17
to tesseract-ocr
Hello,

How can I can create a PDF with Tesseract ?

When I do : tesseract -l fra test.tif out2 -c tessedit_create_hocr=1
It works very good and my HTML file is created.

But when I do : tesseract -l fra test.tif out2 -c tessedit_create_pdf=1
It says : "Can not open file "usr/share/local/tessdata//pdf.ttf"!
Error during processing."

Why ?

Thanks in advance,
Adrian

ShreeDevi Kumar

unread,
Mar 23, 2017, 9:27:48 AM3/23/17
to tesser...@googlegroups.com

also check that u have pdf.ttf in your tessdata folder


tesseract  --tessdata-dir ./ ./testing/eurotext.png ./testing/eurotext-eng -l eng pdf

ShreeDevi
____________________________________________________________
भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com

--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-ocr+unsubscribe@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/d8bf5ba0-8528-4518-9a22-3a5c4ac4937f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Saliaj Adrian

unread,
Mar 23, 2017, 9:34:22 AM3/23/17
to tesseract-ocr
No I don't have pdf.ttf in my tessdata folder...

Where can I find it ?

ShreeDevi Kumar

unread,
Mar 23, 2017, 9:41:07 AM3/23/17
to tesser...@googlegroups.com

ShreeDevi
____________________________________________________________
भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com

On Thu, Mar 23, 2017 at 7:04 PM, Saliaj Adrian <supe...@live.fr> wrote:
No I don't have pdf.ttf in my tessdata folder...

Where can I find it ?

--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-ocr+unsubscribe@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
Reply all
Reply to author
Forward
0 new messages