xpdf -Portable Document Format (PDF) files reader

Overview

xpdf [Options] [ PDF file [ Page]]

description

Xpdf is a Portable Document Format (PDF) files reading software. (PDF file often also called Acrobat file, this name comes from the name of Adobe's PDF software.) Xpdf runs on UNIX, VMS and OS / 2's under the X Window system.

Run xpdf, simply type:

 

xpdf file.pdf

file.pdf your PDF files behind the name can be followed by a number, page number specified for the first show, such as:

 

xpdf file.pdf 18

Of course you can also start xpdf without opening any files.

 

xpdf

Options

X square brackets are listed in the resources and the appropriate option

-err
The error message is sent to the specified / dev / tty rather than the standard error (this option when xpdf by other programs, such as netscape, when open, very useful, otherwise, every mistake a small window will pop up annoying).
-z zoom
Setting an initial amplification factor The amplification factor is a number between (-5..5), where 0 represents 72dpi. You may page size with the size of the window, or by displaying `width` provided by setting` page` given display page width with the width of the window. [ xpdf.initialZoom]
-g geometry
The geometric parameters of the initial setting window. (Equivalent -geometry.) [ Xpdf.geometry]
-remote name]
Start / connector name name xpdf remote server (see "The remote server mode", below)
-raise
Establish xpdf remote server window. (Applies only when -remote)
-quit
Exit xpdf remote server. (Applies only when -remote)
-cmap
Install a custom color map. This option is not available in TrueColor mode. [ Xpdf.installCmap]
-rgb number
Setting xpdf be allocated maximum RGB values ​​The default value is 5 (i.e., 5x5x5 RGB value); set a small value, the color can be saved in customized table to record color maps and TrueColor mode, this option is not.
-papercolor color
Settings "page color", for example, show the background of the page. When the pdf file appears similar to the white filling in the character of such circumstances, this option will not work correctly. [ Xpdf.paperColor]
-eucjp
When you copy a character to convert Japanese characters to EUC-JP encoding. This is so far the only Japanese character conversion options --- Its sole function is to convert non-Japanese characters in 7-bit ASCII, in order to fit EUC-JP coding. (this option is only available when compiling pdftotext plus Japanese support to be effective) [ xpdf.eucjp ]
-t1lib font-type
Setting the font type used t1lib provider. Option `none` (do not use t1lib),` plain` (using non-anti-aliased fonts), `low` or` high` (using high- or low-level Font level anti-aliased). [ xpdf.t1libControl]
-ps PS-files
Set the name of the default PostScript output files This option can also be `|. Command` form, by a command to pipe the PostScript file [. Xpdf.psFile]
-paperw size
Setting page width, the unit is a pixel. [ Xpdf.psPaperWidth]
-paperh size
Set the page height in pixels point. [ Xpdf.psPaperHeight]
-level1
Produce Level1 PostScript file. PostScript output file is quite large (if it contains a picture of words), but really can be printed out on Level 1 printers. This option will convert all images to black and white image. [ Xpdf.psLevel1]
-cmd
Print out the results of the command (useful for debugging)
-q
Do not print any information or error
-h
Print help information (equivalent to -help)

Some other options and X resources can also perform the same as expected

-display display
[ xpdf.display]
-fg color
[ Equivalent -foreground] [ xpdf.foreground] -bg Color (equivalent -background) [ xpdf.background]
-font are
( Equivalent -fn) [ xpdf.font]

Color and font options only affect the part of the user interface does not affect the display of PDF files. ( `Paper`)

The following resources are not corresponding to the X command line options

xpdf.urlCommand
Setting command when you click on the web link to perform. For details, see the back of the web browser section.
xpdf.japaneseFont
The corresponding X font mode is set for Japanese characters using the default are:

 

-*-fixed-medium-r-normal-*-%s-*-*-*-*-*-jisx0208.1983-0
xpdf.viKeys
Setting will scroll left, right, top, and bottom, `l`,` k` and `j` key executed by the` h`.

The following resources for setting the file name using 14 basic Type 1 fonts.

 

xpdf.t1TimesRoman
xpdf.t1TimesItalic
xpdf.t1TimesBold
xpdf.t1TimesBoldItalic
xpdf.t1Helvetica
xpdf.t1HelveticaOblique
xpdf.t1HelveticaBold
xpdf.t1HelveticaBoldOblique
xpdf.t1Courier
xpdf.t1CourierOblique
xpdf.t1CourierBold
xpdf.t1CourierBoldOblique
xpdf.t1Symbol
xpdf.t1ZapfDingbats

If the activation t1lib, these Type 1 fonts will be substituted for the X server font.

control

Xpdf screen control at the bottom of the window.

