djvu.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sat, 10 Feb 2018 01:49:07 +0200
changeset 2230 9e6ad6607a9e
parent 2228 837f1337c59b
permissions -rw-r--r--
Fixed formatting.
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
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
 DJVU file format.
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     5
===================
1346
a2fbf50a43f4 Fix: Has no 'contents::' directive.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1334
diff changeset
     6
.. contents::
1905
fba288d59662 Include only local subsections into TOC. This prevent duplication of
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1609
diff changeset
     7
   :local:
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
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    12
http://djvu.org/links/
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    13
  Many useful links.
1334
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
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    18
* DjVuLibre (all OS).
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    19
* WinDjvu (Windows).
1334
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
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    24
* DjVuLibre (all OS).
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    25
* DjVu Solo (Windows).
1334
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
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    30
* A full set of utilities to manipulate and assemble DjVu images and documents.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    31
* A set of decoders to convert DjVu to a number of other formats.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    32
* A standalone DjVu viewer for Unix under X11 (based on the Qt library).
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    33
* A browser plugin that works with most Unix browsers
1334
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    34
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    35
See:
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    36
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    37
* http://djvu.sourceforge.net/
1334
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
DjVu Solo.
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    40
----------
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    41
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    42
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
    43
Currently not maintained.
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    44
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    45
* http://www.djvu.org/resources/
1334
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
djvu to pdf.
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    48
============
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
djvulibre::
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    51
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    52
  $ ddjvu -format=tiff book.djvu book.tiff
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    53
  $ tiff2pdf -o book.pdf book.tiff
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    54
1607
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
    55
or directly::
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
    56
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
    57
  $ ddjvu -format=pdf book.djvu book.pdf
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
    58
1609
e65b971b2aa1 Fix spelling.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1608
diff changeset
    59
PDF to Djvu.
1334
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    60
============
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
djvulibre.
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    63
----------
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    64
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    65
For 'pdftoppm' install xpdf (both Linux and Cygwin)::
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    66
1608
4258662f3a95 pdf to djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1607
diff changeset
    67
  $ pdftoppm -mono -r 600 -aa yes  $PREFIX.pdf  $PREFIX
4258662f3a95 pdf to djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1607
diff changeset
    68
  $ 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
    69
1608
4258662f3a95 pdf to djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1607
diff changeset
    70
  $ djvm -c $OUTFILE  $PREFIX*.pbm.djvu
1334
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
pdf2djvu.
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
::
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
  $ pdf2djvu file.pdf
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    77
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    78
http://code.google.com/p/pdf2djvu/
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    79
  Home page.
1334
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    80
1607
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
    81
JPEG to Djvu.
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
    82
=============
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
JPEG to high quolity DjVu (DjVuPhoto encode)::
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
  $ c44 -dpi $DPI  $FROM.jpg  $TO.djvu
1334
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    87
1607
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
    88
JPEG to low colour DjVu::
1334
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    89
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    90
  $ cpaldjvu -dpi $DPI -colors $NCOLORS $i $i.djvu
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    91
1607
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
    92
  $ djvm -c $OUTFILE *.djvu    # Many .djvu to single .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
JPEG to bitonal DjVu::
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
    95
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
    96
  $ convert  $PAGE.jpeg  $PAGE.pbm
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
    97
  $ cjb2 -dpi $DPI  $PAGE.pbm  $PAGE.djvu
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
    98
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
    99
  $ 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
   100
1607
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   101
if you don't like default delev of balck adjust options::
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
  $ convert -solarize 50% -level 0,50%  $PAGE.jpeg  $PAGE.pbm
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
or::
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   106
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   107
  $ convert  $PAGE.jpeg  pgm:- | pgmtopbm -value 0.499 > page.pbm
2fd95feb3135 JPEG to Djvu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   108