Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a few files in .djvu format, which size is small, but unfortunately mi e-reader can't display it. I use DjvuToy to transform it to PDF and it keeps the small size; but then, when I use Abby FineReader to do the OCR and save, the size increments about eight times (this only happens when the file includes color or grayscale images). So, I figure that it would be possible take the second file text layer and add it to the first so I can get both the small size and the OCR. How can I do that?

Note: The original djvu file does not have text layer, although it would be nice to know how to convert from djvu to pdf including text directly.

share|improve this question
Actually, it converts it to XML, block by block with coordinate which effectively maps over locations of the words/letters – Dave Oct 4 '12 at 14:05

Ghostscript could be used directly to edit the PDF properties while preserving the text layer:

gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dColorConversionStrategy=/Gray -dProcessColorModel=/DeviceGray -sOutputFile=output.pdf input.pdf

From here.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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