.\" t .\" .\" Copyright (c) 2007- Leon Bottou .\" .\" 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 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" 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 http://www.fsf.org. .TH DJVIEW4 1 "10/11/2001" "DjVuLibre" "DjVuLibre" .de SS .SH \\0\\0\\0\\$* .. .SH NAME djview4 \- Standalone DjVu viewer .SH SYNOPSIS .BI "djview4 [" "options" "] [" "argument" "]" .SH DESCRIPTION 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 continuous layout. .SH COMMAND LINE ARGUMENT AND OPTIONS This program can run as a standalone program or as a slave process for the DjVu browser plugin .BR nsdejavu . When running as a standalone program, the command line argument .I argument can be: .IP "*" 3 The filename of a valid DjVu document. .IP "*" 3 A local DjVu document .SM URL of the form: .IP "" 5 .BI "file:///" path "/" name.djvu "[?djvuopts&" keyword = value "&...]" .IP "" 3 The square brackets delimit the optional components of the .SM URL. Various options can be specified using a syntax similar to that of .SM CGI arguments. Specifying 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. .IP "*" 3 An remote DjVu document .SM URL of the form: .IP "" 5 .BI http:// host / path "/" name.djvu "[?djvuopts&" keyword = value "&...]" .IP "" 5 .BI https:// host / path "/" name.djvu "[?djvuopts&" keyword = value "&...]" .IP "" 3 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. .PP An extensive list of options are recognized. Most options can be specified as command line argument starting with the customary dash character .BR "" "(" "-" ")" or using the syntax of .SM CGI arguments in the document .SM URL. Some options however are only meaningful as command line arguments. Other options are only recognized when running the .SM X11 version of the .BR djview4 program. .SH COMMAND LINE OPTIONS The following options are only meaningful when specified on the command line. .TP .B "-help" Display a brief help message. .TP .B "-verbose" 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. .TP .BI "-fullscreen, -fs " Start .B djview4 in full screen mode. Use the key .B ESC to exit the full screen mode. .TP .BI "-slideshow[=" arg "] Start .B djview4 in slide show mode. The optional numerical argument .I arg specifies the number of seconds before turning each page. Use the key .B ESC to exit the slide show mode. .TP .BI "-style=" "stylename" Specify the graphical user interface style. The recognized values for .I stylename depend on the installed version of the Qt toolkit. Common style names include .BR cde , .BR motif , .BR plastique , .BR platinum , and .BR windows . .SH X11 OPTIONS The following command line options are recognized by the .SM X11 version of the .B djview4 program. Unlike most .B djview4 options, X11 options that demand an argument do not use the equal character to introduce their argument. .TP .BI "-display " "displayname" Specify that the .B djview4 windows should appear on the X11 display .IR displayname . .TP .BI "-geometry " W x H + X + Y Specify the initial size and position of the first window using the traditional X11 geometry specification syntax. The numerical arguments .IR W " and " H represent the initial window width and height. The numerical arguments .IR X " and " Y indicate the window position relative to the top left corner of the screen. .TP .BI "-name " "name" Set the application name. .TP .BI "-title " "title" Set the title of the first window. .TP .BI "-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. .TP .BI "-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. .TP .BI "-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. .TP .BI "-btn " "color" Specify the default button color. The color should be given as a standard X11 color name. .TP .BI "-ncols " "count" Limit the number of colors allocated on a 8 bit display. The default color cube contains 216 distinct colors. .TP .B "-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 activated. .SH GENERAL OPTIONS The following options can be specified as command line options or can be passed by augmenting the document .SM URL using a syntax similar to that of .SM CGI arguments .IP "" 3 .BI "http://.../file.djvu?djvuopts&" "key=value" "&" "key=value" "&" "..." .PP In order to separate real .SM CGI arguments from these options, the viewer only recognizes keywords that appear after the word .BR djvuopts . The keywords .I key are derived from the option names by removing the initial dashes. .TP .BI "-page=" "pagename" Display a specific document page. The viewer first searches a page whose identifier matches the argument .IR pagename . Otherwise, if .I pagename is a number preceded by character .BR "+" " 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 .IR pagename . Otherwise, if .I pagename is numerical, it is interpreted as an ordinal page number. Otherwise, and finally, the viewer searches a page whose name matches .IR pagename . .TP .BI "-pageno=" "pagenumber" The page searching algorithm for option .B "page" can cause ambiguities when page titles can be interpreted as numbers. The argument of option .B "pageno" is always interpreted as an ordinal page number. This option is less portable than .B "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 .B "page" and .B "pageno" options. .TP .BI "-zoom=" zoomfactor 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 .I zoomfactor are shown in the below: .br .TS center,box; lfI l lfB l lfB l lfB l lfB l . 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. .TE .PP .TP .BI "-showposition=" px "," py 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 .IB px "," py in the current page are given as fractions in range 0 to 1. For instance, .B 0,0 designates the upper left corner of the page, .B 0.5,0.5 is the center, and .B 1,1 is the lower right corner. .TP .BI "-mode=" modespec 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 .I modespec are shown in the below: .br .TS center,box; lfB l lfB l lfB l lfB l lfB l . 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. .TE .PP .TP .BI "-hor_align=" keyword ", -halign=" keyword 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 .I keyword must be .BR left , .BR center , or .BR right . .TP .BI "-ver_align=" keyword ", -valign=" keyword 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 .I keyword must be .BR top , .BR center , or .BR bottom . .TP .BI "-cache=(yes|no)" Enable or disable the caching of fully decoded pages of the document. Caching is on by default. Caching of documents whose .SM URL does not contain an extension .BR .djvu " or " .djv is off by default. .TP .BI "-continuous=(yes|no)" Enable or disable the continuous layout of multipage documents. .TP .BI "-sidebyside=(yes|no), -side_by_side=(yes|no)" Enable or disable the side-by-side layout of multipage documents. .TP .BI "-coverpage=(yes|no)" Specify whether the cover page must be displayed alone when multipage documents are shown in side-by-side layout. .TP .BI "-righttoleft=(yes|no)" Specify whether pages should be arranged right-to-left when multipage documents are shown in side-by-side layout. .TP .BI "-layout=" keyword "{," keyword "}" Specify the layout settings using a single list of comma-separated keywords. The following keywords are recognized: .br .TS center,box; lfB l lfB l lfB l lfB l lfB l lfB l . single Disable the side-by-side and continuous modes. double Enable the side-by-side mode. continuous Enable the continuous mode. cover,nocover First page treatment in side-by-side mode. ltor,rtol Layout direction for side-by-side mode. gap,nogap Specify whether there is a gap between pages. .TE .TP .BI "-scrollbars=(yes|no)" Enable or disable the presence of scroll bars when the full image size exceeds the plugin window size. The default is yes. .TP .BI "-frame=(yes|no)" Enable or disable the display of a thin frame and shadow around the DjVu images. Frames are enabled by default. .TP .BI "-background=" color Specify the color of the background border displayed around the document. The color .I color must be given in hexadecimal .SM RRGGBB or .SM #RRGGBB format. .TP .BI "-toolbar=" keyword "{(,|+|-)" keyword "}" Controls the appearance and the contents of the toolbar. The argument of option .B toolbar is composed of a number of keywords separated by characters comma, plus or minus. The appearance of the toolbar is controlled by keywords placed before the first occurrence of a character plus or minus. The following keywords are recognized in this context: .br .TS center,box; lfB l lfB l lfB l lfB l lfB l . no Disable toolbar. always Displays the toolbar. auto Enable toolbar "autohide" mode (not implemented). top Place toolbar along the top edge. bottom Place toolbar along the bottom edge. .TE .IP "" The contents of the toolbar is controlled by keywords placed after the first occurrence of a character plus or minus. Each keyword adds (after a plus) or removes (after a minus) a particular toolbar button or group of buttons. The initial content of the toolbar is determined by the first occurrence of a character plus or minus. When this is a plus, the toolbar is initially empty. When this is a minus, the toolbar initially contains the default selection of buttons. The following keywords are recognized: .br .TS center,box; lfB l lfB l lfB l lfB l lfB l lfB l lfB l lfB l lfB l lfB l lfB l lfB l lfB l lfB l . modecombo for the display mode selection tool. zoomcombo for the zoom selection tool. zoom for the zoom buttons. select for the selection button. rotate for the image rotation buttons. find for the text search button. new for the new window button. open for the open new document button. save for the save button. print for the print button. layout for the page layout buttons. pagecombo for the page selection tool. firstlast for the first-page and last-page buttons. prevnext for the previous- and next-page buttons. backforw reserved for the back and forward buttons. help for the contextual help button. .TE .PP For the sake of backward compatibility, the keywords .BR fore , .BR fore_button , .BR back , .BR back_button , .BR bw , .BR bw_button , .BR color , and .BR color_button are interpreted like keyword .BR modecombo ; the keyword .BR rescombo is a synonym of .BR zoomcombo ; the keywords .BR pan , .BR zoomsel , and .BR textsel are interpreted like keyword .BR select ; and the keyword .BR doublepage is interpreted like keyword .BR layout . All other keywords are ignored. .PP .TP .BI "-menubar=(yes|no)" Enable or disable the presence of the menu bar located on top of the window. .TP .BI "-statusbar=(yes|no)" Enable or disable the presence of the status bar located at the bottom of the window. .TP .BI "-sidebar=" keyword "{," keyword "}" Control the dockable panels. The argument is a comma separated list of keywords. A first group of keywords selects which panels are affected. Omitting these keywords selects all panels. A second group of keywords then controls the visibility and the position of the selected panels. .br .TS center,box; lfB l lfB l lfB l lfB l lfB l lfB l lfB l lfB l lfB l . thumbnails specify the thumbnail panel. outline,bookmarks specify the outline panel. search,find specify the search panel. = yes,true show the specified panels (default). no,false hide the specified panels. left dock specified panels on the left side. right dock specified panels on the right side. top dock specified panels on the top side. bottom dock specified panels on the bottom side. .TE .PP .TP .BI "-thumbnails=" keyword "{," keyword "}" Compatibility alias for .BI "-sidebar=" keyword "{," keyword "},thumbnails." .TP .BI "-outline=" keyword "{," keyword "}" Compatibility alias for .BI "-sidebar=" keyword "{," keyword "},outline." .TP .BI "-menu=(yes|no)" Enable or disable the pop-up menu. .TP .BI "-keyboard=(yes|no)" Enable or disable the DjVu plugin keyboard shortcuts. The default is yes (enabled). Note that disabling the keyboard handling does not disable the shortcuts associated with active menus (see options .BR "-menu" " and " "-menubar" ")," visible toolbars and sidebars (see options .BR "-toolbar" " and " "-sidebar" ")." .TP .BI "-mouse=(yes|no)" Enable or disable mouse interaction for panning and selecting. The default is yes (enabled). .TP .BI "-links=(yes|no)" Enable or disable hyper-links in the DjVu image. Hyper-links are enabled by default. .TP .BI "-highlight=" x "," y "," w "," h "[," color "]" Display a highlighted rectangle at the specified coordinates in the current page and with the specified color. Coordinates .IR x ", " y ", " w ", and " h are measured in document image coordinates (not screen coordinates). The origin is set at the bottom left corner of the image. The color .I color must be given in hexadecimal .SM RRGGBB or .SM #RRGGBB format. Multiple highlighted zone can be specified and can be interspersed with multiple .BI "-page=" "pagename" options. .TP .BI "-find=" text Highlight occurrences of the given string .IR text . This option works when the document contains a hidden text layer. It can be used in conjunction with .BR "-sidebar=find" to display the text searching interface. String .I text can be terminated by slash .BR "" "(" "/" ")" followed by letters specifying search options. The following letters are recognized .br .TS center,box; lfB l lfB l lfB l lfB l lfB l lfB l . c Case-sensitive search. C Case-insensitive search (default). w Search hits start on word boundaries (default). W Ignore word boundaries. r Regular expression search. R String search (default). .TE .PP .TP .BI "-rotate=(0|90|180|270)" Rotate the djvu image by the specified angle expressed in degrees counter-clockwise. .TP .BI "-print=(yes|no)" Enable or disable printing the DjVu document. Printing is enabled by default. .TP .BI "-save=(yes|no)" Enable or disable saving the DjVu document. Saving is enabled by default. .TP .BI "-passive" Cause the DjVu image to be displayed in a manner similar to an ordinary web image. The default zoom factor is changed to .BR page . The toolbar, the status bar, the scrollbars, the menus, and the keyboard shortcuts are disabled. .TP .BI "-passivestretch" Cause the DjVu image to be displayed in a manner similar to an ordinary web image. The default zoom factor is changed to .BR stretch . The toolbar, the status bar, the scrollbars, the menus, and the keyboard shortcuts are disabled. .TP .BI "-nomenu, -notoolbar, -noscrollbars" These options were recognized by some versions of the DjVu viewers and are honored for the sake of backward compatibility. A warning message is printed when option .BR -verbose is active. .TP .BI "-logo, -textsel, -search" These options were recognized by some versions of the DjVu viewers but are currently not implemented by .BR djview4 . A warning message is printed when option .BR -verbose is active. .SH USAGE Most features can be accessed using the menus, the toolbar, the side bar or the pop-up menu shown when the right mouse button is depressed over a DjVu image. Detailed help can be accessed by clicking the contextual help icon from the toolbar and then clicking on various section of the djview user interface. The following table lists some useful key combinations recognized when the djvu document is active: .PP .TS center,box; lfB lfB l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l . Key Action = SHIFT+F1 Activate the contextual help. 1,2, and 3 Change zoom to to 100%, 200% and 300%. Up, Down, Left, Right Scroll the image in the given direction. Home Display top left corner of the image. End Display bottom right corner of the image. Control+Home Go to the beginning of the document. Control+End Go to the end of the document. Space, Return Scroll down or go to next page. Backspace Scroll up or go to previous page. Page Down Go to the next page. Page Up Go to the previous page. +, - Zoom in and out. [, ] Rotate image. W Select the "Fit Width" zooming mode. P Select the "Fit Page" zooming mode. CTRL+F, F3 Search the hidden text layer. CTRL+G Go to a specific page by name or by number. .TE .PP Handy effects can be achieved by holding modifier keys. Although these keys are configurable from the preference dialog, the following table lists the default assignments .PP .TS center,box; lfB lfB l l l l l l . Key Action = CTRL+SHIFT Hold these keys to show the magnification lens. CTRL Hold this key to select an area with the mouse. SHIFT Hold this key to display all hyperlinks. .TE .PP .SH ENVIRONMENT Setting environment variable .BR DJVIEW_VERBOSE to a nonzero value is equivalent to calling .BR djview with option .BR -verbose . Setting environment variable .BR DJVIEW_OPENGL to values 0 or 1 overrides the preference settings regarding OpenGL rendering. When the user clicks on a djvu hyperlink pointing to a web page, the program first tries to execute the web browser programs whose names are listed in the colon separated environment variable .BR BROWSER , then tries sensible platform dependent defaults. The user interface language is determined by first trying to find a complete set of translation files for the language specified in the preference dialog, then for the ISO 639 languages specified in the colon separated environment variable .BR LANGUAGE , and finally the language specified by the system locale. If all these searches fail, the user interface language reverts to the english default. .SH CREDITS This program was written by L\('eon Bottou and is distributed under the GNU General Public License. This program includes code derived from program .BR tiff2pdf , written by Ross Finlayson and released under a BSD license. .SH SEE ALSO .BR djvu (1), .BR ddjvu (1), .BR nsdejavu (1), .BR tiff2pdf (1)