⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xpdf.1

📁 source code: Covert TXT to PDF
💻 1
字号:
.\" Copyright 1996-2002 Glyph & Cog, LLC.TH xpdf 1 "05 December 2002".SH NAMExpdf \- Portable Document Format (PDF) file viewer for X (version 2.01).SH SYNOPSIS.B xpdf[options].RI [ PDF-file.RI [ page " | +" dest ]].SH DESCRIPTION.B Xpdfis a viewer for Portable Document Format (PDF) files.  (These are alsosometimes also called \'Acrobat' files, from the name of Adobe's PDFsoftware.)  Xpdf runs under the X Window System on UNIX, VMS, andOS/2..PPTo run xpdf, simply type:.PP.RSxpdf file.pdf.RE.PPwhere.I file.pdfis your PDF file.  The file name can be followed by a numberspecifying the page which should be displayed first, e.g.:.PP.RSxpdf file.pdf 18.RE.PPYou can also give a named destination, prefixed with \'+' in place ofthe page number..PPYou can also start xpdf without opening any files:.PP.RSxpdf.RE.SH CONFIGURATION FILEXpdf reads a configuration file at startup.  It first tries to findthe user's private config file, ~/.xpdfrc.  If that doesn't exist, itlooks for a system-wide config file, typically /usr/local/etc/xpdfrc(but this location can be changed when xpdf is built).  See the.BR xpdfrc (5)man page for details..SH OPTIONSMany of the following options can be set with configuration filecommands or X resources.  These are listed in square brackets with thedescription of the corresponding command line option..TP.BI \-g " geometry"Set the initial window geometry..RB ( \-geometryis equivalent.).RB "[X resource: " xpdf.geometry ].TP.BI \-title " title"Set the window title.  By default, the title will be "xpdf: foo.pdf"..RB "[X resource: " xpdf.title ].TP.B \-cmapInstall a private colormap.  This is ignored on TrueColor visuals..RB "[X resource: " xpdf.installCmap ].TP.BI \-rgb " number"Set the size of largest RGB cube xpdf will try to allocate.  Thedefault is 5 (for a 5x5x5 cube); set to a smaller number to conservecolor table entries.  This is ignored with private colormaps and onTrueColor visuals..RB "[X resource: " xpdf.rgbCubeSize ].TP.B \-rvSet reverse video mode.  This reverses the colors of everything exceptimages.  It may not always produce great results for PDF files whichdo weird things with color.  This also causes the paper color todefault to black..RB "[X resource: " xpdf.reverseVideo ].TP.BI \-papercolor " color"Set the "paper color", i.e., the background of the page display.  Thiswill not work too well with PDF files that do things like filling inwhite behind the text..RB "[X resource: " xpdf.paperColor ].TP.BI \-z " zoom"Set the initial zoom factor.  A number (-5 .. 5) specifies a zoomfactor, where 0 means 72 dpi.  You may also specify \'page', to fitthe page to the window size, or \'width', to fit the page width to thewindow width..RB "[config file: " initialZoom "; or X resource: " xpdf.initialZoom ].TP.BI \-t1lib " font-type"Set the type of font rendering for t1lib (the Type 1 rasterizer) touse.  Options are \'none' (don't use t1lib at all), \'plain' (usenon-anti-aliased fonts), \'low' or \'high' (use low-level orhigh-level anti-aliased fonts)..RB "[config file: " t1libControl ].TP.BI \-freetype " font-type"Set the type of font rendering for FreeType (the TrueType rasterizer)to use.  Options are \'none' (don't use FreeType at all), \'plain'(use non-anti-aliased fonts), \'low' or \'high' (use anti-aliasedfonts; these two are identical)..RB "[config file: " freetypeControl ].TP.BI \-ps " PS-file"Set the default file name for PostScript output.  This can also be ofthe form \'|command' to pipe the PostScript through a command..RB "[config file: " psFile ].TP.BI \-paper " size"Set the paper size to one of "letter", "legal", "A4", or "A3"..RB "[config file: " psPaperSize ].TP.BI \-paperw " size"Set the paper width, in points..RB "[config file: " psPaperSize ].TP.BI \-paperh " size"Set the paper height, in points..RB "[config file: " psPaperSize ].TP.B \-level1Generate Level 1 PostScript.  The resulting PostScript files will besignificantly larger (if they contain images), but will print on Level1 printers.  This also converts all images to black and white..RB "[config file: " psLevel ].TP.BI \-enc " encoding-name"Sets the encoding to use for text output.  The.I encoding\-namemust be defined with the unicodeMap command (see.BR xpdfrc (5)).This defaults to "Latin1" (which is a built-in encoding)..RB "[config file: " textEncoding ].TP.BI \-eol " unix | dos | mac"Sets the end-of-line convention to use for text output..RB "[config file: " textEOL ].TP.BI \-opw " password"Specify the owner password for the PDF file.  Providing this willbypass all security restrictions..TP.BI \-upw " password"Specify the user password for the PDF file..TP.B \-fullscreenOpen xpdf in a full-screen mode, useful for presentations.  You mayalso want to specify '-bg black' (or similar) with this.  (There iscurrently no way to switch between window and full-screen modes on thefly.).TP.BI \-remote " name"Start/contact xpdf remote server with specified name (see the.B "REMOTE SERVER MODE"section below)..TP.B \-reloadReload xpdf remote server window (with -remote only)..TP.B \-raiseRaise xpdf remote server window (with -remote only)..TP.B \-quitKill xpdf remote server (with -remote only)..TP.B \-cmdPrint commands as they're executed (useful for debugging)..RB "[config file: " printCommands ].TP.B \-qDon't print any messages or errors..RB "[config file: " errQuiet ].TP.BI \-cfg " config-file"Read.I config-filein place of ~/.xpdfrc or the system-wide config file..TP.B \-vPrint copyright and version information..TP.B \-hPrint usage information..RB ( \-helpand.B \-\-helpare equivalent.).PPSeveral other standard X options and resources will work as expected:.TP.BI \-display " display".RB "[X resource: " xpdf.display ].TP.BI \-fg " color".RB ( \-foregroundis equivalent.).RB "[X resource: " xpdf*Foreground ].TP.BI \-bg " color".RB ( \-backgroundis equivalent.).RB "[X resource: " xpdf*Background ].TP.BI \-font " font".RB ( \-fnis equivalent.).RB "[X resource: " xpdf*fontList ].PPThe color and font options only affect the user interface elements,not the PDF display (the \'paper')..PPThe following X resources do not have command line option equivalents:.TP.B xpdf.viKeysEnables the \'h', \'l', \'k' and \'j' keys for left, right, up, anddown scrolling..SH CONTROLS.SS On-screen controls, at the bottom of the xpdf window.TP.B "left/right arrow buttons"Move to the previous/next page..TP.B "double left/right arrow buttons"Move backward or forward by ten pages..TP.B "dashed left/right arrow buttons"Move backward or forward along the history path..TP.B "\'Page' entry box"Move to a specific page number.  Click in the box to activate it, typethe page number, then hit return..TP.B "zoom popup menu"Change the zoom factor (see the description of the -z option above)..TP.B "binoculars button"Find a text string..TP.B "print button"Bring up a dialog for generating a PostScript file.  The dialog hasoptions to set the pages to be printed and the PostScript file name.The file name can be \'-' for stdout or \'|command' to pipe thePostScript through a command, e.g., \'|lpr'..TP.B "\'?' button"Bring up the \'about xpdf' window..TP.B "link info"The space between the \'?' and \'Quit' buttons is used to show the URLor external file name when the mouse is over a link..TP.B "\'Quit' button"Quit xpdf..PP.SS MenuPressing the right mouse button will post a popup menu with thefollowing commands:.TP.B "Open..."Open a new PDF file via a file requester..TP.B "Open in new window..."Create a new window and open a new PDF file via a file requester..TP.B "Reload"Reload the current PDF file.  Note that Xpdf will reload the fileautomatically (on a page change or redraw) if it has changed since itwas last loaded..TP.B "Save as..."Save the current file via a file requester..TP.B "Rotate counterclockwise"Rotate the page 90 degrees counterclockwise..TP.B "Rotate clockwise"Rotate the page 90 degrees clockwise.  The two rotate commands areintended primarily for PDF files where the rotation isn't correctlyspecified in the file, but they're also useful if your X serverdoesn't support font rotation..TP.B "Close"Close the current window.  If this is the only open window, thedocument is closed, but the window is left open (i.e., this menucommand won't quit xpdf)..TP.B "Quit"Quit xpdf..PP.SS Text selectionDragging the mouse with the left button held down will highlight anarbitrary rectangle.  Any text inside this rectangle will be copied tothe X selection buffer..PP.SS LinksClicking on a hyperlink will jump to the link's destination.  A linkto another PDF document will make xpdf load that document.  A\'launch' link to an executable program will display a dialog, and ifyou click \'ok', execute the program.  URL links call an externalcommand (see the.B WEB BROWSERSsection below)..PP.SS PanningDragging the mouse with the middle button held down pans the window..PP.SS Key bindings.TP.B oOpen a new PDF file via a file requester..TP.B rReload the current PDF file.  Note that Xpdf will reload the fileautomatically (on a page change or redraw) if it has changed since itwas last loaded..TP.B control-LRedraw the current page..TP.B control-WClose the current window..TP.B f or control-FFind a text string..TP.B control-GFind next occurrence..TP.B control-PPrint..TP.B nMove to the next page.  Scrolls to the top of the page, unless scrolllock is turned on..TP.B pMove to the previous page.  Scrolls to the top of the page, unlessscroll lock is turned on..TP.BR <Space> " or " <PageDown> " or " <Next>Scroll down on the current page; if already at bottom, move to nextpage..TP.BR <Backspace> " or " <Delete> " or " <PageUp> " or " <Previous>Scroll up on the current page; if already at top, move to previouspage..TP.B vMove forward along the history path..TP.B bMove backward along the history path..TP.B <Home>Scroll to top of current page..TP.B <End>Scroll to bottom of current page..TP.B control-<Home>Scroll to first page of document..TP.B control-<End>Scroll to last page of document..TP.B arrowsScroll the current page..TP.B gActivate the page number text field ("goto page")..TP.B 0Set the zoom factor to zero (72 dpi)..TP.B +Zoom in (increment the zoom factor by 1)..TP.B -Zoom out (decrement the zoom factor by 1)..TP.B zSet the zoom factor to 'page' (fit page to window)..TP.B wSet the zoom factor to 'width' (fit page width to window)..TP.B qQuit xpdf..SH "WEB BROWSERS"If you want to run xpdf automatically from netscape or mosaic (andprobably other browsers) when you click on a link to a PDF file, youneed to edit (or create) the files.I .mime.typesand.I .mailcapin your home directory.  In.I .mime.typesadd the line:.PP.RSapplication/pdf pdf.RE.PPIn.I .mailcapadd the lines:.PP.RS# Use xpdf to view PDF files..RE.RSapplication/pdf; xpdf -q %s.RE.PPMake sure that xpdf is on your executable search path..PPWhen you click on a URL link in a PDF file, xpdf will execute thecommand specified by the urlCommand config file option, replacing anoccurrence of \'%s' with the URL.  For example, to call netscape withthe URL, add this line to your config file:.PP.RSurlCommand "netscape -remote 'openURL(%s)'".RE.SH "REMOTE SERVER MODE"Xpdf can be started in remote server mode by specifying a server name(in addition to the file name and page number).  For example:.PP.RSxpdf -remote myServer file.pdf.RE.PPIf there is currently no xpdf running in server mode with the name\'myServer', a new xpdf window will be opened.  If another command:.PP.RSxpdf -remote myServer another.pdf 9.RE.PPis issued, a new copy of xpdf will not be started.  Instead, the firstxpdf (the server) will load.I another.pdfand display page nine.  If the file name is the same:.PP.RSxpdf -remote myServer another.pdf 4.RE.PPthe xpdf server will simply display the specified page..PPThe -raise option tells the server to raise its window; it can bespecified with or without a file name and page number..PPThe -quit option tells the server to close its window and exit..SH EXIT CODESThe Xpdf tools use the following exit codes:.TP0No error..TP1Error opening a PDF file..TP2Error opening an output file..TP3Error related to PDF permissions..TP99Other error..SH AUTHORThe xpdf software and documentation are copyright 1996-2002 Glyph &Cog, LLC..SH "SEE ALSO".BR pdftops (1),.BR pdftotext (1),.BR pdfinfo (1),.BR pdffonts (1),.BR pdftopbm (1),.BR pdfimages (1),.BR xpdfrc (5).br.B http://www.foolabs.com/xpdf/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -