Following up on how to OCR a pdf file and get the text stored within pdf? I have successfully produced OCRed pdf pages.
In Evince, however, the letters are not shown; by this I mean that I cannot see the characters, but I can select them, copy them and paste them elsewhere successfully. This does not seem to be a bug of Evince: https://bugzilla.redhat.com/show_bug.cgi?id=1364201
When initiating an OCR of a pdf page with pdfsandwich, tesseract produces a page that
contains a font which doesn't have any usable glyphs (they named it GlyphLessFont). It has only .notdef and .null replacements (the squares). Evince uses the .notdef glyph if there is no glyph for the character. The reason that Okular highlight the text is because it does it in the image not as a regular text as evince does.
pdftotext recognises the characters.
Now, the question is: can tesseract be told to use a different font?
pdftotext
recognize the characters? (you may need to tweak character encoding) – grochmal Aug 27 '16 at 13:28pdftotext
outputs recognizable characters now (at least as of 5.0alpha). – Geremia May 07 '21 at 21:53