Left / Right arrow keys
Turn before / after a
Double left / right arrow keys
Forward / backward turning 10
Dash left / right arrow keys
Forward / backward flip along the historical path
`Page` input box
Scroll to a specific page by clicking to activate the input box, enter the page number, then press Enter.
Zoom pop-up menu
Adjusting the amplification factor. (See previous explanation of the options -z)
Telescope Key
Find a text.
Printer button
Pop up a dialog box generated PostScript file can set the page name and PostScript files to be printed when the file name is '-', the standard output on behalf of, or with the.. '| Command' to pipe PostScript through a command such as, '| lpr'.
'?'button
A pop-up 'about xpdf' window.
Link Information
When the mouse moves to the top of a link, `?` And the space between the `Quit` button to display the address or link an external file name.
`Quit` button
Exit xpdf.

 

menu

Press the right mouse button will bring up a pop-up menu containing the following commands.

Open...
Open a new file by file selector.
Save PDF...
Save an existing file by file selector.
Rotate left
The current page is rotated 90 degrees counterclockwise.
Rotate right
The current page rotated 90 degrees clockwise. The two rotating command mainly to those who do not specify the proper rotation information in a file PDF document design, even if your X server does not support font rotation, it still works.
Quit
Exit xpdf.

 

Character selection

Hold down the mouse and dragging it to be an arbitrary rectangular high flashed any character in the rectangle to the X will be copied to the selected buffer.

 

link

Click on a hyperlink to jump to the link destination address to go. A link to a PDF file will cause xpdf to open this file. A link pointing to an executable program `launch` will pop up a dialog box, if You click on `ok`, will execute this program .URL link to bring up an external command. (see web browser section below.)

 

scroll

Hold down the mouse button and drag it, you can scroll the page.

 

hot key

O
Open a new PDF file by file selector.
f
Search string.
n
Turn to the next.
p
Turn to the previous page.
Spacebar, PageDown key or Next key
Scroll down to the current page, if you have to reach the lower part of the current page, the next page.
The Backspace, Delete key, PageUp key or Previous
Scroll up the current page, if you have reached the top of the page, then turn to the previous page.
Home key
Scroll to the top of the current page.
End key
Scroll to the lower part of the current page.
Arrow keys
Scroll the current page.
control-L
Update the current page.
q
Exit xpdf.

Internet browser

If you want to click on a link points to a PDF file, launch xpdf from netscape or mosaic (or other browsers) automatically, you need to modify (or create) in your user directory .mime.types and .mailcap file. in .mime.types adding a single line:

 

application/pdf pdf

In .mailcap join in:

 

# Use xpdf to view PDF files.
application/pdf; xpdf -err %s

Confirm xpdf search path in your executable.

When you click on the URL link to a PDF file, xpdf will execute a command specified by xpdf.urlCommand resources, and resources in `% s` replaced with the corresponding URL. For example, specify netscape open the URL, you can set this resource .

 

xpdf.urlCommand: netscape -remote `openURL(%s)`

Remote server mode

By specifying a server name, xpdf can open (and file name, page number) to a remote server mode.

 

xpdf -remote myServer file.pdf

If there is no xpdf running to myServer is the name of the server mode, then a new xpdf window will be opened at this time, if you type another command:

 

xpdf -remote myServer another.pdf 9

We will not start a new xpdf, while the previous xpdf (the server) will open another.pdf and displayed on page 9 if the same file name:

 

xpdf -remote myServer another.pdf 4

xpdf server will simply display the specified page.

-raise option tells the server wake of its window. It can be followed by the file name and page number can also be used alone.

-quit option tells the server to close the window and exit.

Options File

xpdf will be from your user directory (if any) reading called .xpdfrc file. This file can contain two types of entries.

fontpath directory
In dicrectory looking for Type 1 fonts. Xpdf font encoding received only by the entry. In order to display, but also by fontmap to the layout of the font entries.
fontmap PDF-form X-font
The PDF-font (PDF file specified) layout to the X-font go, X-font must be `% s` containing a standard font description in pixel size X position.

For example, use

 

fontmap TimesCE-Roman -*-times-medium-r-*-*-%s-*-*-*-*-*-iso8859-2

To the layout of Central European (Latin-2) edition of the Times-Roman font. It is assumed that you have the appropriate X fonts (see installation mkfontdir (1) ). Xpdf understand ISO8859-2 encoding, so you do not need these fonts fontpath entry use Bakoma Type 1 fonts, you can do this:

 

fontpath /home/derekn/fonts/bakoma
fontmap cmb10 -bakoma-cmb10-medium-r-normal--%s-*-*-*-p-*-adobe-fontspecific
fontmap cmbsy10 -bakoma-cmbsy10-medium-r-normal--%s-*-*-*-p-*-adobe-fontspecific
etc...

It is assumed that Type 1 fonts in the directory / home / derekn / fonts / bakoma down. 

Guess you like

Origin www.cnblogs.com/fanweisheng/p/11102556.html