gv [ filename ] [-monochrome] [-gra yscale] [-colo r] [-[no]safer] [-[no] quiet] [-argum ents <arguments>] [-page <label>] [-[ no]center] [-media <media>] [-portrait] [-lands cape] [-upside down] [-seascape] [-scale <n>] [-scal ebase <n>] [-swap] [-noswap] [-antialias] [-noan tialias] [-dsc] [-nodsc] [-eof] [-noeof] [-pixmap] [-nopixma p] [-watch] [-nowatch] [-?] [-h] [-help] [-v] [-resize] [-noresize] [-geometry [<width>][x<height>][{+- }<xoffset>{+-}<yoffset>] [-ad <resource file>] [-style <resource file>] [-spartan] [<other toolkit options>]
gv allows to view and navigate throu gh PostScript and PDF doc uments on an X display by providing a user in terface for th e ghostscript interpreter. Please note that gv is derived from Tim Theisen's ghostview 1.5.
Resource files In general gv does not depend on any external resource files. However, when starting gv, preferenc es are read from a system specific r esource file P. The name of this file is as describe d by the "XFILESEARCHPATH" environment variable, or, if this va riable is not defined, implementation depende nt. In most ca ses it is "/usr/X11/lib/X11/ap p-defaults/GV\ *U. Administrators may wan t to modify th is file in order to set up gv according to the local needs of their system. a user specific res ource file. The name of this file is either "~/.gv" or as described by the "XUSERFILESEA RCHPATH" environment variable. The files "gv_user.a d" and "gv _system.ad" (located in the library directory of gv, which is most p robably either "/usr/local/lib/gv/\ *U or "/usr/ lib/gv/" may serve as a basis for constructing the u ser and system specific resource files. Note that the user and system specif ic resource files are not the only sources of preferences taken into ac count when gv is started. However, in practice t hese are the m ost important. Resources of gv The following describe s some of the resources of gv. The precise syntax of some of the re source values may be inferred from the appe nded default s ystem specific resource file.
<filter> := [<fi lespecs>] [no <filespecs>] <filespecs> := <fil espec> [<files pecs>] <filespec> := file name possibly including wildcards '*' whic h match any ch aracter.
Example: The filter
GV*filter: *.ps *.p df no .*
screens out all files with names sta rting with a dot and keeps of the remai ning ones only those which end on ".ps" or ".pd f".
GV.pageMedia: automatic GV.orientation: automatic GV.fallbackOrientation : portrait GV.swapLandscape: False GV.autoCenter: True GV.antialias: False GV.respectDSC: True GV.ignoreEOF: True GV.confirmPrint: True GV.reverseScrolling: False GV.scrollingEyeGuide: True GV.autoResize: True GV.maximumWidth: screen-20 GV.maximumHeight: screen-44 GV.minimumWidth: 400 GV.minimumHeight: 430 GV.confirmQuit: 1 GV.watchFile: False GV.watchFileFrequency: 1000 GV.showTitle: True GV.miscMenuEntries: redisplay \n\ # update \n\ stop \n\ line \n\ toggle_curre nt \n\ toggle_even \n\ toggle_odd \n\ unmark \n\ line \n\ print_all \n\ print_marked \n\ save_all \n\ save_marked GV.scale: 0 GV.scaleBase: 1 GV.scales: Natural size , 1.000, screen \n\ Pixel based, 1.000, pixel \n\ 0.100, 0.100 \n\ 0.125, 0.125 \n\ 0.250, 0.250 \n\ 0.500, 0.500 \n\ 0.707, 0.707 \n\ 1.000, 1.000 \n\ 1.414, 1.414 \n\ 2.000, 2.000 \n\ 4.000, 4.000 \n\ 8.000, 8.000 \n\ 10.00, 10.00 GV.medias: Letter, 612 792 \n\ # LetterSmal l, 612 792 \n\ Legal, 612 1008 \n\ Statement, 396 612 \n\ Tabloid, 792 1224 \n\ Ledger, 1224 792 \n\ Folio, 612 936 \n\ Quarto, 610 780 \n\ # 7x9, 504 648 \n\ # 9x11, 648 792 \n\ # 9x12, 648 864 \n\ # 10x13, 720 936 \n\ 10x14, 720 1008 \n\ Executive, 540 720 \n\ # A0, 2384 3370 \n\ # A1, 1684 2384 \n\ # A2, 1191 1684 \n\ A3, 842 1191 \n\ A4, 595 842 \n\ # A4Small, 595 842 \n\ A5, 420 595 \n\ # A6, 297 420 \n\ # A7, 210 297 \n\ # A8, 148 210 \n\ # A9, 105 148 \n\ # A10, 73 105 \n\ # B0, 2920 4127 \n\ # B1, 2064 2920 \n\ # B2, 1460 2064 \n\ # B3, 1032 1460 \n\ B4, 729 1032 \n\ B5, 516 729 \n\ # B6, 363 516 \n\ # B7, 258 363 \n\ # B8, 181 258 \n\ # B9, 127 181 \n\ # B10, 91 127 \n\ # ISOB0, 2835 4008 \n\ # ISOB1, 2004 2835 \n\ # ISOB2, 1417 2004 \n\ # ISOB3, 1001 1417 \n\ # ISOB4, 709 1001 \n\ # ISOB5, 499 709 \n\ # ISOB6, 354 499 \n\ # ISOB7, 249 354 \n\ # ISOB8, 176 249 \n\ # ISOB9, 125 176 \n\ # ISOB10, 88 125 \n\ # C0, 2599 3676 \n\ # C1, 1837 2599 \n\ # C2, 1298 1837 \n\ # C3, 918 1296 \n\ # C4, 649 918 \n\ # C5, 459 649 \n\ # C6, 323 459 \n\ # C7, 230 323 \n\ # DL, 312 624 GV.magMenu: 2, 2 \n\ 4, 4 \n\ 8, 8 \n\ 16, 16 \n\ 32, 32 \n\ 64, 64 GV*Ghostview.backgroun d: white GV*Ghostview.foregroun d: black GV.gsInterpreter: gs GV.gsCmdScanPDF: gs -dNODISPL AY -dQUIET -sPDFname=%s -sDSCname=%s pdf2dsc.ps -c quit GV.gsCmdConvPDF: gs -dNODISPL AY -dQUIET -dNOPAUSE -sPSFile=%s %s -c quit GV.gsX11Device: -sDEVICE=x11 GV.gsX11AlphaDevice: -dNOPLATFONTS -sDEVICE=x11alpha GV.gsSafer: True GV.gsQuiet: True GV.gsArguments: GV.uncompressCommand: gzip -d -c %s > %s GV.printCommand: lpr GV.scratchDir: ~/ GV.defaultSaveDir: ~/ GV.fallbackPageMedia: a4 GV.useBackingPixmap: True GV*dirs: Home\n\ Tmp\n\ /usr/doc\n\ /usr/local/doc GV*filter: no .* GV*filters: None\n\ *.*ps* *.pdf* no .*\n\ *.*ps* no .*\n\ *.pdf* no .*\n\ no .*
=== Notation: s-X means pre ss "Shift" and key "X" c-X means pre ss "Ctrl" and key "X" sc-X means pre ss "Shift" or "Ctrl" and key "X" === Miscellaneous keys : A Toggle an tialiasing on and off O Open a ne w file Q Quit gv R Toggle gv 's resizing be haviour I Respect/I gnore document structuring W Watch fil e / Don't watc h file S Save the marked pages sc-S Save the current file P Print the marked pages sc-P Print the current file c-L Redisplay the current p age . Redispl ay the current page sc-. Reopen th e current file M Mark the current page N Unmark th e current page === Orientation: 7 Orientati on portrait 8 Orientati on landscape 9 Orientati on upside-down 0 Orientati on seascape === Magnification: sc-6 Select th e scale entry -6 relative to the scale 1.0 sc-5 Select th e scale entry -5 relative to the scale 1.0 sc-4 Select th e scale entry -4 relative to the scale 1.0 sc-3 Select th e scale entry -3 relative to the scale 1.0 sc-2 Select th e scale entry -2 relative to the scale 1.0 sc-1 Select th e scale entry -1 relative to the scale 1.0 ^ Select th e scale 1.0 (for german keyboard layout) ` Select th e scale 1.0 1 Select th e scale entry 1 relative to the scale 1.0 2 Select th e scale entry 2 relative to the scale 1.0 3 Select th e scale entry 3 relative to the scale 1.0 4 Select th e scale entry 4 relative to the scale 1.0 5 Select th e scale entry 5 relative to the scale 1.0 6 Select th e scale entry 6 relative to the scale 1.0 + Select th e next scale entry = Select th e next scale entry - Select th e previous scale entry === Navigating: Arrow Scroll in the direction of the arrow s-Up Scroll co lumns up or jump -1 pages s-Down Scroll co lumns down or jump 1 pages s-Left Scroll ro ws left or jump -1 pages s-Right Scroll ro ws right or jump 1 pages c-Up Jump -1 p ages (to top/left corner) c-Down Jump 1 p ages (to top/left corner) c-Left Jump -5 p ages (to top/left corner) c-Right Jump 5 p ages (to top/left corner) D,X,Z,Y,C Identical to arrow up,down,left,left,right V Center th e page sc-Space Scroll co lumns up or jump -1 pages Space Scroll co lumns down or jump 1 pages BackSpace Scroll co lumns up or jump -1 pages Insert Jump -5 pages Delete Jump 5 pages Home Go to the first page End Go to the last page Prior Jump -1 pages Next Jump 1 pages Keypad 0-9 Highlight a page number Keypad - Highlight previous page number Keypad + Highlight next page number Keypad Enter Jump to t he highlighted page c-Enter Jump -1 pages s-Enter Jump -1 pages Enter Jump 1 pages B Jump -1 pages F Jump 1 pages
GV.screenSize: <wi dth> x <height >
should be added to the "SCREEN_RES OURCES" property of the screen the document is viewed on, with <wid th> and <height> describing the width a nd height of t he root window in units of millimeters. For instance by using the command
echo "GV.screenSize : 396 x 291" | xrdb -override -screen
a width of 346 mm and a height of 29 1 mm will be used for the "Natural size" sca le base. Alternatively the reso urce
GV.screenSize_<mach ine>_<disp>_<s cr>: <width> x <height>
may be added to a reso urce file read by gv. Here <machine> ,<disp> and ANGLED) descri be the display on which g v displays the document. For instance, if the d isplay is set to "tic.tac.toe.wo:0.1" the resource should be specified as
GV.screenSize_tic_0 _1: 396 x 291
Note that this method doesn't work o n VMS. As a last alternative the resource
GV.screenSize: <wi dth> x <height >
may be added to one of the resource files. However, for obvious reasons this method should be used only on s ingle user machines.
kill -SIGHUP <gv_pi d>
may be added (here CR<gv_pid> is the process id of gv). Executing the scr ipt and thereb y creating a new version of the documen t will then al so cause the result to be displayed instantaneous ly. Please note that this feature is ava ilable only on X11 R6 based systems.
The source code of the most recent v ersion of gv may be obtained from the foll owing sources:
Johannes Plass plass@the p.physik.uni-mainz.de Departmen t of Physics Johannes Gutenberg University Mainz, Ge rmany gv is derived from Gho stView 1.5, cr eated by Tim Theisen Systems P rogrammer Internet: tim@cs.wisc. edu Departmen t of Computer Sciences UUCP: uwvax!tim Universit y of Wisconsin-Madison Phone: (608)262-043 8 1210 West Dayton Street FAX: (608)262-977 7 Madison, WI 53706
Please send suggestion s or bug repor ts to ckesselh@debian.org.