Man page for apt-get djview Command
This tutorial shows the man page for man djview in linux.
Open terminal with 'su' access and type the command as shown below:
Result of the Command Execution shown below:
DJVIEW4(1) DjVuLibre DJVIEW4(1)
djview4 Standalone DjVu viewer
djview4 [options] [argument]
Standalone viewer for DjVu files. Features include navigating documents, zooming and panning page images, producing and displaying thumbnails, displaying
document outlines, searching documents for particular words in the hidden text layer, copying hidden text to the clipboard, saving pages and documents as
bundled or indirect multi page files, and printing page and documents. The viewer can simultaneously display several pages using a side by side or a contin
COMMAND LINE ARGUMENT AND OPTIONS
This program can run as a standalone program or as a slave process for the DjVu browser plugin nsdejavu. When running as a standalone program, the command
line argument argument can be:
* The filename of a valid DjVu document.
* A local DjVu document URL of the form:
The square brackets delimit the optional components of the URL. Various options can be specified using a syntax similar to that of CGI arguments. Speci
fying options in this manner is very useful for a browser plugin because there are no command line arguments. In the case of a standalone viewer, all
options can be specified as command line arguments.
* An remote DjVu document URL of the form:
Browsing remote DjVu documents with the standalone viewer is less efficient than using the browser plugin. The standalone viewer does not benefit from
the browser caching strategies and proxy settings. Proxy settings for the standalone viewer can be set independently with the preferences dialog.
An extensive list of options are recognized. Most options can be specified as command line argument starting with the customary dash character ( ) or using
the syntax of CGI arguments in the document URL. Some options however are only meaningful as command line arguments. Other options are only recognized when
running the X11 version of the djview4 program.
COMMAND LINE OPTIONS
The following options are only meaningful when specified on the command line.
help Display a brief help message.
Prints informational messages on the console. This option is very useful because it displays messages about the unrecognized constructs in the DjVu
annotation and hyperlink layers.
Start djview4 in full screen mode. Use the key F11 to exit the full screen mode.
Specify the graphical user interface style. The recognized values for stylename depend on the installed version of the Qt toolkit. Common style
names include cde, motif, plastique, platinum, and windows.
The following command line options are recognized by the X11 version of the djview4 program. Unlike most djview4 options, X11 options that demand an argu
ment do not use the equal character to introduce their argument.
Specify that the djview4 windows should appear on the X11 display displayname.
Specify the initial size and position of the first window using the traditional X11 geometry specification syntax. The numerical arguments W and H
represent the initial window width and height. The numerical arguments X and Y indicate the window position relative to the top left corner of the
Set the application name.
Set the title of the first window.
fn fontname, font fontname
Specify the name of the default font used for buttons and menus. The font should be specified using a X logical font description string.
bg color, background color
Specify the default background color for graphical user interface elements. The color should be given as a standard X11 color name.
fg color, foreground color
Specify the default foreground color for graphical user interface elements. The color should be given as a standard X11 color name.
Specify the default button color. The color should be given as a standard X11 color name.
Limit the number of colors allocated on a 8 bit display. The default color cube contains 216 distinct colors.
cmap Force the allocation of a private color map on a 8 bit display. This might increase the color quality but cause flashing when the viewer window gets
The following options can be specified as command line options or can be passed by augmenting the document URL using a syntax similar to that of CGI argu
In order to separate real CGI arguments from these options, the viewer only recognizes keywords that appear after the word djvuopts. The keywords key are
derived from the option names by removing the initial dashes.
Display a specific document page. The viewer first searches a page whose identifier matches the argument pagename. Otherwise, if pagename if a num
ber preceded by character + or , the viewer performs a displacement relative to the current page. Otherwise, starting from the current page and
wrapping around, it searches for a page whose title matches the argument pagename. Otherwise, if pagename is numerical, it is interpreted as an ordi
nal page number. Otherwise, and finally, the viewer searches a page whose name matches pagename.
The page searching algorithm for option page can cause ambiguities when page titles can be interpreted as numbers. The argument of option pageno is
always interpreted as an ordinal page number. This option is less portable than page because it is not recognized by earlier versions of the djvu
plugin. When using this option is necessary, it is advisable to use both the page and pageno options.
Specify the initial zoom factor. Unless the toolbar, pop up menu and keyboard are disabled, the user will be able to change the zoom factor. Legal
values for zoomfactor are shown in the below:
|number Magnification factor in range 10% to 999%. |
|one2one Select the "one to one" mode. |
|width Select the "fit width" mode. |
|page Select the "fit page" mode. |
|stretch Stretch the image to the plugin window size. |
Specify a point in the current page that should be as close as possible to the center of the window. The horizontal and vertical positions px,py in
the current page are given as fractions in range 0 to 1. For instance, 0,0 designates the upper left corner of the page, 0.5,0.5 is the center, and
1,1 is the lower right corner.
Specify the initial display mode. Unless the toolbar and pop up menu are disabled, the user will be able to change it. Legal values for modespec are
shown in the below:
|color Display the color image. |
|bw Display the foreground mask only. |
|fore Display the foreground only. |
|back Display the background only. |
|text Overlay the hidden text over the color image. |
Specify the horizontal position of the page in the viewer window. (This does not specify what part of the page will be shown, but rather how margins
will be laid out around the page in the plugin window.) Argument keyword must be left, center, or right.
Specify the vertical position of the page in the viewer window. (This does not specify what part of the page will be shown, but rather how margins
will be laid out around the page in the plugin window.) Argument keyword must be top, center, or bottom.
Enable or disable the caching of fully decoded pages of the document. Caching is on by default. Caching of documents whose URL does not contain an
extension .djvu or .djv is off by default.
Enable or disable the continuous layout of multipage documents.
Enable or disable the side by side layout of multipage documents.
Specify whether the cover page must be displayed alone when multipage documents are shown in side by side layout.
Specify whether pages should be arranged right to left when multipage documents are shown in side by side layout.
Specify the layout settings using a single list of comma separated keywords. The following keywords are recognized:
|single Disable both the side by side and continuous modes |
|double Enable the side by side mode. |
|continuous Enable the continuous mode. |
|cover, nocover Specify whether the cover page should be left alone. |
|ltor, rtol Specify the left to right or right to left layout. |
|gap, nogap Specify whether there is a gap between pages. |
Enable or disable the presence of scroll bars when the full image size exceeds the plugin window size. The default is yes.
Enable or disable the display of a thin frame and shadow around the DjVu images. Frames are enabled by default.
Specify the color of the background border displayed around the document. The color color must be given in hexadecimal RRGGBB or