Discussion:
[tesseract-ocr] How to create a PDF ?
Saliaj Adrian
2017-03-23 13:14:03 UTC
Permalink
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
--
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+***@googlegroups.com.
To post to this group, send email to tesseract-***@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.
ShreeDevi Kumar
2017-03-23 13:27:06 UTC
Permalink
see https://github.com/tesseract-ocr/tesseract/wiki/Command-Line-Usage

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

https://github.com/tesseract-ocr/tesseract/tree/master/tessdata

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


ShreeDevi
____________________________________________________________
Post by Saliaj Adrian
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
--
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
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
<https://groups.google.com/d/msgid/tesseract-ocr/d8bf5ba0-8528-4518-9a22-3a5c4ac4937f%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
To post to this group, send email to tesseract-***@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/CAG2NduWBZ3GzAAFZ2GbOAO0%3DuCeDnyKs%3DLThNke%2BV3uD4ydmng%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Saliaj Adrian
2017-03-23 13:34:22 UTC
Permalink
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+***@googlegroups.com.
To post to this group, send email to tesseract-***@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/4927503f-c032-46ab-91b1-3bc804437c7e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
ShreeDevi Kumar
2017-03-23 13:40:24 UTC
Permalink
in https://github.com/tesseract-ocr/tesseract/tree/master/tessdata

ShreeDevi
____________________________________________________________
Post by Saliaj Adrian
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
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/4927503f-c032-46ab-91b1-3bc804437c7e%
40googlegroups.com
<https://groups.google.com/d/msgid/tesseract-ocr/4927503f-c032-46ab-91b1-3bc804437c7e%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
To post to this group, send email to tesseract-***@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/CAG2NduWOTiHs0XZoAA_8LYW49c64RY3YMZQUsQdm2ivf%3DKhoyA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...