Difference between revisions of "Djvu"

From ArchWiki
Jump to: navigation, search
m (Processing images: -the)
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[Category: Office (English)]]

Revision as of 15:44, 13 June 2012

Convert djvu to images

Break Djvu into separate pages:

 djvmcvt -i input.djvu /path/to/out/dir output-index.djvu

Convert Djvu pages into images:

 ddjvu --format=tiff page.djvu page.tiff

Convert Djvu pages into PDF:

 ddjvu --format=pdf inputfile.djvu ouputfile.pdf

You can also use --page to export specific pages:

 ddjvu --format=tiff --page=1-10 input.djvu output.tiff

this will convert pages from 1 to 10 into one tiff file.

Processing images

You can use scantailor to:

  • fix orientation
  • split pages
  • deskew
  • crop
  • adjust margins

Make djvu from images

There is a useful script img2djvu-git.

 img2djvu -d600 -v1 ./out

it will create 600dpi out.djvu from all files in ./out directory.