rmtheis / tess-two

Fork of Tesseract Tools for Android
Apache License 2.0
3.76k stars 1.38k forks source link

"GlyphLessFont" error when opening PDF #104

Closed rmtheis closed 9 years ago

rmtheis commented 9 years ago

Error when opening a PDF generated with tess-two using Adobe Reader 11:

Cannot extract the embedded font 'GlyphLessFont'. Some characters may not display or print correctly.
rmtheis commented 9 years ago

https://groups.google.com/forum/?fromgroups#!topic/tesseract-dev/xXplYPiZCZI

rmtheis commented 9 years ago

To fix this, the pdf.ttf file from tesseract's tessdata directory must be present in the device's tessdata directory.

ArjanSchouten commented 9 years ago

There is a pdf.ttf file and a pdf.ttx file. Do I need both or only pdf.ttf?

rmtheis commented 9 years ago

Using only pdf.ttf seems to always work for me, but you might want to ask on the Tesseract mailing list to be sure.

ArjanSchouten commented 9 years ago

Thanks for your reaction! Already used only pdf.ttf since pdfrenderer is only referencing that one in the source.

However I got the error "Expected a name object" in Adobe Reader. I read somewhere that this could be due to wrong fonts. Therefore I was wondering about that file.

@rmtheis Have you ever got "There was a problem reading this document (18)" and by pressing ctrl - OK "Expected a name object"?

rmtheis commented 9 years ago

Hmm, no. Could be a bug in Tesseract.

ArjanSchouten commented 9 years ago

Yeah I think so. If I can't fix it I will create an issue at tesseract-ocr. Thanks.