|
Packit |
df99a1 |
.\" Copyright (c) 2003 Leon Bottou, Yann Le Cun, Patrick Haffner,
|
|
Packit |
df99a1 |
.\" Copyright (c) 2001 AT&T Corp., and Lizardtech, Inc.
|
|
Packit |
df99a1 |
.\"
|
|
Packit |
df99a1 |
.\" This is free documentation; you can redistribute it and/or
|
|
Packit |
df99a1 |
.\" modify it under the terms of the GNU General Public License as
|
|
Packit |
df99a1 |
.\" published by the Free Software Foundation; either version 2 of
|
|
Packit |
df99a1 |
.\" the License, or (at your option) any later version.
|
|
Packit |
df99a1 |
.\"
|
|
Packit |
df99a1 |
.\" The GNU General Public License's references to "object code"
|
|
Packit |
df99a1 |
.\" and "executables" are to be interpreted as the output of any
|
|
Packit |
df99a1 |
.\" document formatting or typesetting system, including
|
|
Packit |
df99a1 |
.\" intermediate and printed output.
|
|
Packit |
df99a1 |
.\"
|
|
Packit |
df99a1 |
.\" This manual is distributed in the hope that it will be useful,
|
|
Packit |
df99a1 |
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
df99a1 |
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit |
df99a1 |
.\" GNU General Public License for more details.
|
|
Packit |
df99a1 |
.\"
|
|
Packit |
df99a1 |
.\" You should have received a copy of the GNU General Public
|
|
Packit |
df99a1 |
.\" License along with this manual. Otherwise check the web site
|
|
Packit |
df99a1 |
.\" of the Free Software Foundation at http://www.fsf.org.
|
|
Packit |
df99a1 |
.TH DJVUPS 1 "01/18/2003" "DjVuLibre-3.5" "DjVuLibre-3.5"
|
|
Packit |
df99a1 |
.SH NAME
|
|
Packit |
df99a1 |
djvups \- Convert DjVu documents to PostScript.
|
|
Packit |
df99a1 |
|
|
Packit |
df99a1 |
.SH SYNOPSIS
|
|
Packit |
df99a1 |
.BI "djvups [" "options" "] [" "djvufile" "] [" "outputfile" "]"
|
|
Packit |
df99a1 |
|
|
Packit |
df99a1 |
.SH DESCRIPTION
|
|
Packit |
df99a1 |
This program decodes DjVu file
|
|
Packit |
df99a1 |
.IR djvufile ,
|
|
Packit |
df99a1 |
and generates a PostScript file named
|
|
Packit |
df99a1 |
.IR outputfile .
|
|
Packit |
df99a1 |
The DjVu data is read from the standard input when argument
|
|
Packit |
df99a1 |
.IR "djvufile"
|
|
Packit |
df99a1 |
is not specified or when it is equal to a single dash.
|
|
Packit |
df99a1 |
Similarly, the output data is written to the standard output
|
|
Packit |
df99a1 |
when argument
|
|
Packit |
df99a1 |
.IR "outputfile"
|
|
Packit |
df99a1 |
is not specified or equal to a single dash.
|
|
Packit |
df99a1 |
|
|
Packit |
df99a1 |
PostScript printers have various capabilities.
|
|
Packit |
df99a1 |
Investigate options
|
|
Packit |
df99a1 |
.B -level
|
|
Packit |
df99a1 |
and
|
|
Packit |
df99a1 |
.B -gray
|
|
Packit |
df99a1 |
for obtaining the best results.
|
|
Packit |
df99a1 |
|
|
Packit |
df99a1 |
.SH OPTIONS
|
|
Packit |
df99a1 |
.TP
|
|
Packit |
df99a1 |
.BI -help
|
|
Packit |
df99a1 |
Prints the list of recognized options.
|
|
Packit |
df99a1 |
.TP
|
|
Packit |
df99a1 |
.BI -verbose
|
|
Packit |
df99a1 |
Displays a progress bar.
|
|
Packit |
df99a1 |
.TP
|
|
Packit |
df99a1 |
.BI -page= pagespec
|
|
Packit |
df99a1 |
Specify the document pages to be converted.
|
|
Packit |
df99a1 |
The page specification
|
|
Packit |
df99a1 |
.I pagespec
|
|
Packit |
df99a1 |
contains one or more comma-separated page ranges.
|
|
Packit |
df99a1 |
A page range is either a page number,
|
|
Packit |
df99a1 |
or two page numbers separated by a dash.
|
|
Packit |
df99a1 |
Specification
|
|
Packit |
df99a1 |
.BR 1-10 ,
|
|
Packit |
df99a1 |
for instance, prints pages 1 to 10.
|
|
Packit |
df99a1 |
Specification
|
|
Packit |
df99a1 |
.BR 1,3,99999-4
|
|
Packit |
df99a1 |
prints pages 1 and 3, followed by all the document
|
|
Packit |
df99a1 |
pages in reverse order up to page 4.
|
|
Packit |
df99a1 |
.TP
|
|
Packit |
df99a1 |
.BI -format=ps
|
|
Packit |
df99a1 |
Produce a PostScript file.
|
|
Packit |
df99a1 |
This is the default.
|
|
Packit |
df99a1 |
.TP
|
|
Packit |
df99a1 |
.BI -format=eps
|
|
Packit |
df99a1 |
Produce an Encapsulated PostScript file.
|
|
Packit |
df99a1 |
Encapsulated PostScript files are suitable for
|
|
Packit |
df99a1 |
embedding images into other documents.
|
|
Packit |
df99a1 |
Encapsulated PostScript file can only contain
|
|
Packit |
df99a1 |
a single page. Setting this option
|
|
Packit |
df99a1 |
overrides the options
|
|
Packit |
df99a1 |
.BR -copies ,
|
|
Packit |
df99a1 |
.BR -orientation ,
|
|
Packit |
df99a1 |
.BR -zoom ,
|
|
Packit |
df99a1 |
.BR -cropmarks ,
|
|
Packit |
df99a1 |
and
|
|
Packit |
df99a1 |
.BR -booklet .
|
|
Packit |
df99a1 |
.TP
|
|
Packit |
df99a1 |
.BI -copies= n
|
|
Packit |
df99a1 |
Specify the number of copies to print.
|
|
Packit |
df99a1 |
.TP
|
|
Packit |
df99a1 |
.BI -orientation= orient
|
|
Packit |
df99a1 |
Specify whether pages should be printed using
|
|
Packit |
df99a1 |
the
|
|
Packit |
df99a1 |
.BR auto ,
|
|
Packit |
df99a1 |
.BR portrait ,
|
|
Packit |
df99a1 |
or
|
|
Packit |
df99a1 |
.B landscape
|
|
Packit |
df99a1 |
orientation.
|
|
Packit |
df99a1 |
.TP
|
|
Packit |
df99a1 |
.BI -mode= modespec
|
|
Packit |
df99a1 |
Specify how pages should be decoded.
|
|
Packit |
df99a1 |
The default mode,
|
|
Packit |
df99a1 |
.BR color ,
|
|
Packit |
df99a1 |
renders all the layers of the DjVu documents.
|
|
Packit |
df99a1 |
Mode
|
|
Packit |
df99a1 |
.BR black
|
|
Packit |
df99a1 |
only renders the foreground layer mask. This mode does not work with
|
|
Packit |
df99a1 |
DjVuPhoto images because these files have no foreground layer
|
|
Packit |
df99a1 |
mask.
|
|
Packit |
df99a1 |
Modes
|
|
Packit |
df99a1 |
.BR foreground
|
|
Packit |
df99a1 |
and
|
|
Packit |
df99a1 |
.BR background
|
|
Packit |
df99a1 |
only render the foreground layer or the background layer
|
|
Packit |
df99a1 |
of a DjVuDocument image.
|
|
Packit |
df99a1 |
.TP
|
|
Packit |
df99a1 |
.BI -zoom= zoomspec
|
|
Packit |
df99a1 |
Specify a zoom factor
|
|
Packit |
df99a1 |
.IR zoomspec .
|
|
Packit |
df99a1 |
The default zoom factor,
|
|
Packit |
df99a1 |
.BR auto ,
|
|
Packit |
df99a1 |
scales the image to fit the page.
|
|
Packit |
df99a1 |
Argument
|
|
Packit |
df99a1 |
.I zoomspec
|
|
Packit |
df99a1 |
also can be a number in range
|
|
Packit |
df99a1 |
.BR 25
|
|
Packit |
df99a1 |
to
|
|
Packit |
df99a1 |
.BR 2400
|
|
Packit |
df99a1 |
representing a magnification percentage
|
|
Packit |
df99a1 |
relative to the original size of the document.
|
|
Packit |
df99a1 |
.TP
|
|
Packit |
df99a1 |
.BI -frame= yesno
|
|
Packit |
df99a1 |
Specifying
|
|
Packit |
df99a1 |
.BR yes
|
|
Packit |
df99a1 |
causes the generation of a thin gray border
|
|
Packit |
df99a1 |
representing the boundaries of the document pages.
|
|
Packit |
df99a1 |
The default is
|
|
Packit |
df99a1 |
.BR no .
|
|
Packit |
df99a1 |
.TP
|
|
Packit |
df99a1 |
.BI -cropmarks= yesno
|
|
Packit |
df99a1 |
Specifying
|
|
Packit |
df99a1 |
.BR yes
|
|
Packit |
df99a1 |
causes the generation of crop marks
|
|
Packit |
df99a1 |
indicating where pages should be cut.
|
|
Packit |
df99a1 |
The default is
|
|
Packit |
df99a1 |
.BR no .
|
|
Packit |
df99a1 |
.TP
|
|
Packit |
df99a1 |
.BI -level= languagelevel
|
|
Packit |
df99a1 |
Select the language level of the generated PostScript.
|
|
Packit |
df99a1 |
.IR languagelevel .
|
|
Packit |
df99a1 |
Valid language levels are
|
|
Packit |
df99a1 |
.BR 1 ,
|
|
Packit |
df99a1 |
.BR 2 ,
|
|
Packit |
df99a1 |
and
|
|
Packit |
df99a1 |
.BR 3 .
|
|
Packit |
df99a1 |
Level
|
|
Packit |
df99a1 |
.B 3
|
|
Packit |
df99a1 |
produces the most compact and fast printing PostScript files.
|
|
Packit |
df99a1 |
Some of these files however require a very modern printer.
|
|
Packit |
df99a1 |
Level
|
|
Packit |
df99a1 |
.B 2
|
|
Packit |
df99a1 |
is the default value.
|
|
Packit |
df99a1 |
The generated PostScript files are almost as compact
|
|
Packit |
df99a1 |
and work with all but the oldest PostScript printers.
|
|
Packit |
df99a1 |
Level
|
|
Packit |
df99a1 |
.B 1
|
|
Packit |
df99a1 |
can be used as a last resort option.
|
|
Packit |
df99a1 |
.TP
|
|
Packit |
df99a1 |
.BI -color= yesno
|
|
Packit |
df99a1 |
The default value,
|
|
Packit |
df99a1 |
.BR yes ,
|
|
Packit |
df99a1 |
generates a color PostScript file.
|
|
Packit |
df99a1 |
Specifying value
|
|
Packit |
df99a1 |
.BR no
|
|
Packit |
df99a1 |
converts the image to gray scale.
|
|
Packit |
df99a1 |
The resulting PostScript file is smaller
|
|
Packit |
df99a1 |
and marginally more portable.
|
|
Packit |
df99a1 |
.TP
|
|
Packit |
df99a1 |
.BI -gray
|
|
Packit |
df99a1 |
This option is equivalent to option
|
|
Packit |
df99a1 |
.BR -color=no
|
|
Packit |
df99a1 |
and is provided for convenience.
|
|
Packit |
df99a1 |
.TP
|
|
Packit |
df99a1 |
.BI -colormatch= yesno
|
|
Packit |
df99a1 |
The default value,
|
|
Packit |
df99a1 |
.BR yes ,
|
|
Packit |
df99a1 |
generates a PostScript file using
|
|
Packit |
df99a1 |
device independent colors in compliance
|
|
Packit |
df99a1 |
with the
|
|
Packit |
df99a1 |
.SM sRGB
|
|
Packit |
df99a1 |
specification.
|
|
Packit |
df99a1 |
Modern printers then produce colors that match
|
|
Packit |
df99a1 |
the original as well as possible.
|
|
Packit |
df99a1 |
Specifying value
|
|
Packit |
df99a1 |
.B no
|
|
Packit |
df99a1 |
generates a PostScript file using device dependent colors.
|
|
Packit |
df99a1 |
This is sometimes useful with older printers.
|
|
Packit |
df99a1 |
You can then use option
|
|
Packit |
df99a1 |
.BR -gamma
|
|
Packit |
df99a1 |
to tune the output colors.
|
|
Packit |
df99a1 |
.TP
|
|
Packit |
df99a1 |
.BI -gamma= gammaspec
|
|
Packit |
df99a1 |
Specify a gamma correction factor for the device dependent PostScript colors.
|
|
Packit |
df99a1 |
Argument
|
|
Packit |
df99a1 |
.I gammaspec
|
|
Packit |
df99a1 |
must be in range
|
|
Packit |
df99a1 |
.B 0.3
|
|
Packit |
df99a1 |
to
|
|
Packit |
df99a1 |
.BR 5.0 .
|
|
Packit |
df99a1 |
Gamma correction normally pertains to cathodic screens only.
|
|
Packit |
df99a1 |
It gets meaningful for printers because several models
|
|
Packit |
df99a1 |
interpret device dependent RGB colors by emulating the color
|
|
Packit |
df99a1 |
response of a cathodic tube.
|
|
Packit |
df99a1 |
.TP
|
|
Packit |
df99a1 |
.BI -booklet= opt
|
|
Packit |
df99a1 |
Turns the booklet printing mode on.
|
|
Packit |
df99a1 |
The booklet mode prints two pages on each side
|
|
Packit |
df99a1 |
in a way suitable for making a booklet by folding
|
|
Packit |
df99a1 |
the sheets. Option
|
|
Packit |
df99a1 |
.I opt
|
|
Packit |
df99a1 |
can take values
|
|
Packit |
df99a1 |
.B no
|
|
Packit |
df99a1 |
for disabling the booklet mode,
|
|
Packit |
df99a1 |
.B yes
|
|
Packit |
df99a1 |
for enabling the recto/verso booklet mode, and
|
|
Packit |
df99a1 |
.B recto
|
|
Packit |
df99a1 |
or
|
|
Packit |
df99a1 |
.B verso
|
|
Packit |
df99a1 |
to print only one side of each sheet.
|
|
Packit |
df99a1 |
.TP
|
|
Packit |
df99a1 |
.BI -bookletmax= max
|
|
Packit |
df99a1 |
Specifies the maximal number of pages per booklet.
|
|
Packit |
df99a1 |
A single printout might then be composed of several
|
|
Packit |
df99a1 |
booklets. Argument
|
|
Packit |
df99a1 |
.I max
|
|
Packit |
df99a1 |
is rounded up to the next multiple of 4.
|
|
Packit |
df99a1 |
Specifying
|
|
Packit |
df99a1 |
.B 0
|
|
Packit |
df99a1 |
sets no maximal number of pages
|
|
Packit |
df99a1 |
and ensures that the printout will produce
|
|
Packit |
df99a1 |
a single booklet. This is the default.
|
|
Packit |
df99a1 |
.TP
|
|
Packit |
df99a1 |
.BI -bookletalign= align
|
|
Packit |
df99a1 |
Specifies a positive or negative offset
|
|
Packit |
df99a1 |
applied to the verso of each sheet.
|
|
Packit |
df99a1 |
Argument
|
|
Packit |
df99a1 |
.I align
|
|
Packit |
df99a1 |
is expressed in points
|
|
Packit |
df99a1 |
(one point is 1/72th of an inch, or 0.352 millimeter)
|
|
Packit |
df99a1 |
This is useful with certain printers to ensure that
|
|
Packit |
df99a1 |
both recto and verso are properly aligned. The default
|
|
Packit |
df99a1 |
value is of course
|
|
Packit |
df99a1 |
.BR 0 .
|
|
Packit |
df99a1 |
.TP
|
|
Packit |
df99a1 |
.BI -bookletfold= base[+incr]
|
|
Packit |
df99a1 |
Specifies the extra margin left between both pages
|
|
Packit |
df99a1 |
on a single sheet. The base value
|
|
Packit |
df99a1 |
.I base
|
|
Packit |
df99a1 |
is expressed in points (one point is 1/72th of an inch,
|
|
Packit |
df99a1 |
or 0.352 millimeter). This margin is incremented for
|
|
Packit |
df99a1 |
each outer sheet by value
|
|
Packit |
df99a1 |
.I incr
|
|
Packit |
df99a1 |
expressed in millipoints. The default value is
|
|
Packit |
df99a1 |
.BR 18+200 .
|
|
Packit |
df99a1 |
|
|
Packit |
df99a1 |
.SH CREDITS
|
|
Packit |
df99a1 |
This program was written by L\('eon Bottou <leonb@users.sourceforge.net>,
|
|
Packit |
df99a1 |
Andrei Erofeev <andrew_erofeev@yahoo.com>, and Florin Nicsa.
|
|
Packit |
df99a1 |
|
|
Packit |
df99a1 |
.SH SEE ALSO
|
|
Packit |
df99a1 |
.BR djvu (1),
|
|
Packit |
df99a1 |
.BR ddjvu (1).
|
|
Packit |
df99a1 |
.BR djview (1)
|