Blob Blame History Raw
.\" Copyright (c) 2003 Leon Bottou, Yann Le Cun, Patrick Haffner,
.\" Copyright (c) 2001 AT&T Corp., and Lizardtech, Inc.
.\" This is free documentation; you can redistribute it and/or
.\" modify it under the terms of the GNU General Public License as
.\" published by the Free Software Foundation; either version 2 of
.\" the License, or (at your option) any later version.
.\" The GNU General Public License's references to "object code"
.\" and "executables" are to be interpreted as the output of any
.\" document formatting or typesetting system, including
.\" intermediate and printed output.
.\" This manual is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" GNU General Public License for more details.
.\" You should have received a copy of the GNU General Public
.\" License along with this manual. Otherwise check the web site
.\" of the Free Software Foundation at
.TH DJVUPS 1 "01/18/2003" "DjVuLibre-3.5" "DjVuLibre-3.5"
djvups \- Convert DjVu documents to PostScript.

.BI "djvups  [" "options" "] [" "djvufile" "] [" "outputfile" "]"

This program decodes DjVu file 
.IR djvufile ,  
and generates a PostScript file named
.IR outputfile .
The DjVu data is read from the standard input when argument 
.IR "djvufile"
is not specified or when it is equal to a single dash.
Similarly, the output data is written to the standard output
when argument 
.IR "outputfile"
is not specified or equal to a single dash.

PostScript printers have various capabilities.
Investigate options 
.B -level
.B -gray
for obtaining the best results.

.BI -help
Prints the list of recognized options.
.BI -verbose
Displays a progress bar.
.BI -page= pagespec
Specify the document pages to be converted.
The page specification
.I pagespec 
contains one or more comma-separated page ranges.
A page range is either a page number, 
or two page numbers separated by a dash.
.BR 1-10 ,
for instance, prints pages 1 to 10.
.BR 1,3,99999-4
prints pages 1 and 3, followed by all the document
pages in reverse order up to page 4.
.BI -format=ps
Produce a PostScript file. 
This is the default.
.BI -format=eps
Produce an Encapsulated PostScript file.
Encapsulated PostScript files are suitable for
embedding images into other documents.
Encapsulated PostScript file can only contain 
a single page. Setting this option
overrides the options
.BR -copies ,
.BR -orientation ,
.BR -zoom ,
.BR -cropmarks ,
.BR -booklet .
.BI -copies= n
Specify the number of copies to print.
.BI -orientation= orient
Specify whether pages should be printed using
.BR auto ,
.BR portrait ,
.B landscape 
.BI -mode= modespec
Specify how pages should be decoded.
The default mode,
.BR color ,
renders all the layers of the DjVu documents.
.BR black
only renders the foreground layer mask.  This mode does not work with
DjVuPhoto images because these files have no foreground layer
.BR foreground 
.BR background
only render the foreground layer or the background layer 
of a DjVuDocument image.
.BI -zoom= zoomspec
Specify a zoom factor
.IR zoomspec .
The default zoom factor, 
.BR auto ,
scales the image to fit the page.
.I zoomspec
also can be a number in range 
.BR 25
.BR 2400 
representing a magnification percentage
relative to the original size of the document.
.BI -frame= yesno
.BR yes
causes the generation of a thin gray border
representing the boundaries of the document pages.
The default is
.BR no .
.BI -cropmarks= yesno
.BR yes
causes the generation of crop marks
indicating where pages should be cut.
The default is
.BR no .
.BI -level= languagelevel
Select the language level of the generated PostScript.
.IR languagelevel . 
Valid language levels are 
.BR 1 ,
.BR 2 ,
.BR 3 .
.B 3 
produces the most compact and fast printing PostScript files.
Some of these files however require a very modern printer.
.B 2 
is the default value.
The generated PostScript files are almost as compact
and work with all but the oldest PostScript printers.
.B 1
can be used as a last resort option.
.BI -color= yesno
The default value,
.BR yes ,
generates a color PostScript file.
Specifying value
.BR no
converts the image to gray scale.
The resulting PostScript file is smaller
and marginally more portable.
.BI -gray
This option is equivalent to option
.BR -color=no 
and is provided for convenience.
.BI -colormatch= yesno
The default value,
.BR yes ,
generates a PostScript file using
device independent colors in compliance
with the 
Modern printers then produce colors that match
the original as well as possible.  
Specifying value
.B no
generates a PostScript file using device dependent colors.  
This is sometimes useful with older printers.
You can then use option
.BR -gamma 
to tune the output colors.
.BI -gamma= gammaspec
Specify a gamma correction factor for the device dependent PostScript colors.
.I gammaspec
must be in range
.B 0.3
.BR 5.0 .
Gamma correction normally pertains to cathodic screens only.  
It gets meaningful for printers because several models
interpret device dependent RGB colors by emulating the color
response of a cathodic tube.  
.BI -booklet= opt
Turns the booklet printing mode on.
The booklet mode prints two pages on each side
in a way suitable for making a booklet by folding
the sheets. Option
.I opt
can take values
.B no
for disabling the booklet mode,
.B yes
for enabling the recto/verso booklet mode, and
.B recto
.B verso
to print only one side of each sheet.
.BI -bookletmax= max
Specifies the maximal number of pages per booklet.
A single printout might then be composed of several 
booklets. Argument
.I max
is rounded up to the next multiple of 4. 
.B 0
sets no maximal number of pages
and ensures that the printout will produce
a single booklet.  This is the default.
.BI -bookletalign= align
Specifies a positive or negative offset 
applied  to the verso of each sheet.  
.I align
is expressed in points 
(one point is 1/72th of an inch, or 0.352 millimeter)
This is useful with certain printers to ensure that 
both recto and verso are properly aligned.  The default
value is of course
.BR 0 .
.BI -bookletfold= base[+incr]
Specifies the extra margin left  between both pages
on a single sheet.  The base value
.I base
is expressed in points (one point is 1/72th of an inch, 
or 0.352 millimeter). This margin is incremented for 
each outer sheet by value
.I incr
expressed in millipoints. The default value is 
.BR 18+200 .

This program was written by L\('eon Bottou <>,
Andrei Erofeev <>, and Florin Nicsa.

.BR djvu (1),
.BR ddjvu (1).
.BR djview (1)