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

📄 xpdf.1

📁 这是一个做pdf阅读器的源代码文件,是大家学习阅读器资料的很好参考
💻 1
📖 第 1 页 / 共 2 页
字号:
probably 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 COMMANDSXpdf's key and mouse bindings are user-configurable, using the bind andunbind options in the config file (see.BR xpdfrc (5)).The bind command allows you to bind a key or mouse button to asequence of one or more commands..SS Available CommandsThe following commands are supported:.TP.BI gotoPage( page )Go to the specified page..TP.BI gotoPageNoScroll( page )Go to the specified page, with the current relative scroll position..TP.BI gotoDest( dest )Go to a named destination..TP.B gotoLastPageGo to the last page in the PDF file..TP.B gotoLastPageNoScrollGo to the last page in the PDF file, with the current relative scrollposition..TP.B nextPageGo to the next page..TP.B nextPageNoScrollGo to the next page, with the current relative scroll position..TP.B prevPageGo to the previous page..TP.B prevPageNoScrollGo to the previous page, with the current relative scroll position..TP.B pageUpScroll up by one screenful..TP.B pageDownScroll down by one screenful..TP.BI scrollLeft( n )Scroll left by.I npixels..TP.BI scrollRight( n )Scroll right by.I npixels..TP.BI scrollUp( n )Scroll up by.I npixels..TP.BI scrollDown( n )Scroll down by.I npixels..TP.BI scrollUpPrevPage( n )Scroll up by.I npixels, moving to the previous page if appropriate..TP.BI scrollDownPrevPage( n )Scroll down by.I npixels, moving to the next page if appropriate..TP.B scrollToTopEdgeScroll to the top edge of the current page, with no horizontalmovement..TP.B scrollToBottomEdgeScroll to the bottom edge of the current page, with no horizontalmovement..TP.B scrollToLeftEdgeScroll to the left edge of the current page, with no verticalmovement..TP.B scrollToRightEdgeScroll to the right edge of the current page, with no verticalmovement..TP.B scrollToTopLeftScroll to the top-left corner of the current page..TP.B scrollToBottomRightScroll to the bottom-right corner of the current page..TP.B goForwardMove forward along the history path..TP.B goBackwardMove backward along the history path..TP.BI zoomPercent( z )Set the zoom factor to.IR z %..TP.B zoomFitPageSet the zoom factor to fit-page..TP.B zoomFitWidthSet the zoom factor to fit-width..TP.B zoomInZoom in - go to the next higher zoom factor..TP.B zoomOutZoom out - go the next lower zoom factor..TP.B continuousModeGo to continuous view mode..TP.B singlePageModeGo to single-page view mode..TP.B toggleContinuousModeToggle between continuous and single page view modes..TP.B fullScreenModeGo to full-screen mode..TP.B windowModeGo to window (non-full-screen) mode..TP.B toggleFullScreenModeToggle between full-screen and window modes..TP.B openOpen a PDF file in this window, using the open dialog..TP.B openInNewWinOpen a PDF file in a new window, using the open dialog..TP.BI openFile( file )Open a specified PDF file in this window..TP.BI openFileInNewWin( file )Open a specified PDF file in a new window..TP.BI openFileAtDest( file , dest )Open a specified PDF file in this window and go to a nameddestination..TP.BI openFileAtDestInNewWin( file , dest )Open a specified PDF file in a new window and go to a nameddestination..TP.B reloadReload the current PDF file..TP.B redrawRedraw the window..TP.B raiseRaise the window to the front..TP.B closeWindowClose the window..TP.BI run( external-command-string )Run an external command.  The following escapes are allowed in thecommand string:.nf    %f => PDF file name (or an empty string if no          file is open)    %b => PDF file base name, i.e., file name minus          the extension (or an empty string if no          file is open)    %u => link URL (or an empty string if not over          a URL link)    %x => selection upper-left x coordinate          (or 0 if there is no selection)    %y => selection upper-left y coordinate          (or 0 if there is no selection)    %X => selection lower-right x coordinate          (or 0 if there is no selection)    %Y => selection lower-right y coordinate          (or 0 if there is no selection)    %% => %.fi.TP.B openOutlineOpen the outline pane..TP.B closeOutlineClose the outline pane..TP.B toggleOutlineToggle the outline pane between open and closed..TP.BI scrollOutlineDown( n )Scroll the outline down by.I nincrements..TP.BI scrollOutlineUp( n )Scroll the outline up by.I nincrements..TP.B focusToDocWinSet the keyboard focus to the main document window..TP.B focusToPageNumSet the keyboard focus to the page number text box..TP.B findOpen the 'find' dialog..TP.B findNextFinds the next occurrence of the search string (no dialog)..TP.B printOpen the 'print' dialog..TP.B aboutOpen the 'about' dialog..TP.B quitQuit from xpdf..PPThe following commands depend on the current mouse position:.TP.B startSelectionStart a selection, which will be extended as the mouse moves..TP.B endSelectionEnd a selection..TP.B startPanStart a pan, which will scroll the document as the mouse moves.TP.B endPanEnd a pan..TP.B postPopupMenuDisplay the popup menu..TP.B followLinkFollow a hyperlink (does nothing if the mouse is not over a link)..TP.B followLinkInNewWinFollow a hyperlink, opening PDF files in a new window (does nothing ifthe mouse is not over a link).  For links to non-PDF files, thiscommand is identical to followLink..TP.B followLinkNoSelSame as followLink, but does nothing if there is a non-empty selection.(This is useful as a mouse button binding.).TP.B followLinkInNewWinNoSelSame as followLinkInNewWin, but does nothing if there is a non-emptyselection.  (This is useful as a mouse button binding.).SS Default BindingsThe default mouse bindings are as follows:.nf    bind mousePress1    any         startSelection    bind mouseRelease1  any         endSelection followLinkNoSel    bind mousePress2    any         startPan    bind mouseRelease2  any         endPan    bind mousePress3    any         postPopupMenu    bind mousePress4    any         scrollUpPrevPage(16)    bind mousePress5    any         scrollDownNextPage(16)    bind mousePress6    any         scrollLeft(16)    bind mousePress7    any         scrollRight(16).fiThe default key bindings are as follows:.nf    bind ctrl-home      any         gotoPage(1)    bind home           any         scrollToTopLeft    bind ctrl-end       any         gotoLastPage    bind end            any         scrollToBottomRight    bind pgup           any         pageUp    bind backspace      any         pageUp    bind delete         any         pageUp    bind pgdn           any         pageDown    bind space          any         pageDown    bind left           any         scrollLeft(16)    bind right          any         scrollRight(16)    bind up             any         scrollUp(16)    bind down           any         scrollDown(16)    bind o              any         open    bind O              any         open    bind r              any         reload    bind R              any         reload    bind f              any         find    bind F              any         find    bind ctrl-f         any         find    bind ctrl-g         any         findNext    bind ctrl-p         any         print    bind n              scrLockOff  nextPage    bind N              scrLockOff  nextPage    bind n              scrLockOn   nextPageNoScroll    bind N              scrLockOn   nextPageNoScroll    bind p              scrLockOff  prevPage    bind P              scrLockOff  prevPage    bind p              scrLockOn   prevPageNoScroll    bind P              scrLockOn   prevPageNoScroll    bind v              any         goForward    bind b              any         goBackward    bind g              any         focusToPageNum    bind 0              any         zoomPercent(125)    bind +              any         zoomIn    bind -              any         zoomOut    bind z              any         zoomFitPage    bind w              any         zoomFitWidth    bind alt-f          any         toggleFullScreenMode    bind ctrl-l         any         redraw    bind ctrl-w         any         closeWindow    bind ?              any         about    bind q              any         quit    bind Q              any         quit.fiPrevious versions of xpdf included a "viKeys" X resource.  It is nolonger available, but the following bindings are equivalent:.nf    bind h any scrollLeft(16)    bind l any scrollRight(16)    bind k any scrollUp(16)    bind j any scrollDown(16).fi.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-2007 Glyph &Cog, LLC..SH "SEE ALSO".BR pdftops (1),.BR pdftotext (1),.BR pdfinfo (1),.BR pdffonts (1),.BR pdftoppm (1),.BR pdfimages (1),.BR xpdfrc (5).br.B http://www.foolabs.com/xpdf/

⌨️ 快捷键说明

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