djvu.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Wed, 05 Aug 2015 23:55:34 +0300
changeset 1729 22ffd80639c0
parent 1609 e65b971b2aa1
child 1905 fba288d59662
permissions -rw-r--r--
Make centered content design with adoption for mobile devices. Highlight TOC.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1334
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     1
.. -*- coding: utf-8; -*-
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     2
.. include:: HEADER.rst
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     3
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     4
===================
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     5
 DJVU file format.
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     6
===================
1346
a2fbf50a43f4 Fix: Has no 'contents::' directive.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1334
diff changeset
     7
.. contents::
1334
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     8
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     9
About djvu.
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    10
===========
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    11
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    12
  http://djvu.org/links/
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    13
                many useful links
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    14
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    15
DJVU viewers.
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    16
=============
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    17
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    18
 * DjVuLibre (all OS).
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    19
 * WinDjvu (Windows).
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    20
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    21
DJVU Editors.
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    22
=============
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    23
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    24
 * DjVuLibre (all OS).
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    25
 * DjVu Solo (Windows).
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    26
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    27
DjVuLibre.
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    28
----------
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    29
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    30
 * A full set of utilities to manipulate and assemble DjVu images and documents.
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    31
 * A set of decoders to convert DjVu to a number of other formats.
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    32
 * A standalone DjVu viewer for Unix under X11 (based on the Qt library).
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    33
 * A browser plugin that works with most Unix browsers
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    34
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    35
  http://djvu.sourceforge.net/
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    36
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    37
DjVu Solo.
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    38
----------
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    39
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    40
Tool for editing and merge files and documents in DjVu format from LizardTech.
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    41
Currently not maintained.
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    42
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    43
  http://www.djvu.org/resources/
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    44
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    45
djvu to pdf.
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    46
============
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    47
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    48
djvulibre::
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    49
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    50
  $ ddjvu -format=tiff book.djvu book.tiff
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    51
  $ tiff2pdf -o book.pdf book.tiff
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    52
1607
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
    53
or directly::
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
    54
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
    55
  $ ddjvu -format=pdf book.djvu book.pdf
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
    56
1609
e65b971b2aa1 Fix spelling.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1608
diff changeset
    57
PDF to Djvu.
1334
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    58
============
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    59
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    60
djvulibre.
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    61
----------
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    62
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    63
For 'pdftoppm' install xpdf (both Linux and Cygwin)::
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    64
1608
4258662f3a95 pdf to djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1607
diff changeset
    65
  $ pdftoppm -mono -r 600 -aa yes  $PREFIX.pdf  $PREFIX
4258662f3a95 pdf to djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1607
diff changeset
    66
  $ for pbm in $PREFIX*.pbm; do  cjb2 -dpi $DPI $pbm $pbm.djvu;  rm -f $pbm;  done
1334
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    67
1608
4258662f3a95 pdf to djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1607
diff changeset
    68
  $ djvm -c $OUTFILE  $PREFIX*.pbm.djvu
1334
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    69
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    70
pdf2djvu.
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    71
---------
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    72
::
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    73
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    74
  $ pdf2djvu file.pdf
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    75
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    76
  http://code.google.com/p/pdf2djvu/
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    77
                home page
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    78
1607
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
    79
JPEG to Djvu.
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
    80
=============
1334
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    81
1607
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
    82
JPEG to high quolity DjVu (DjVuPhoto encode)::
1334
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    83
1607
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
    84
  $ c44 -dpi $DPI  $FROM.jpg  $TO.djvu
1334
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    85
1607
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
    86
JPEG to low colour DjVu::
1334
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    87
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    88
  $ cpaldjvu -dpi $DPI -colors $NCOLORS $i $i.djvu
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    89
1607
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
    90
  $ djvm -c $OUTFILE *.djvu    # Many .djvu to single .djvu.
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
    91
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
    92
JPEG to bitonal DjVu::
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
    93
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
    94
  $ convert  $PAGE.jpeg  $PAGE.pbm
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
    95
  $ cjb2 -dpi $DPI  $PAGE.pbm  $PAGE.djvu
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
    96
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
    97
  $ djvm -c $OUTFILE *.djvu    # Many .djvu to single .djvu.
1334
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    98
1607
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
    99
if you don't like default delev of balck adjust options::
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   100
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   101
  $ convert -solarize 50% -level 0,50%  $PAGE.jpeg  $PAGE.pbm
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   102
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   103
or::
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   104
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   105
  $ convert  $PAGE.jpeg  pgm:- | pgmtopbm -value 0.499 > page.pbm
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   106