14

DjVu is efficient at compression, but sometimes the text becomes an image and non-selectable. Is there anyway to make sure that the text remains selectable? Which program should I use for this conversion?

2
  • 1
    Which OS are you working?
    – Anthon
    Dec 27, 2013 at 6:48
  • Linux/ Win 7. Any option in both.
    – amarprabhu
    Dec 29, 2013 at 6:21

3 Answers 3

9

DjVu files are normally image only. From these file sections can be selected as images but not as text¹.

If OCR was applied during, or after, the conversion to DjVu. Extra information is stored in the files that associate image areas with text. Only if that was done you can select text from such a file².

Applying OCR to a DjVu file can be done online. If you don't like that you could try this script, that uses Tesseract. Or you can go for commercial software such as Document Express.

¹ e.g. using the djview program.
² In theory one could do OCR on the fly in the DjVu viewer, but I don't think any of the currently available viewers can do that.

1
  • 1
    Tesseract is not only an OCR engine, but also an Asgardian artifact of unimaginable power!
    – Jason Down
    Dec 27, 2013 at 16:32
2

You can also use ocrodjvu with a selected OCR engine, e.g. tesseract.

0

You can use djvuxmlparser to insert XML with OCR text.

You can prepare this XML for example in FineReader.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.