You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used hocr-pdf (https://github.com/tmbdev/hocr-tools/blob/master/hocr-pdf) to generate a PDF (attached). hocr-pdf can merge a hocr file with an image file to generate a PDF. The hocr file is generated by Tesseract. Adobe Reader and Chrome default PDF viewer both have no problem to let me select and copy text from the PDF. But PDF.js does not allow me to select the text.
Anyone knows why? Is it an issue with hocr-pdf or PDF.js? Any suggestion on how to resolve the issue?
Thanks for the pointer. To those who are interested in the solution for using hocr-pdf, I simply replaced the fontname from "invisible" to "Courier". Then everything works fine. There is no more problem reported by PDF.js.
I used hocr-pdf (https://github.com/tmbdev/hocr-tools/blob/master/hocr-pdf) to generate a PDF (attached). hocr-pdf can merge a hocr file with an image file to generate a PDF. The hocr file is generated by Tesseract. Adobe Reader and Chrome default PDF viewer both have no problem to let me select and copy text from the PDF. But PDF.js does not allow me to select the text.
Anyone knows why? Is it an issue with hocr-pdf or PDF.js? Any suggestion on how to resolve the issue?
tesseract_hocr.pdf
The text was updated successfully, but these errors were encountered: