Difference between revisions of "Djvu"

From ArchWiki
Jump to: navigation, search
m (Convert djvu to images: wording)
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
[[Category:Office]]
 
{{Stub}}
 
{{Stub}}
[[Category: Office (English)]]
 
  
 
== Convert djvu to images ==
 
== Convert djvu to images ==
 
 
Break Djvu into separate pages:
 
Break Djvu into separate pages:
 
   djvmcvt -i input.djvu /path/to/out/dir output-index.djvu
 
   djvmcvt -i input.djvu /path/to/out/dir output-index.djvu
Line 9: Line 8:
 
Convert Djvu pages into images:
 
Convert Djvu pages into images:
 
   ddjvu --format=tiff page.djvu page.tiff
 
   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:
 
You can also use ''--page'' to export specific pages:
Line 14: Line 16:
 
this will convert pages from 1 to 10 into one tiff file.
 
this will convert pages from 1 to 10 into one tiff file.
  
== Process images ==
+
== Processing images ==
 
+
You can use {{Pkg|scantailor}} to:
You can use community/scantailor package. It can:
+
 
* fix orientation
 
* fix orientation
 
* split pages
 
* split pages
Line 24: Line 25:
  
 
== Make djvu from images ==
 
== Make djvu from images ==
 
 
There is a useful script [https://aur.archlinux.org/packages.php?ID=49995 img2djvu-git].
 
There is a useful script [https://aur.archlinux.org/packages.php?ID=49995 img2djvu-git].
 
   img2djvu -d600 -v1 ./out
 
   img2djvu -d600 -v1 ./out
 
it will create 600dpi out.djvu from all files in ./out directory.
 
it will create 600dpi out.djvu from all files in ./out directory.

Revision as of 15:44, 13 June 2012

Tango-document-new.pngThis article is a stub.Tango-document-new.png

Notes: please use the first argument of the template to provide more detailed indications. (Discuss in Talk:Djvu#)

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.