summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/pdfdetach.110
-rw-r--r--doc/pdfdetach.cat10
-rw-r--r--doc/pdfdetach.hlp101
-rw-r--r--doc/pdffonts.125
-rw-r--r--doc/pdffonts.cat21
-rw-r--r--doc/pdffonts.hlp114
-rw-r--r--doc/pdfimages.114
-rw-r--r--doc/pdfimages.cat14
-rw-r--r--doc/pdfimages.hlp94
-rw-r--r--doc/pdfinfo.112
-rw-r--r--doc/pdfinfo.cat12
-rw-r--r--doc/pdfinfo.hlp126
-rw-r--r--doc/pdftohtml.1106
-rw-r--r--doc/pdftohtml.cat87
-rw-r--r--doc/pdftopng.1119
-rw-r--r--doc/pdftopng.cat96
-rw-r--r--doc/pdftoppm.115
-rw-r--r--doc/pdftoppm.cat20
-rw-r--r--doc/pdftoppm.hlp110
-rw-r--r--doc/pdftops.111
-rw-r--r--doc/pdftops.cat60
-rw-r--r--doc/pdftops.hlp211
-rw-r--r--doc/pdftotext.161
-rw-r--r--doc/pdftotext.cat68
-rw-r--r--doc/pdftotext.hlp127
-rw-r--r--doc/sample-xpdfrc3
-rw-r--r--doc/xpdf.130
-rw-r--r--doc/xpdf.cat152
-rw-r--r--doc/xpdf.hlp782
-rw-r--r--doc/xpdfrc.557
-rw-r--r--doc/xpdfrc.cat334
-rw-r--r--doc/xpdfrc.hlp612
32 files changed, 950 insertions, 2664 deletions
diff --git a/doc/pdfdetach.1 b/doc/pdfdetach.1
index 1e2f8aa..b0d9dd3 100644
--- a/doc/pdfdetach.1
+++ b/doc/pdfdetach.1
@@ -1,8 +1,8 @@
-.\" Copyright 2011 Glyph & Cog, LLC
-.TH pdfdetach 1 "15 August 2011"
+.\" Copyright 2013-2014 Glyph & Cog, LLC
+.TH pdfdetach 1 "28 May 2014"
.SH NAME
pdfdetach \- Portable Document Format (PDF) document embedded file
-extractor (version 3.03)
+extractor (version 3.04)
.SH SYNOPSIS
.B pdfdetach
[options]
@@ -90,15 +90,17 @@ Error related to PDF permissions.
99
Other error.
.SH AUTHOR
-The pdfinfo software and documentation are copyright 1996-2011 Glyph &
+The pdfinfo software and documentation are copyright 1996-2014 Glyph &
Cog, LLC.
.SH "SEE ALSO"
.BR xpdf (1),
.BR pdftops (1),
.BR pdftotext (1),
+.BR pdftohtml (1),
.BR pdfinfo (1),
.BR pdffonts (1),
.BR pdftoppm (1),
+.BR pdftopng (1),
.BR pdfimages (1),
.BR xpdfrc (5)
.br
diff --git a/doc/pdfdetach.cat b/doc/pdfdetach.cat
index 526bbba..8b052e2 100644
--- a/doc/pdfdetach.cat
+++ b/doc/pdfdetach.cat
@@ -4,7 +4,7 @@ pdfdetach(1) pdfdetach(1)
NAME
pdfdetach - Portable Document Format (PDF) document embedded file
- extractor (version 3.03)
+ extractor (version 3.04)
SYNOPSIS
pdfdetach [options] [PDF-file]
@@ -79,14 +79,14 @@ EXIT CODES
99 Other error.
AUTHOR
- The pdfinfo software and documentation are copyright 1996-2011 Glyph &
+ The pdfinfo software and documentation are copyright 1996-2014 Glyph &
Cog, LLC.
SEE ALSO
- xpdf(1), pdftops(1), pdftotext(1), pdfinfo(1), pdffonts(1),
- pdftoppm(1), pdfimages(1), xpdfrc(5)
+ xpdf(1), pdftops(1), pdftotext(1), pdftohtml(1), pdfinfo(1), pdf-
+ fonts(1), pdftoppm(1), pdftopng(1), pdfimages(1), xpdfrc(5)
http://www.foolabs.com/xpdf/
- 15 August 2011 pdfdetach(1)
+ 28 May 2014 pdfdetach(1)
diff --git a/doc/pdfdetach.hlp b/doc/pdfdetach.hlp
deleted file mode 100644
index f85cd0f..0000000
--- a/doc/pdfdetach.hlp
+++ /dev/null
@@ -1,101 +0,0 @@
-! Generated automatically by mantohlp
-1 pdfdetach
-
- pdfdetach - Portable Document Format (PDF) document embedded file
-
- pdfdetach [options] [PDF-file]
-
- Pdfdetach lists or extracts embedded files (attachments) from a Porta-
- ble Document Format (PDF) file.
-
- ()
-
-2 ONFIGURATION_FIL
-
- Pdfdetach reads a configuration file at startup. It first tries to
- find the user's private config file, ~/.xpdfrc. If that doesn't exist,
- it looks for a system-wide config file, typically /usr/local/etc/xpdfrc
- (but this location can be changed when pdfinfo is built). See the
- xpdfrc(5) man page for details.
-
- ()
-
-2 OPTIONS
-
- Some of the following options can be set with configuration file com-
- mands. These are listed in square brackets with the description of the
- corresponding command line option.
-
- -list List all of the embedded files in the PDF file. File names are
- converted to the text encoding specified by the "-enc" switch.
-
- -save number
- Save the specified embedded file. By default, this uses the
- file name associated with the embedded file (as printed by the
- "-list" switch); the file name can be changed with the "-o"
- switch.
-
- -saveall
- Save all of the embedded files. This uses the file names asso-
- ciated with the embedded files (as printed by the "-list"
- switch). By default, the files are saved in the current direc-
- tory; this can be changed with the "-o" switch.
-
- -o path
- Set the file name used when saving an embedded file with the
- "-save" switch, or the directory used by "-saveall".
-
- -enc encoding-name
- Sets the encoding to use for text output (embedded file names).
- The encoding-name must be defined with the unicodeMap command
- (see xpdfrc(5)). This defaults to "Latin1" (which is a built-in
- encoding). [config file: textEncoding]
-
- -opw password
- Specify the owner password for the PDF file. Providing this
- will bypass all security restrictions.
-
- -upw password
- Specify the user password for the PDF file.
-
- -cfg config-file
- Read config-file in place of ~/.xpdfrc or the system-wide config
- file.
-
- -v Print copyright and version information.
-
- -h Print usage information. (-help and --help are equivalent.)
-
- ()
-
-2 XIT_CODE
-
- The Xpdf tools use the following exit codes:
-
- 0 No error.
-
- 1 Error opening a PDF file.
-
- 2 Error opening an output file.
-
- 3 Error related to PDF permissions.
-
- 99 Other error.
-
- ()
-
-2 AUTHOR
-
- The pdfinfo software and documentation are copyright 1996-2011 Glyph &
- Cog, LLC.
-
- ()
-
-2 SEE_ALSO
-
- xpdf(1), pdftops(1), pdftotext(1), pdfinfo(1), pdffonts(1),
- pdftoppm(1), pdfimages(1), xpdfrc(5)
- http://www.foolabs.com/xpdf/
-
- ()
-
diff --git a/doc/pdffonts.1 b/doc/pdffonts.1
index 6e132ac..70e1f45 100644
--- a/doc/pdffonts.1
+++ b/doc/pdffonts.1
@@ -1,8 +1,8 @@
-.\" Copyright 1999-2011 Glyph & Cog, LLC
-.TH pdffonts 1 "15 August 2011"
+.\" Copyright 1999-2014 Glyph & Cog, LLC
+.TH pdffonts 1 "28 May 2014"
.SH NAME
pdffonts \- Portable Document Format (PDF) font analyzer (version
-3.03)
+3.04)
.SH SYNOPSIS
.B pdffonts
[options]
@@ -34,6 +34,13 @@ can't be converted to Unicode)
.TP
.B object ID
the font dictionary object ID (number and generation)
+.TP
+.B location
+the font location (see the
+.B \-loc
+and
+.B \-locPS
+options).
.PP
PDF files can contain the following types of fonts:
.PP
@@ -86,6 +93,14 @@ the corresponding command line option.
.BI \-f " number"
Specifies the first page to analyze.
.TP
+.B \-loc
+Shows additional information on the location of the font that will be
+used when the PDF file is rasterized (with xpdf, pdftoppm, etc.).
+.TP
+.B \-locPS
+Shows additional information on the location of the font that will be
+used when the PDF file is converted to PostScript (with pdftops).
+.TP
.BI \-l " number"
Specifies the last page to analyze.
.TP
@@ -128,15 +143,17 @@ Error related to PDF permissions.
99
Other error.
.SH AUTHOR
-The pdffonts software and documentation are copyright 1996-2011 Glyph
+The pdffonts software and documentation are copyright 1996-2014 Glyph
& Cog, LLC.
.SH "SEE ALSO"
.BR xpdf (1),
.BR pdftops (1),
.BR pdftotext (1),
+.BR pdftohtml (1),
.BR pdfinfo (1),
.BR pdfdetach (1),
.BR pdftoppm (1),
+.BR pdftopng (1),
.BR pdfimages (1),
.BR xpdfrc (5)
.br
diff --git a/doc/pdffonts.cat b/doc/pdffonts.cat
index b2d92f3..0c10b25 100644
--- a/doc/pdffonts.cat
+++ b/doc/pdffonts.cat
@@ -3,7 +3,7 @@ pdffonts(1) pdffonts(1)
NAME
- pdffonts - Portable Document Format (PDF) font analyzer (version 3.03)
+ pdffonts - Portable Document Format (PDF) font analyzer (version 3.04)
SYNOPSIS
pdffonts [options] [PDF-file]
@@ -30,6 +30,9 @@ DESCRIPTION
object ID
the font dictionary object ID (number and generation)
+ location
+ the font location (see the -loc and -locPS options).
+
PDF files can contain the following types of fonts:
Type 1
@@ -59,6 +62,14 @@ OPTIONS
-f number
Specifies the first page to analyze.
+ -loc Shows additional information on the location of the font that
+ will be used when the PDF file is rasterized (with xpdf,
+ pdftoppm, etc.).
+
+ -locPS Shows additional information on the location of the font that
+ will be used when the PDF file is converted to PostScript (with
+ pdftops).
+
-l number
Specifies the last page to analyze.
@@ -91,14 +102,14 @@ EXIT CODES
99 Other error.
AUTHOR
- The pdffonts software and documentation are copyright 1996-2011 Glyph &
+ The pdffonts software and documentation are copyright 1996-2014 Glyph &
Cog, LLC.
SEE ALSO
- xpdf(1), pdftops(1), pdftotext(1), pdfinfo(1), pdfdetach(1),
- pdftoppm(1), pdfimages(1), xpdfrc(5)
+ xpdf(1), pdftops(1), pdftotext(1), pdftohtml(1), pdfinfo(1), pdfde-
+ tach(1), pdftoppm(1), pdftopng(1), pdfimages(1), xpdfrc(5)
http://www.foolabs.com/xpdf/
- 15 August 2011 pdffonts(1)
+ 28 May 2014 pdffonts(1)
diff --git a/doc/pdffonts.hlp b/doc/pdffonts.hlp
deleted file mode 100644
index c5a6c13..0000000
--- a/doc/pdffonts.hlp
+++ /dev/null
@@ -1,114 +0,0 @@
-! Generated automatically by mantohlp
-1 pdffonts
-
- pdffonts - Portable Document Format (PDF) font analyzer (version
-
- pdffonts [options] [PDF-file]
-
- Pdffonts lists the fonts used in a Portable Document Format (PDF) file
- along with various information for each font.
-
- The following information is listed for each font:
-
- name the font name, exactly as given in the PDF file (potentially
- including a subset prefix)
-
- type the font type -- see below for details
-
- emb "yes" if the font is embedded in the PDF file
-
- sub "yes" if the font is a subset
-
- uni "yes" if there is an explicit "ToUnicode" map in the PDF file
- (the absence of a ToUnicode map doesn't necessarily mean that
- the text can't be converted to Unicode)
-
- object ID
- the font dictionary object ID (number and generation)
-
- PDF files can contain the following types of fonts:
-
- Type 1
- Type 1C -- aka Compact Font Format (CFF)
- Type 1C (OT) -- OpenType with 8-bit CFF data
- Type 3
- TrueType
- TrueType (OT) -- OpenType with 8-bit TrueType data
- CID Type 0 -- 16-bit font with no specified type
- CID Type 0C -- 16-bit PostScript CFF font
- CID Type 0C (OT) -- OpenType with CID CFF data
- CID TrueType -- 16-bit TrueType font
- CID TrueType (OT) -- OpenType with CID TrueType data
-
- ()
-
-2 ONFIGURATION_FIL
-
- Pdffonts reads a configuration file at startup. It first tries to find
- the user's private config file, ~/.xpdfrc. If that doesn't exist, it
- looks for a system-wide config file, typically /usr/local/etc/xpdfrc
- (but this location can be changed when pdffonts is built). See the
- xpdfrc(5) man page for details.
-
- ()
-
-2 OPTIONS
-
- Many of the following options can be set with configuration file com-
- mands. These are listed in square brackets with the description of the
- corresponding command line option.
-
- -f number
- Specifies the first page to analyze.
-
- -l number
- Specifies the last page to analyze.
-
- -opw password
- Specify the owner password for the PDF file. Providing this
- will bypass all security restrictions.
-
- -upw password
- Specify the user password for the PDF file.
-
- -cfg config-file
- Read config-file in place of ~/.xpdfrc or the system-wide config
- file.
-
- -v Print copyright and version information.
-
- -h Print usage information. (-help and --help are equivalent.)
-
- ()
-
-2 XIT_CODE
-
- The Xpdf tools use the following exit codes:
-
- 0 No error.
-
- 1 Error opening a PDF file.
-
- 2 Error opening an output file.
-
- 3 Error related to PDF permissions.
-
- 99 Other error.
-
- ()
-
-2 AUTHOR
-
- The pdffonts software and documentation are copyright 1996-2011 Glyph &
- Cog, LLC.
-
- ()
-
-2 SEE_ALSO
-
- xpdf(1), pdftops(1), pdftotext(1), pdfinfo(1), pdfdetach(1),
- pdftoppm(1), pdfimages(1), xpdfrc(5)
- http://www.foolabs.com/xpdf/
-
- ()
-
diff --git a/doc/pdfimages.1 b/doc/pdfimages.1
index a68a510..0953ced 100644
--- a/doc/pdfimages.1
+++ b/doc/pdfimages.1
@@ -1,8 +1,8 @@
-.\" Copyright 1998-2011 Glyph & Cog, LLC
-.TH pdfimages 1 "15 August 2011"
+.\" Copyright 1998-2014 Glyph & Cog, LLC
+.TH pdfimages 1 "28 May 2014"
.SH NAME
pdfimages \- Portable Document Format (PDF) image extractor
-(version 3.03)
+(version 3.04)
.SH SYNOPSIS
.B pdfimages
[options]
@@ -15,9 +15,9 @@ Pixmap (PPM), Portable Bitmap (PBM), or JPEG files.
Pdfimages reads the PDF file, scans one or more pages,
.IR PDF-file ,
and writes one PPM, PBM, or JPEG file for each image,
-.IR image-root - nnn . xxx ,
+.IR image-root - nnnn . xxx ,
where
-.I nnn
+.I nnnn
is the image number and
.I xxx
is the image type (.ppm, .pbm, .jpg).
@@ -88,16 +88,18 @@ Error related to PDF permissions.
99
Other error.
.SH AUTHOR
-The pdfimages software and documentation are copyright 1998-2011 Glyph
+The pdfimages software and documentation are copyright 1998-2014 Glyph
& Cog, LLC.
.SH "SEE ALSO"
.BR xpdf (1),
.BR pdftops (1),
.BR pdftotext (1),
+.BR pdftohtml (1),
.BR pdfinfo (1),
.BR pdffonts (1),
.BR pdfdetach (1),
.BR pdftoppm (1),
+.BR pdftopng (1),
.BR xpdfrc (5)
.br
.B http://www.foolabs.com/xpdf/
diff --git a/doc/pdfimages.cat b/doc/pdfimages.cat
index ee8810c..a152e78 100644
--- a/doc/pdfimages.cat
+++ b/doc/pdfimages.cat
@@ -4,7 +4,7 @@ pdfimages(1) pdfimages(1)
NAME
pdfimages - Portable Document Format (PDF) image extractor (version
- 3.03)
+ 3.04)
SYNOPSIS
pdfimages [options] PDF-file image-root
@@ -14,8 +14,8 @@ DESCRIPTION
Portable Pixmap (PPM), Portable Bitmap (PBM), or JPEG files.
Pdfimages reads the PDF file, scans one or more pages, PDF-file, and
- writes one PPM, PBM, or JPEG file for each image, image-root-nnn.xxx,
- where nnn is the image number and xxx is the image type (.ppm, .pbm,
+ writes one PPM, PBM, or JPEG file for each image, image-root-nnnn.xxx,
+ where nnnn is the image number and xxx is the image type (.ppm, .pbm,
.jpg).
NB: pdfimages extracts the raw image data from the PDF file, without
@@ -72,14 +72,14 @@ EXIT CODES
99 Other error.
AUTHOR
- The pdfimages software and documentation are copyright 1998-2011 Glyph
+ The pdfimages software and documentation are copyright 1998-2014 Glyph
& Cog, LLC.
SEE ALSO
- xpdf(1), pdftops(1), pdftotext(1), pdfinfo(1), pdffonts(1), pdfde-
- tach(1), pdftoppm(1), xpdfrc(5)
+ xpdf(1), pdftops(1), pdftotext(1), pdftohtml(1), pdfinfo(1), pdf-
+ fonts(1), pdfdetach(1), pdftoppm(1), pdftopng(1), xpdfrc(5)
http://www.foolabs.com/xpdf/
- 15 August 2011 pdfimages(1)
+ 28 May 2014 pdfimages(1)
diff --git a/doc/pdfimages.hlp b/doc/pdfimages.hlp
deleted file mode 100644
index 18fef58..0000000
--- a/doc/pdfimages.hlp
+++ /dev/null
@@ -1,94 +0,0 @@
-! Generated automatically by mantohlp
-1 pdfimages
-
- pdfimages - Portable Document Format (PDF) image extractor
-
- pdfimages [options] PDF-file image-root
-
- Pdfimages saves images from a Portable Document Format (PDF) file as
- Portable Pixmap (PPM), Portable Bitmap (PBM), or JPEG files.
-
- Pdfimages reads the PDF file, scans one or more pages, PDF-file, and
- writes one PPM, PBM, or JPEG file for each image, image-root-nnn.xxx,
- where nnn is the image number and xxx is the image type (.ppm, .pbm,
- .jpg).
-
- NB: pdfimages extracts the raw image data from the PDF file, without
- performing any additional transforms. Any rotation, clipping, color
- inversion, etc. done by the PDF content stream is ignored.
-
- ()
-
-2 ONFIGURATION_FIL
-
- Pdfimages reads a configuration file at startup. It first tries to
- find the user's private config file, ~/.xpdfrc. If that doesn't exist,
- it looks for a system-wide config file, typically /usr/local/etc/xpdfrc
- (but this location can be changed when pdfimages is built). See the
- xpdfrc(5) man page for details.
-
- ()
-
-2 OPTIONS
-
- Many of the following options can be set with configuration file com-
- mands. These are listed in square brackets with the description of the
- corresponding command line option.
-
- -f number
- Specifies the first page to scan.
-
- -l number
- Specifies the last page to scan.
-
- -j Normally, all images are written as PBM (for monochrome images)
- or PPM (for non-monochrome images) files. With this option,
- images in DCT format are saved as JPEG files. All non-DCT
- images are saved in PBM/PPM format as usual.
-
- -opw password
- Specify the owner password for the PDF file. Providing this
- will bypass all security restrictions.
-
- -upw password
- Specify the user password for the PDF file.
-
- -q Don't print any messages or errors. [config file: errQuiet]
-
- -v Print copyright and version information.
-
- -h Print usage information. (-help and --help are equivalent.)
-
- ()
-
-2 XIT_CODE
-
- The Xpdf tools use the following exit codes:
-
- 0 No error.
-
- 1 Error opening a PDF file.
-
- 2 Error opening an output file.
-
- 3 Error related to PDF permissions.
-
- 99 Other error.
-
- ()
-
-2 AUTHOR
-
- The pdfimages software and documentation are copyright 1998-2011 Glyph
- & Cog, LLC.
-
- ()
-
-2 SEE_ALSO
-
- xpdf(1), pdftops(1), pdftotext(1), pdfinfo(1), pdffonts(1), pdfde-
- tach(1), pdftoppm(1), xpdfrc(5)
- http://www.foolabs.com/xpdf/
-
- ()
-
diff --git a/doc/pdfinfo.1 b/doc/pdfinfo.1
index b6b0498..5a02353 100644
--- a/doc/pdfinfo.1
+++ b/doc/pdfinfo.1
@@ -1,8 +1,8 @@
-.\" Copyright 1999-2011 Glyph & Cog, LLC
-.TH pdfinfo 1 "15 August 2011"
+.\" Copyright 1999-2014 Glyph & Cog, LLC
+.TH pdfinfo 1 "28 May 2014"
.SH NAME
pdfinfo \- Portable Document Format (PDF) document information
-extractor (version 3.03)
+extractor (version 3.04)
.SH SYNOPSIS
.B pdfinfo
[options]
@@ -57,7 +57,7 @@ encrypted flag (yes/no)
print and copy permissions (if encrypted)
.RE
.RS
-page size
+page size and rotation
.RE
.RS
file size
@@ -150,15 +150,17 @@ Error related to PDF permissions.
99
Other error.
.SH AUTHOR
-The pdfinfo software and documentation are copyright 1996-2011 Glyph &
+The pdfinfo software and documentation are copyright 1996-2014 Glyph &
Cog, LLC.
.SH "SEE ALSO"
.BR xpdf (1),
.BR pdftops (1),
.BR pdftotext (1),
+.BR pdftohtml (1),
.BR pdffonts (1),
.BR pdfdetach (1),
.BR pdftoppm (1),
+.BR pdftopng (1),
.BR pdfimages (1),
.BR xpdfrc (5)
.br
diff --git a/doc/pdfinfo.cat b/doc/pdfinfo.cat
index 7f74ced..8ef2bb2 100644
--- a/doc/pdfinfo.cat
+++ b/doc/pdfinfo.cat
@@ -4,7 +4,7 @@ pdfinfo(1) pdfinfo(1)
NAME
pdfinfo - Portable Document Format (PDF) document information extractor
- (version 3.03)
+ (version 3.04)
SYNOPSIS
pdfinfo [options] [PDF-file]
@@ -31,7 +31,7 @@ DESCRIPTION
page count
encrypted flag (yes/no)
print and copy permissions (if encrypted)
- page size
+ page size and rotation
file size
linearized (yes/no)
PDF version
@@ -104,14 +104,14 @@ EXIT CODES
99 Other error.
AUTHOR
- The pdfinfo software and documentation are copyright 1996-2011 Glyph &
+ The pdfinfo software and documentation are copyright 1996-2014 Glyph &
Cog, LLC.
SEE ALSO
- xpdf(1), pdftops(1), pdftotext(1), pdffonts(1), pdfdetach(1),
- pdftoppm(1), pdfimages(1), xpdfrc(5)
+ xpdf(1), pdftops(1), pdftotext(1), pdftohtml(1), pdffonts(1), pdfde-
+ tach(1), pdftoppm(1), pdftopng(1), pdfimages(1), xpdfrc(5)
http://www.foolabs.com/xpdf/
- 15 August 2011 pdfinfo(1)
+ 28 May 2014 pdfinfo(1)
diff --git a/doc/pdfinfo.hlp b/doc/pdfinfo.hlp
deleted file mode 100644
index f408266..0000000
--- a/doc/pdfinfo.hlp
+++ /dev/null
@@ -1,126 +0,0 @@
-! Generated automatically by mantohlp
-1 pdfinfo
-
- pdfinfo - Portable Document Format (PDF) document information
-
- pdfinfo [options] [PDF-file]
-
- Pdfinfo prints the contents of the 'Info' dictionary (plus some other
- useful information) from a Portable Document Format (PDF) file.
-
- The 'Info' dictionary contains the following values:
-
- title
- subject
- keywords
- author
- creator
- producer
- creation date
- modification date
-
- In addition, the following information is printed:
-
- tagged (yes/no)
- form (AcroForm / XFA / none)
- page count
- encrypted flag (yes/no)
- print and copy permissions (if encrypted)
- page size
- file size
- linearized (yes/no)
- PDF version
- metadata (only if requested)
-
- ()
-
-2 ONFIGURATION_FIL
-
- Pdfinfo reads a configuration file at startup. It first tries to find
- the user's private config file, ~/.xpdfrc. If that doesn't exist, it
- looks for a system-wide config file, typically /usr/local/etc/xpdfrc
- (but this location can be changed when pdfinfo is built). See the
- xpdfrc(5) man page for details.
-
- ()
-
-2 OPTIONS
-
- Many of the following options can be set with configuration file com-
- mands. These are listed in square brackets with the description of the
- corresponding command line option.
-
- -f number
- Specifies the first page to examine. If multiple pages are
- requested using the "-f" and "-l" options, the size of each
- requested page (and, optionally, the bounding boxes for each
- requested page) are printed. Otherwise, only page one is exam-
- ined.
-
- -l number
- Specifies the last page to examine.
-
- -box Prints the page box bounding boxes: MediaBox, CropBox, BleedBox,
- TrimBox, and ArtBox.
-
- -meta Prints document-level metadata. (This is the "Metadata" stream
- from the PDF file's Catalog object.)
-
- -rawdates
- Prints the raw (undecoded) date strings, directly from the PDF
- file.
-
- -enc encoding-name
- Sets the encoding to use for text output. The encoding-name
- must be defined with the unicodeMap command (see xpdfrc(5)).
- This defaults to "Latin1" (which is a built-in encoding). [con-
- fig file: textEncoding]
-
- -opw password
- Specify the owner password for the PDF file. Providing this
- will bypass all security restrictions.
-
- -upw password
- Specify the user password for the PDF file.
-
- -cfg config-file
- Read config-file in place of ~/.xpdfrc or the system-wide config
- file.
-
- -v Print copyright and version information.
-
- -h Print usage information. (-help and --help are equivalent.)
-
- ()
-
-2 XIT_CODE
-
- The Xpdf tools use the following exit codes:
-
- 0 No error.
-
- 1 Error opening a PDF file.
-
- 2 Error opening an output file.
-
- 3 Error related to PDF permissions.
-
- 99 Other error.
-
- ()
-
-2 AUTHOR
-
- The pdfinfo software and documentation are copyright 1996-2011 Glyph &
- Cog, LLC.
-
- ()
-
-2 SEE_ALSO
-
- xpdf(1), pdftops(1), pdftotext(1), pdffonts(1), pdfdetach(1),
- pdftoppm(1), pdfimages(1), xpdfrc(5)
- http://www.foolabs.com/xpdf/
-
- ()
-
diff --git a/doc/pdftohtml.1 b/doc/pdftohtml.1
new file mode 100644
index 0000000..a74df55
--- /dev/null
+++ b/doc/pdftohtml.1
@@ -0,0 +1,106 @@
+.\" Copyright 1997-2014 Glyph & Cog, LLC
+.TH pdftohtml 1 "28 May 2014"
+.SH NAME
+pdftohtml \- Portable Document Format (PDF) to HTML converter
+(version 3.04)
+.SH SYNOPSIS
+.B pdftohtml
+[options]
+.I PDF-file
+.I HTML-dir
+.SH DESCRIPTION
+.B Pdftohtml
+converts Portable Document Format (PDF) files to HTML.
+.PP
+Pdftohtml reads the PDF file,
+.IR PDF-file ,
+and places an HTML file for each page, along with auxiliary images
+in the directory,
+.IR HTML-dir .
+The HTML directory will be created; if it already exists, pdftohtml
+will report an error.
+.SH CONFIGURATION FILE
+Pdftohtml reads a configuration file at startup. It first tries to
+find the user's private config file, ~/.xpdfrc. If that doesn't
+exist, it looks for a system-wide config file, typically
+/usr/local/etc/xpdfrc (but this location can be changed when pdftohtml
+is built). See the
+.BR xpdfrc (5)
+man page for details.
+.SH OPTIONS
+Many of the following options can be set with configuration file
+commands. These are listed in square brackets with the description of
+the corresponding command line option.
+.TP
+.BI \-f " number"
+Specifies the first page to convert.
+.TP
+.BI \-l " number"
+Specifies the last page to convert.
+.TP
+.B \-r
+Specifies the resolution, in DPI, for background images. The default
+is 150 DPI.
+.TP
+.BI \-opw " password"
+Specify the owner password for the PDF file. Providing this will
+bypass all security restrictions.
+.TP
+.BI \-upw " password"
+Specify the user password for the PDF file.
+.TP
+.B \-q
+Don't print any messages or errors.
+.RB "[config file: " errQuiet ]
+.TP
+.BI \-cfg " config-file"
+Read
+.I config-file
+in place of ~/.xpdfrc or the system-wide config file.
+.TP
+.B \-v
+Print copyright and version information.
+.TP
+.B \-h
+Print usage information.
+.RB ( \-help
+and
+.B \-\-help
+are equivalent.)
+.SH BUGS
+Some PDF files contain fonts whose encodings have been mangled beyond
+recognition. There is no way (short of OCR) to extract text from
+these files.
+.SH EXIT CODES
+The Xpdf tools use the following exit codes:
+.TP
+0
+No error.
+.TP
+1
+Error opening a PDF file.
+.TP
+2
+Error opening an output file.
+.TP
+3
+Error related to PDF permissions.
+.TP
+99
+Other error.
+.SH AUTHOR
+The pdftohtml software and documentation are copyright 1996-2014 Glyph
+& Cog, LLC.
+.SH "SEE ALSO"
+.BR xpdf (1),
+.BR pdftops (1),
+.BR pdftotext (1),
+.BR pdfinfo (1),
+.BR pdffonts (1),
+.BR pdfdetach (1),
+.BR pdftoppm (1),
+.BR pdftopng (1),
+.BR pdfimages (1),
+.BR xpdfrc (5)
+.br
+.B http://www.foolabs.com/xpdf/
diff --git a/doc/pdftohtml.cat b/doc/pdftohtml.cat
new file mode 100644
index 0000000..ed46c1a
--- /dev/null
+++ b/doc/pdftohtml.cat
@@ -0,0 +1,87 @@
+pdftohtml(1) pdftohtml(1)
+
+
+
+NAME
+ pdftohtml - Portable Document Format (PDF) to HTML converter (version
+ 3.04)
+
+SYNOPSIS
+ pdftohtml [options] PDF-file HTML-dir
+
+DESCRIPTION
+ Pdftohtml converts Portable Document Format (PDF) files to HTML.
+
+ Pdftohtml reads the PDF file, PDF-file, and places an HTML file for
+ each page, along with auxiliary images in the directory, HTML-dir. The
+ HTML directory will be created; if it already exists, pdftohtml will
+ report an error.
+
+CONFIGURATION FILE
+ Pdftohtml reads a configuration file at startup. It first tries to
+ find the user's private config file, ~/.xpdfrc. If that doesn't exist,
+ it looks for a system-wide config file, typically /usr/local/etc/xpdfrc
+ (but this location can be changed when pdftohtml is built). See the
+ xpdfrc(5) man page for details.
+
+OPTIONS
+ Many of the following options can be set with configuration file com-
+ mands. These are listed in square brackets with the description of the
+ corresponding command line option.
+
+ -f number
+ Specifies the first page to convert.
+
+ -l number
+ Specifies the last page to convert.
+
+ -r Specifies the resolution, in DPI, for background images. The
+ default is 150 DPI.
+
+ -opw password
+ Specify the owner password for the PDF file. Providing this
+ will bypass all security restrictions.
+
+ -upw password
+ Specify the user password for the PDF file.
+
+ -q Don't print any messages or errors. [config file: errQuiet]
+
+ -cfg config-file
+ Read config-file in place of ~/.xpdfrc or the system-wide config
+ file.
+
+ -v Print copyright and version information.
+
+ -h Print usage information. (-help and --help are equivalent.)
+
+BUGS
+ Some PDF files contain fonts whose encodings have been mangled beyond
+ recognition. There is no way (short of OCR) to extract text from these
+ files.
+
+EXIT CODES
+ The Xpdf tools use the following exit codes:
+
+ 0 No error.
+
+ 1 Error opening a PDF file.
+
+ 2 Error opening an output file.
+
+ 3 Error related to PDF permissions.
+
+ 99 Other error.
+
+AUTHOR
+ The pdftohtml software and documentation are copyright 1996-2014 Glyph
+ & Cog, LLC.
+
+SEE ALSO
+ xpdf(1), pdftops(1), pdftotext(1), pdfinfo(1), pdffonts(1), pdfde-
+ tach(1), pdftoppm(1), pdftopng(1), pdfimages(1), xpdfrc(5)
+ http://www.foolabs.com/xpdf/
+
+
+
+ 28 May 2014 pdftohtml(1)
diff --git a/doc/pdftopng.1 b/doc/pdftopng.1
new file mode 100644
index 0000000..6d93653
--- /dev/null
+++ b/doc/pdftopng.1
@@ -0,0 +1,119 @@
+.\" Copyright 2014 Glyph & Cog, LLC
+.TH pdftopng 1 "28 May 2014"
+.SH NAME
+pdftopng \- Portable Document Format (PDF) to Portable Network Graphics
+(PNG) converter (version 3.04)
+.SH SYNOPSIS
+.B pdftopng
+[options]
+.I PDF-file PNG-root
+.SH DESCRIPTION
+.B Pdftopng
+converts Portable Document Format (PDF) files to color, grayscale, or
+monochrome image files in Portable Network Graphics (PNG) format.
+.PP
+Pdftopng reads the PDF file,
+.IR PDF-file ,
+and writes one PNG file for each page,
+.IR PNG-root - nnnnnn .png,
+where
+.I nnnnnn
+is the page number.
+If
+.I PNG-root
+is \'-', the image is sent to stdout (this is probably only useful
+when converting a single page).
+.SH CONFIGURATION FILE
+Pdftopng reads a configuration file at startup. It first tries to
+find the user's private config file, ~/.xpdfrc. If that doesn't
+exist, it looks for a system-wide config file, typically
+/usr/local/etc/xpdfrc (but this location can be changed when pdftopng
+is built). See the
+.BR xpdfrc (5)
+man page for details.
+.SH OPTIONS
+Many of the following options can be set with configuration file
+commands. These are listed in square brackets with the description of
+the corresponding command line option.
+.TP
+.BI \-f " number"
+Specifies the first page to convert.
+.TP
+.BI \-l " number"
+Specifies the last page to convert.
+.TP
+.BI \-r " number"
+Specifies the resolution, in DPI. The default is 150 DPI.
+.TP
+.B \-mono
+Generate a monochrome image (instead of a color image).
+.TP
+.B \-gray
+Generate a grayscale image (instead of a color image).
+.TP
+.BI \-freetype " yes | no"
+Enable or disable FreeType (a TrueType / Type 1 font rasterizer).
+This defaults to "yes".
+.RB "[config file: " enableFreeType ]
+.TP
+.BI \-aa " yes | no"
+Enable or disable font anti-aliasing. This defaults to "yes".
+.RB "[config file: " antialias ]
+.TP
+.BI \-aaVector " yes | no"
+Enable or disable vector anti-aliasing. This defaults to "yes".
+.RB "[config file: " vectorAntialias ]
+.TP
+.BI \-opw " password"
+Specify the owner password for the PDF file. Providing this will
+bypass all security restrictions.
+.TP
+.BI \-upw " password"
+Specify the user password for the PDF file.
+.TP
+.B \-q
+Don't print any messages or errors.
+.RB "[config file: " errQuiet ]
+.TP
+.B \-v
+Print copyright and version information.
+.TP
+.B \-h
+Print usage information.
+.RB ( \-help
+and
+.B \-\-help
+are equivalent.)
+.SH EXIT CODES
+The Xpdf tools use the following exit codes:
+.TP
+0
+No error.
+.TP
+1
+Error opening a PDF file.
+.TP
+2
+Error opening an output file.
+.TP
+3
+Error related to PDF permissions.
+.TP
+99
+Other error.
+.SH AUTHOR
+The pdftopng software and documentation are copyright 1996-2014 Glyph
+& Cog, LLC.
+.SH "SEE ALSO"
+.BR xpdf (1),
+.BR pdftops (1),
+.BR pdftotext (1),
+.BR pdftohtml (1),
+.BR pdfinfo (1),
+.BR pdffonts (1),
+.BR pdfdetach (1),
+.BR pdftoppm (1),
+.BR pdfimages (1),
+.BR xpdfrc (5)
+.br
+.B http://www.foolabs.com/xpdf/
diff --git a/doc/pdftopng.cat b/doc/pdftopng.cat
new file mode 100644
index 0000000..ca1c5ed
--- /dev/null
+++ b/doc/pdftopng.cat
@@ -0,0 +1,96 @@
+pdftopng(1) pdftopng(1)
+
+
+
+NAME
+ pdftopng - Portable Document Format (PDF) to Portable Network Graphics
+ (PNG) converter (version 3.04)
+
+SYNOPSIS
+ pdftopng [options] PDF-file PNG-root
+
+DESCRIPTION
+ Pdftopng converts Portable Document Format (PDF) files to color,
+ grayscale, or monochrome image files in Portable Network Graphics (PNG)
+ format.
+
+ Pdftopng reads the PDF file, PDF-file, and writes one PNG file for each
+ page, PNG-root-nnnnnn.png, where nnnnnn is the page number. If PNG-
+ root is '-', the image is sent to stdout (this is probably only useful
+ when converting a single page).
+
+CONFIGURATION FILE
+ Pdftopng reads a configuration file at startup. It first tries to find
+ the user's private config file, ~/.xpdfrc. If that doesn't exist, it
+ looks for a system-wide config file, typically /usr/local/etc/xpdfrc
+ (but this location can be changed when pdftopng is built). See the
+ xpdfrc(5) man page for details.
+
+OPTIONS
+ Many of the following options can be set with configuration file com-
+ mands. These are listed in square brackets with the description of the
+ corresponding command line option.
+
+ -f number
+ Specifies the first page to convert.
+
+ -l number
+ Specifies the last page to convert.
+
+ -r number
+ Specifies the resolution, in DPI. The default is 150 DPI.
+
+ -mono Generate a monochrome image (instead of a color image).
+
+ -gray Generate a grayscale image (instead of a color image).
+
+ -freetype yes | no
+ Enable or disable FreeType (a TrueType / Type 1 font raster-
+ izer). This defaults to "yes". [config file: enableFreeType]
+
+ -aa yes | no
+ Enable or disable font anti-aliasing. This defaults to "yes".
+ [config file: antialias]
+
+ -aaVector yes | no
+ Enable or disable vector anti-aliasing. This defaults to "yes".
+ [config file: vectorAntialias]
+
+ -opw password
+ Specify the owner password for the PDF file. Providing this
+ will bypass all security restrictions.
+
+ -upw password
+ Specify the user password for the PDF file.
+
+ -q Don't print any messages or errors. [config file: errQuiet]
+
+ -v Print copyright and version information.
+
+ -h Print usage information. (-help and --help are equivalent.)
+
+EXIT CODES
+ The Xpdf tools use the following exit codes:
+
+ 0 No error.
+
+ 1 Error opening a PDF file.
+
+ 2 Error opening an output file.
+
+ 3 Error related to PDF permissions.
+
+ 99 Other error.
+
+AUTHOR
+ The pdftopng software and documentation are copyright 1996-2014 Glyph &
+ Cog, LLC.
+
+SEE ALSO
+ xpdf(1), pdftops(1), pdftotext(1), pdftohtml(1), pdfinfo(1), pdf-
+ fonts(1), pdfdetach(1), pdftoppm(1), pdfimages(1), xpdfrc(5)
+ http://www.foolabs.com/xpdf/
+
+
+
+ 28 May 2014 pdftopng(1)
diff --git a/doc/pdftoppm.1 b/doc/pdftoppm.1
index 59a2f18..4255937 100644
--- a/doc/pdftoppm.1
+++ b/doc/pdftoppm.1
@@ -1,8 +1,8 @@
-.\" Copyright 2005-2011 Glyph & Cog, LLC
-.TH pdftoppm 1 "15 August 2011"
+.\" Copyright 2005-2014 Glyph & Cog, LLC
+.TH pdftoppm 1 "28 May 2014"
.SH NAME
pdftoppm \- Portable Document Format (PDF) to Portable Pixmap (PPM)
-converter (version 3.03)
+converter (version 3.04)
.SH SYNOPSIS
.B pdftoppm
[options]
@@ -53,11 +53,6 @@ Generate a monochrome PBM file (instead of a color PPM file).
.B \-gray
Generate a grayscale PGM file (instead of a color PPM file).
.TP
-.BI \-t1lib " yes | no"
-Enable or disable t1lib (a Type 1 font rasterizer). This defaults to
-"yes".
-.RB "[config file: " enableT1lib ]
-.TP
.BI \-freetype " yes | no"
Enable or disable FreeType (a TrueType / Type 1 font rasterizer).
This defaults to "yes".
@@ -109,15 +104,17 @@ Error related to PDF permissions.
99
Other error.
.SH AUTHOR
-The pdftoppm software and documentation are copyright 1996-2011 Glyph
+The pdftoppm software and documentation are copyright 1996-2014 Glyph
& Cog, LLC.
.SH "SEE ALSO"
.BR xpdf (1),
.BR pdftops (1),
.BR pdftotext (1),
+.BR pdftohtml (1),
.BR pdfinfo (1),
.BR pdffonts (1),
.BR pdfdetach (1),
+.BR pdftopng (1),
.BR pdfimages (1),
.BR xpdfrc (5)
.br
diff --git a/doc/pdftoppm.cat b/doc/pdftoppm.cat
index dd0cc78..bfa37c7 100644
--- a/doc/pdftoppm.cat
+++ b/doc/pdftoppm.cat
@@ -4,7 +4,7 @@ pdftoppm(1) pdftoppm(1)
NAME
pdftoppm - Portable Document Format (PDF) to Portable Pixmap (PPM) con-
- verter (version 3.03)
+ verter (version 3.04)
SYNOPSIS
pdftoppm [options] PDF-file PPM-root
@@ -45,16 +45,12 @@ OPTIONS
-gray Generate a grayscale PGM file (instead of a color PPM file).
- -t1lib yes | no
- Enable or disable t1lib (a Type 1 font rasterizer). This
- defaults to "yes". [config file: enableT1lib]
-
-freetype yes | no
- Enable or disable FreeType (a TrueType / Type 1 font raster-
+ Enable or disable FreeType (a TrueType / Type 1 font raster-
izer). This defaults to "yes". [config file: enableFreeType]
-aa yes | no
- Enable or disable font anti-aliasing. This defaults to "yes".
+ Enable or disable font anti-aliasing. This defaults to "yes".
[config file: antialias]
-aaVector yes | no
@@ -62,7 +58,7 @@ OPTIONS
[config file: vectorAntialias]
-opw password
- Specify the owner password for the PDF file. Providing this
+ Specify the owner password for the PDF file. Providing this
will bypass all security restrictions.
-upw password
@@ -88,14 +84,14 @@ EXIT CODES
99 Other error.
AUTHOR
- The pdftoppm software and documentation are copyright 1996-2011 Glyph &
+ The pdftoppm software and documentation are copyright 1996-2014 Glyph &
Cog, LLC.
SEE ALSO
- xpdf(1), pdftops(1), pdftotext(1), pdfinfo(1), pdffonts(1), pdfde-
- tach(1), pdfimages(1), xpdfrc(5)
+ xpdf(1), pdftops(1), pdftotext(1), pdftohtml(1), pdfinfo(1), pdf-
+ fonts(1), pdfdetach(1), pdftopng(1), pdfimages(1), xpdfrc(5)
http://www.foolabs.com/xpdf/
- 15 August 2011 pdftoppm(1)
+ 28 May 2014 pdftoppm(1)
diff --git a/doc/pdftoppm.hlp b/doc/pdftoppm.hlp
deleted file mode 100644
index 6c370ed..0000000
--- a/doc/pdftoppm.hlp
+++ /dev/null
@@ -1,110 +0,0 @@
-! Generated automatically by mantohlp
-1 pdftoppm
-
- pdftoppm - Portable Document Format (PDF) to Portable Pixmap (PPM)
-
- pdftoppm [options] PDF-file PPM-root
-
- Pdftoppm converts Portable Document Format (PDF) files to color image
- files in Portable Pixmap (PPM) format, grayscale image files in Porta-
- ble Graymap (PGM) format, or monochrome image files in Portable Bitmap
- (PBM) format.
-
- Pdftoppm reads the PDF file, PDF-file, and writes one PPM file for each
- page, PPM-root-nnnnnn.ppm, where nnnnnn is the page number. If PPM-
- root is '-', the image is sent to stdout (this is probably only useful
- when converting a single page).
-
- ()
-
-2 ONFIGURATION_FIL
-
- Pdftoppm reads a configuration file at startup. It first tries to find
- the user's private config file, ~/.xpdfrc. If that doesn't exist, it
- looks for a system-wide config file, typically /usr/local/etc/xpdfrc
- (but this location can be changed when pdftoppm is built). See the
- xpdfrc(5) man page for details.
-
- ()
-
-2 OPTIONS
-
- Many of the following options can be set with configuration file com-
- mands. These are listed in square brackets with the description of the
- corresponding command line option.
-
- -f number
- Specifies the first page to convert.
-
- -l number
- Specifies the last page to convert.
-
- -r number
- Specifies the resolution, in DPI. The default is 150 DPI.
-
- -mono Generate a monochrome PBM file (instead of a color PPM file).
-
- -gray Generate a grayscale PGM file (instead of a color PPM file).
-
- -t1lib yes | no
- Enable or disable t1lib (a Type 1 font rasterizer). This
- defaults to "yes". [config file: enableT1lib]
-
- -freetype yes | no
- Enable or disable FreeType (a TrueType / Type 1 font raster-
- izer). This defaults to "yes". [config file: enableFreeType]
-
- -aa yes | no
- Enable or disable font anti-aliasing. This defaults to "yes".
- [config file: antialias]
-
- -aaVector yes | no
- Enable or disable vector anti-aliasing. This defaults to "yes".
- [config file: vectorAntialias]
-
- -opw password
- Specify the owner password for the PDF file. Providing this
- will bypass all security restrictions.
-
- -upw password
- Specify the user password for the PDF file.
-
- -q Don't print any messages or errors. [config file: errQuiet]
-
- -v Print copyright and version information.
-
- -h Print usage information. (-help and --help are equivalent.)
-
- ()
-
-2 XIT_CODE
-
- The Xpdf tools use the following exit codes:
-
- 0 No error.
-
- 1 Error opening a PDF file.
-
- 2 Error opening an output file.
-
- 3 Error related to PDF permissions.
-
- 99 Other error.
-
- ()
-
-2 AUTHOR
-
- The pdftoppm software and documentation are copyright 1996-2011 Glyph &
- Cog, LLC.
-
- ()
-
-2 SEE_ALSO
-
- xpdf(1), pdftops(1), pdftotext(1), pdfinfo(1), pdffonts(1), pdfde-
- tach(1), pdfimages(1), xpdfrc(5)
- http://www.foolabs.com/xpdf/
-
- ()
-
diff --git a/doc/pdftops.1 b/doc/pdftops.1
index 9c68827..d9daf49 100644
--- a/doc/pdftops.1
+++ b/doc/pdftops.1
@@ -1,8 +1,8 @@
-.\" Copyright 1996-2011 Glyph & Cog, LLC
-.TH pdftops 1 "15 August 2011"
+.\" Copyright 1996-2014 Glyph & Cog, LLC
+.TH pdftops 1 "28 May 2014"
.SH NAME
pdftops \- Portable Document Format (PDF) to PostScript converter
-(version 3.03)
+(version 3.04)
.SH SYNOPSIS
.B pdftops
[options]
@@ -172,6 +172,7 @@ lower-left corner of the paper instead.
.B \-pagecrop
Treat the CropBox as the PDF page size. By default, the MediaBox is
used as the page size.
+.RB "[config file: " psUseCropBoxAsPage ]
.TP
.B \-duplex
Set the Duplex pagedevice entry in the PostScript file. This tells
@@ -221,15 +222,17 @@ Error related to PDF permissions.
99
Other error.
.SH AUTHOR
-The pdftops software and documentation are copyright 1996-2011 Glyph &
+The pdftops software and documentation are copyright 1996-2014 Glyph &
Cog, LLC.
.SH "SEE ALSO"
.BR xpdf (1),
.BR pdftotext (1),
+.BR pdftohtml (1),
.BR pdfinfo (1),
.BR pdffonts (1),
.BR pdfdetach (1),
.BR pdftoppm (1),
+.BR pdftopng (1),
.BR pdfimages (1),
.BR xpdfrc (5)
.br
diff --git a/doc/pdftops.cat b/doc/pdftops.cat
index 8104b37..9e119ac 100644
--- a/doc/pdftops.cat
+++ b/doc/pdftops.cat
@@ -4,7 +4,7 @@ pdftops(1) pdftops(1)
NAME
pdftops - Portable Document Format (PDF) to PostScript converter (ver-
- sion 3.03)
+ sion 3.04)
SYNOPSIS
pdftops [options] [PDF-file [PS-file]]
@@ -73,54 +73,54 @@ OPTIONS
page PDF file, you must use -f and -l to specify a single page.
No more than one of the mode options (-eps, -form) may be given.
- -form Generate a PostScript form which can be imported by software
- that understands forms. A form contains a single page, so if
- you use this option with a multi-page PDF file, you must use -f
- and -l to specify a single page. The -level1 option cannot be
+ -form Generate a PostScript form which can be imported by software
+ that understands forms. A form contains a single page, so if
+ you use this option with a multi-page PDF file, you must use -f
+ and -l to specify a single page. The -level1 option cannot be
used with -form.
- -opi Generate OPI comments for all images and forms which have OPI
+ -opi Generate OPI comments for all images and forms which have OPI
information. (This option is only available if pdftops was com-
piled with OPI support.) [config file: psOPI]
-noembt1
- By default, any Type 1 fonts which are embedded in the PDF file
+ By default, any Type 1 fonts which are embedded in the PDF file
are copied into the PostScript file. This option causes pdftops
- to substitute base fonts instead. Embedded fonts make Post-
- Script files larger, but may be necessary for readable output.
+ to substitute base fonts instead. Embedded fonts make Post-
+ Script files larger, but may be necessary for readable output.
[config file: psEmbedType1Fonts]
-noembtt
- By default, any TrueType fonts which are embedded in the PDF
- file are copied into the PostScript file. This option causes
- pdftops to substitute base fonts instead. Embedded fonts make
- PostScript files larger, but may be necessary for readable out-
- put. Also, some PostScript interpreters do not have TrueType
+ By default, any TrueType fonts which are embedded in the PDF
+ file are copied into the PostScript file. This option causes
+ pdftops to substitute base fonts instead. Embedded fonts make
+ PostScript files larger, but may be necessary for readable out-
+ put. Also, some PostScript interpreters do not have TrueType
rasterizers. [config file: psEmbedTrueTypeFonts]
-noembcidps
- By default, any CID PostScript fonts which are embedded in the
- PDF file are copied into the PostScript file. This option dis-
+ By default, any CID PostScript fonts which are embedded in the
+ PDF file are copied into the PostScript file. This option dis-
ables that embedding. No attempt is made to substitute for non-
- embedded CID PostScript fonts. [config file: psEmbedCID-
+ embedded CID PostScript fonts. [config file: psEmbedCID-
PostScriptFonts]
-noembcidtt
By default, any CID TrueType fonts which are embedded in the PDF
- file are copied into the PostScript file. This option disables
+ file are copied into the PostScript file. This option disables
that embedding. No attempt is made to substitute for non-embed-
ded CID TrueType fonts. [config file: psEmbedCIDTrueTypeFonts]
-preload
- Convert PDF forms to PS procedures, and preload image data.
- This uses more memory in the PostScript interpreter, but gener-
- ates significantly smaller PS files in situations where, e.g.,
+ Convert PDF forms to PS procedures, and preload image data.
+ This uses more memory in the PostScript interpreter, but gener-
+ ates significantly smaller PS files in situations where, e.g.,
the same image is drawn on every page of a long document.
-paper size
- Set the paper size to one of "letter", "legal", "A4", or "A3".
- This can also be set to "match", which will set the paper size
- to match the size specified in the PDF file. [config file:
+ Set the paper size to one of "letter", "legal", "A4", or "A3".
+ This can also be set to "match", which will set the paper size
+ to match the size specified in the PDF file. [config file:
psPaperSize]
-paperw size
@@ -130,7 +130,7 @@ OPTIONS
Set the paper height, in points. [config file: psPaperSize]
-nocrop
- By default, output is cropped to the CropBox specified in the
+ By default, output is cropped to the CropBox specified in the
PDF file. This option disables cropping. [config file: psCrop]
-expand
@@ -151,7 +151,7 @@ OPTIONS
-pagecrop
Treat the CropBox as the PDF page size. By default, the Media-
- Box is used as the page size.
+ Box is used as the page size. [config file: psUseCropBoxAsPage]
-duplex
Set the Duplex pagedevice entry in the PostScript file. This
@@ -189,14 +189,14 @@ EXIT CODES
99 Other error.
AUTHOR
- The pdftops software and documentation are copyright 1996-2011 Glyph &
+ The pdftops software and documentation are copyright 1996-2014 Glyph &
Cog, LLC.
SEE ALSO
- xpdf(1), pdftotext(1), pdfinfo(1), pdffonts(1), pdfdetach(1),
- pdftoppm(1), pdfimages(1), xpdfrc(5)
+ xpdf(1), pdftotext(1), pdftohtml(1), pdfinfo(1), pdffonts(1), pdfde-
+ tach(1), pdftoppm(1), pdftopng(1), pdfimages(1), xpdfrc(5)
http://www.foolabs.com/xpdf/
- 15 August 2011 pdftops(1)
+ 28 May 2014 pdftops(1)
diff --git a/doc/pdftops.hlp b/doc/pdftops.hlp
deleted file mode 100644
index b93febd..0000000
--- a/doc/pdftops.hlp
+++ /dev/null
@@ -1,211 +0,0 @@
-! Generated automatically by mantohlp
-1 pdftops
-
- pdftops - Portable Document Format (PDF) to PostScript converter
-
- pdftops [options] [PDF-file [PS-file]]
-
- Pdftops converts Portable Document Format (PDF) files to PostScript so
- they can be printed.
-
- Pdftops reads the PDF file, PDF-file, and writes a PostScript file, PS-
- file. If PS-file is not specified, pdftops converts file.pdf to
- file.ps (or file.eps with the -eps option). If PS-file is '-', the
- PostScript is sent to stdout.
-
- ()
-
-2 ONFIGURATION_FIL
-
- Pdftops reads a configuration file at startup. It first tries to find
- the user's private config file, ~/.xpdfrc. If that doesn't exist, it
- looks for a system-wide config file, typically /usr/local/etc/xpdfrc
- (but this location can be changed when pdftops is built). See the
- xpdfrc(5) man page for details.
-
- ()
-
-2 OPTIONS
-
- Many of the following options can be set with configuration file com-
- mands. These are listed in square brackets with the description of the
- corresponding command line option.
-
- -f number
- Specifies the first page to print.
-
- -l number
- Specifies the last page to print.
-
- -level1
- Generate Level 1 PostScript. The resulting PostScript files
- will be significantly larger (if they contain images), but will
- print on Level 1 printers. This also converts all images to
- black and white. No more than one of the PostScript level
- options (-level1, -level1sep, -level2, -level2sep, -level3,
- -level3Sep) may be given. [config file: psLevel]
-
- -level1sep
- Generate Level 1 separable PostScript. All colors are converted
- to CMYK. Images are written with separate stream data for the
- four components. [config file: psLevel]
-
- -level2
- Generate Level 2 PostScript. Level 2 supports color images and
- image compression. This is the default setting. [config file:
- psLevel]
-
- -level2sep
- Generate Level 2 separable PostScript. All colors are converted
- to CMYK. The PostScript separation convention operators are
- used to handle custom (spot) colors. [config file: psLevel]
-
- -level3
- Generate Level 3 PostScript. This enables all Level 2 features
- plus CID font embedding and masked image generation. [config
- file: psLevel]
-
- -level3Sep
- Generate Level 3 separable PostScript. The separation handling
- is the same as for -level2Sep. [config file: psLevel]
-
- -eps Generate an Encapsulated PostScript (EPS) file. An EPS file
- contains a single image, so if you use this option with a multi-
- page PDF file, you must use -f and -l to specify a single page.
- No more than one of the mode options (-eps, -form) may be given.
-
- -form Generate a PostScript form which can be imported by software
- that understands forms. A form contains a single page, so if
- you use this option with a multi-page PDF file, you must use -f
- and -l to specify a single page. The -level1 option cannot be
- used with -form.
-
- -opi Generate OPI comments for all images and forms which have OPI
- information. (This option is only available if pdftops was com-
- piled with OPI support.) [config file: psOPI]
-
- -noembt1
- By default, any Type 1 fonts which are embedded in the PDF file
- are copied into the PostScript file. This option causes pdftops
- to substitute base fonts instead. Embedded fonts make Post-
- Script files larger, but may be necessary for readable output.
- [config file: psEmbedType1Fonts]
-
- -noembtt
- By default, any TrueType fonts which are embedded in the PDF
- file are copied into the PostScript file. This option causes
- pdftops to substitute base fonts instead. Embedded fonts make
- PostScript files larger, but may be necessary for readable out-
- put. Also, some PostScript interpreters do not have TrueType
- rasterizers. [config file: psEmbedTrueTypeFonts]
-
- -noembcidps
- By default, any CID PostScript fonts which are embedded in the
- PDF file are copied into the PostScript file. This option dis-
- ables that embedding. No attempt is made to substitute for non-
- embedded CID PostScript fonts. [config file: psEmbedCID-
- PostScriptFonts]
-
- -noembcidtt
- By default, any CID TrueType fonts which are embedded in the PDF
- file are copied into the PostScript file. This option disables
- that embedding. No attempt is made to substitute for non-embed-
- ded CID TrueType fonts. [config file: psEmbedCIDTrueTypeFonts]
-
- -preload
- Convert PDF forms to PS procedures, and preload image data.
- This uses more memory in the PostScript interpreter, but gener-
- ates significantly smaller PS files in situations where, e.g.,
- the same image is drawn on every page of a long document.
-
- -paper size
- Set the paper size to one of "letter", "legal", "A4", or "A3".
- This can also be set to "match", which will set the paper size
- to match the size specified in the PDF file. [config file:
- psPaperSize]
-
- -paperw size
- Set the paper width, in points. [config file: psPaperSize]
-
- -paperh size
- Set the paper height, in points. [config file: psPaperSize]
-
- -nocrop
- By default, output is cropped to the CropBox specified in the
- PDF file. This option disables cropping. [config file: psCrop]
-
- -expand
- Expand PDF pages smaller than the paper to fill the paper. By
- default, these pages are not scaled. [config file: psExpandS-
- maller]
-
- -noshrink
- Don't scale PDF pages which are larger than the paper. By
- default, pages larger than the paper are shrunk to fit. [config
- file: psShrinkLarger]
-
- -nocenter
- By default, PDF pages smaller than the paper (after any scaling)
- are centered on the paper. This option causes them to be
- aligned to the lower-left corner of the paper instead. [config
- file: psCenter]
-
- -pagecrop
- Treat the CropBox as the PDF page size. By default, the Media-
- Box is used as the page size.
-
- -duplex
- Set the Duplex pagedevice entry in the PostScript file. This
- tells duplex-capable printers to enable duplexing. [config
- file: psDuplex]
-
- -opw password
- Specify the owner password for the PDF file. Providing this
- will bypass all security restrictions.
-
- -upw password
- Specify the user password for the PDF file.
-
- -q Don't print any messages or errors. [config file: errQuiet]
-
- -cfg config-file
- Read config-file in place of ~/.xpdfrc or the system-wide config
- file.
-
- -v Print copyright and version information.
-
- -h Print usage information. (-help and --help are equivalent.)
-
- ()
-
-2 XIT_CODE
-
- The Xpdf tools use the following exit codes:
-
- 0 No error.
-
- 1 Error opening a PDF file.
-
- 2 Error opening an output file.
-
- 3 Error related to PDF permissions.
-
- 99 Other error.
-
- ()
-
-2 AUTHOR
-
- The pdftops software and documentation are copyright 1996-2011 Glyph &
- Cog, LLC.
-
- ()
-
-2 SEE_ALSO
-
- xpdf(1), pdftotext(1), pdfinfo(1), pdffonts(1), pdfdetach(1),
- pdftoppm(1), pdfimages(1), xpdfrc(5)
- http://www.foolabs.com/xpdf/
-
- ()
-
diff --git a/doc/pdftotext.1 b/doc/pdftotext.1
index 83bf7c6..12d7500 100644
--- a/doc/pdftotext.1
+++ b/doc/pdftotext.1
@@ -1,8 +1,8 @@
-.\" Copyright 1997-2011 Glyph & Cog, LLC
-.TH pdftotext 1 "15 August 2011"
+.\" Copyright 1997-2014 Glyph & Cog, LLC
+.TH pdftotext 1 "28 May 2014"
.SH NAME
pdftotext \- Portable Document Format (PDF) to text converter
-(version 3.03)
+(version 3.04)
.SH SYNOPSIS
.B pdftotext
[options]
@@ -47,21 +47,50 @@ Specifies the last page to convert.
.B \-layout
Maintain (as best as possible) the original physical layout of the
text. The default is to \'undo' physical layout (columns,
-hyphenation, etc.) and output the text in reading order.
+hyphenation, etc.) and output the text in reading order. If the
+.B \-fixed
+option is given, character spacing within each line will be determined
+by the specified character pitch.
+.TP
+.B \-table
+Table mode is similar to physical layout mode, but optimized for
+tabular data, with the goal of keeping rows and columns aligned (at
+the expense of inserting extra whitespace). If the
+.B \-fixed
+option is given, character spacing within each line will be determined
+by the specified character pitch.
+.TP
+.B \-lineprinter
+Line printer mode uses a strict fixed-character-pitch and -height
+layout. That is, the page is broken into a grid, and characters are
+placed into that grid. If the grid spacing is too small for the
+actual characters, the result is extra whitespace. If the grid
+spacing is too large, the result is missing whitespace. The grid
+spacing can be specified using the
+.B \-fixed
+and
+.B \-linespacing
+options.
+If one or both are not given on the command line, pdftotext will
+attempt to compute appropriate value(s).
+.TP
+.B \-raw
+Keep the text in content stream order. Depending on how the PDF file
+was generated, this may or may not be useful.
.TP
.BI \-fixed " number"
-Assume fixed-pitch (or tabular) text, with the specified character
-width (in points). This forces physical layout mode.
+Specify the character pitch (character width), in points, for physical
+layout, table, or line printer mode. This is ignored in all other
+modes.
.TP
-.B \-raw
-Keep the text in content stream order. This is a hack which often
-"undoes" column formatting, etc. Use of raw mode is no longer
-recommended.
+.BI \-linespacing " number"
+Specify the line spacing, in points, for line printer mode. This is
+ignored in all other modes.
.TP
-.B \-htmlmeta
-Generate a simple HTML file, including the meta information. This
-simply wraps the text in <pre> and </pre> and prepends the meta
-headers.
+.B \-clip
+Text which is hidden because of clipping is removed before doing
+layout, and then added back in. This can be helpful for tables where
+clipped (invisible) text would overlap the next column.
.TP
.BI \-enc " encoding-name"
Sets the encoding to use for text output. The
@@ -127,15 +156,17 @@ Error related to PDF permissions.
99
Other error.
.SH AUTHOR
-The pdftotext software and documentation are copyright 1996-2011 Glyph
+The pdftotext software and documentation are copyright 1996-2014 Glyph
& Cog, LLC.
.SH "SEE ALSO"
.BR xpdf (1),
.BR pdftops (1),
+.BR pdftohtml (1),
.BR pdfinfo (1),
.BR pdffonts (1),
.BR pdfdetach (1),
.BR pdftoppm (1),
+.BR pdftopng (1),
.BR pdfimages (1),
.BR xpdfrc (5)
.br
diff --git a/doc/pdftotext.cat b/doc/pdftotext.cat
index 5c8a709..8217743 100644
--- a/doc/pdftotext.cat
+++ b/doc/pdftotext.cat
@@ -4,27 +4,27 @@ pdftotext(1) pdftotext(1)
NAME
pdftotext - Portable Document Format (PDF) to text converter (version
- 3.03)
+ 3.04)
SYNOPSIS
pdftotext [options] [PDF-file [text-file]]
DESCRIPTION
- Pdftotext converts Portable Document Format (PDF) files to plain text.
+ Pdftotext converts Portable Document Format (PDF) files to plain text.
- Pdftotext reads the PDF file, PDF-file, and writes a text file, text-
- file. If text-file is not specified, pdftotext converts file.pdf to
+ Pdftotext reads the PDF file, PDF-file, and writes a text file, text-
+ file. If text-file is not specified, pdftotext converts file.pdf to
file.txt. If text-file is '-', the text is sent to stdout.
CONFIGURATION FILE
- Pdftotext reads a configuration file at startup. It first tries to
+ Pdftotext reads a configuration file at startup. It first tries to
find the user's private config file, ~/.xpdfrc. If that doesn't exist,
it looks for a system-wide config file, typically /usr/local/etc/xpdfrc
- (but this location can be changed when pdftotext is built). See the
+ (but this location can be changed when pdftotext is built). See the
xpdfrc(5) man page for details.
OPTIONS
- Many of the following options can be set with configuration file com-
+ Many of the following options can be set with configuration file com-
mands. These are listed in square brackets with the description of the
corresponding command line option.
@@ -35,22 +35,44 @@ OPTIONS
Specifies the last page to convert.
-layout
- Maintain (as best as possible) the original physical layout of
- the text. The default is to 'undo' physical layout (columns,
- hyphenation, etc.) and output the text in reading order.
+ Maintain (as best as possible) the original physical layout of
+ the text. The default is to 'undo' physical layout (columns,
+ hyphenation, etc.) and output the text in reading order. If the
+ -fixed option is given, character spacing within each line will
+ be determined by the specified character pitch.
+
+ -table Table mode is similar to physical layout mode, but optimized for
+ tabular data, with the goal of keeping rows and columns aligned
+ (at the expense of inserting extra whitespace). If the -fixed
+ option is given, character spacing within each line will be
+ determined by the specified character pitch.
+
+ -lineprinter
+ Line printer mode uses a strict fixed-character-pitch and
+ -height layout. That is, the page is broken into a grid, and
+ characters are placed into that grid. If the grid spacing is
+ too small for the actual characters, the result is extra white-
+ space. If the grid spacing is too large, the result is missing
+ whitespace. The grid spacing can be specified using the -fixed
+ and -linespacing options. If one or both are not given on the
+ command line, pdftotext will attempt to compute appropriate
+ value(s).
+
+ -raw Keep the text in content stream order. Depending on how the PDF
+ file was generated, this may or may not be useful.
-fixed number
- Assume fixed-pitch (or tabular) text, with the specified charac-
- ter width (in points). This forces physical layout mode.
+ Specify the character pitch (character width), in points, for
+ physical layout, table, or line printer mode. This is ignored
+ in all other modes.
- -raw Keep the text in content stream order. This is a hack which
- often "undoes" column formatting, etc. Use of raw mode is no
- longer recommended.
+ -linespacing number
+ Specify the line spacing, in points, for line printer mode.
+ This is ignored in all other modes.
- -htmlmeta
- Generate a simple HTML file, including the meta information.
- This simply wraps the text in <pre> and </pre> and prepends the
- meta headers.
+ -clip Text which is hidden because of clipping is removed before doing
+ layout, and then added back in. This can be helpful for tables
+ where clipped (invisible) text would overlap the next column.
-enc encoding-name
Sets the encoding to use for text output. The encoding-name
@@ -102,14 +124,14 @@ EXIT CODES
99 Other error.
AUTHOR
- The pdftotext software and documentation are copyright 1996-2011 Glyph
+ The pdftotext software and documentation are copyright 1996-2014 Glyph
& Cog, LLC.
SEE ALSO
- xpdf(1), pdftops(1), pdfinfo(1), pdffonts(1), pdfdetach(1),
- pdftoppm(1), pdfimages(1), xpdfrc(5)
+ xpdf(1), pdftops(1), pdftohtml(1), pdfinfo(1), pdffonts(1), pdfde-
+ tach(1), pdftoppm(1), pdftopng(1), pdfimages(1), xpdfrc(5)
http://www.foolabs.com/xpdf/
- 15 August 2011 pdftotext(1)
+ 28 May 2014 pdftotext(1)
diff --git a/doc/pdftotext.hlp b/doc/pdftotext.hlp
deleted file mode 100644
index 651af91..0000000
--- a/doc/pdftotext.hlp
+++ /dev/null
@@ -1,127 +0,0 @@
-! Generated automatically by mantohlp
-1 pdftotext
-
- pdftotext - Portable Document Format (PDF) to text converter
-
- pdftotext [options] [PDF-file [text-file]]
-
- Pdftotext converts Portable Document Format (PDF) files to plain text.
-
- Pdftotext reads the PDF file, PDF-file, and writes a text file, text-
- file. If text-file is not specified, pdftotext converts file.pdf to
- file.txt. If text-file is '-', the text is sent to stdout.
-
- ()
-
-2 ONFIGURATION_FIL
-
- Pdftotext reads a configuration file at startup. It first tries to
- find the user's private config file, ~/.xpdfrc. If that doesn't exist,
- it looks for a system-wide config file, typically /usr/local/etc/xpdfrc
- (but this location can be changed when pdftotext is built). See the
- xpdfrc(5) man page for details.
-
- ()
-
-2 OPTIONS
-
- Many of the following options can be set with configuration file com-
- mands. These are listed in square brackets with the description of the
- corresponding command line option.
-
- -f number
- Specifies the first page to convert.
-
- -l number
- Specifies the last page to convert.
-
- -layout
- Maintain (as best as possible) the original physical layout of
- the text. The default is to 'undo' physical layout (columns,
- hyphenation, etc.) and output the text in reading order.
-
- -fixed number
- Assume fixed-pitch (or tabular) text, with the specified charac-
- ter width (in points). This forces physical layout mode.
-
- -raw Keep the text in content stream order. This is a hack which
- often "undoes" column formatting, etc. Use of raw mode is no
- longer recommended.
-
- -htmlmeta
- Generate a simple HTML file, including the meta information.
- This simply wraps the text in <pre> and </pre> and prepends the
- meta headers.
-
- -enc encoding-name
- Sets the encoding to use for text output. The encoding-name
- must be defined with the unicodeMap command (see xpdfrc(5)).
- The encoding name is case-sensitive. This defaults to "Latin1"
- (which is a built-in encoding). [config file: textEncoding]
-
- -eol unix | dos | mac
- Sets the end-of-line convention to use for text output. [config
- file: textEOL]
-
- -nopgbrk
- Don't insert page breaks (form feed characters) between pages.
- [config file: textPageBreaks]
-
- -opw password
- Specify the owner password for the PDF file. Providing this
- will bypass all security restrictions.
-
- -upw password
- Specify the user password for the PDF file.
-
- -q Don't print any messages or errors. [config file: errQuiet]
-
- -cfg config-file
- Read config-file in place of ~/.xpdfrc or the system-wide config
- file.
-
- -v Print copyright and version information.
-
- -h Print usage information. (-help and --help are equivalent.)
-
- ()
-
-2 BUGS
-
- Some PDF files contain fonts whose encodings have been mangled beyond
- recognition. There is no way (short of OCR) to extract text from these
- files.
-
- ()
-
-2 XIT_CODE
-
- The Xpdf tools use the following exit codes:
-
- 0 No error.
-
- 1 Error opening a PDF file.
-
- 2 Error opening an output file.
-
- 3 Error related to PDF permissions.
-
- 99 Other error.
-
- ()
-
-2 AUTHOR
-
- The pdftotext software and documentation are copyright 1996-2011 Glyph
- & Cog, LLC.
-
- ()
-
-2 SEE_ALSO
-
- xpdf(1), pdftops(1), pdfinfo(1), pdffonts(1), pdfdetach(1),
- pdftoppm(1), pdfimages(1), xpdfrc(5)
- http://www.foolabs.com/xpdf/
-
- ()
-
diff --git a/doc/sample-xpdfrc b/doc/sample-xpdfrc
index 0df70a7..0a4234f 100644
--- a/doc/sample-xpdfrc
+++ b/doc/sample-xpdfrc
@@ -79,9 +79,8 @@
#----- misc settings
-# Enable t1lib, FreeType, and anti-aliased text.
+# Enable FreeType, and anti-aliased text.
-#enableT1lib yes
#enableFreeType yes
#antialias yes
diff --git a/doc/xpdf.1 b/doc/xpdf.1
index 05c0af9..c34ad7f 100644
--- a/doc/xpdf.1
+++ b/doc/xpdf.1
@@ -1,7 +1,7 @@
-.\" Copyright 1996-2011 Glyph & Cog, LLC
-.TH xpdf 1 "15 August 2011"
+.\" Copyright 1996-2014 Glyph & Cog, LLC
+.TH xpdf 1 "28 May 2014"
.SH NAME
-xpdf \- Portable Document Format (PDF) file viewer for X (version 3.03)
+xpdf \- Portable Document Format (PDF) file viewer for X (version 3.04)
.SH SYNOPSIS
.B xpdf
[options]
@@ -102,11 +102,6 @@ Start in continuous view mode, i.e., with one vertical scroll bar for
the whole document.
.RB "[config file: " continuousView ]
.TP
-.BI \-t1lib " yes | no"
-Enable or disable t1lib (a Type 1 font rasterizer). This defaults to
-"yes".
-.RB "[config file: " enableT1lib ]
-.TP
.BI \-freetype " yes | no"
Enable or disable FreeType (a TrueType / Type 1 font rasterizer).
This defaults to "yes".
@@ -638,7 +633,11 @@ Redraw the window.
Raise the window to the front.
.TP
.B closeWindow
-Close the window.
+Close the window. If this was the last open window, clear the window,
+but don't quit from Xpdf.
+.TP
+.B closeWindowOrQuit
+Close the window. If this was the last open window, quit from Xpdf.
.TP
.BI run( external-command-string )
Run an external command. The following escapes are allowed in the
@@ -668,6 +667,13 @@ command string:
%% => %
.fi
+The external command string will often contain spaces, so the whole
+command must be quoted in the xpdfrc file:
+.nf
+
+ bind x "run(ls -l)"
+
+.fi
.TP
.B openOutline
Open the outline pane.
@@ -799,7 +805,7 @@ The default key bindings are as follows:
bind w any zoomFitWidth
bind alt-f any toggleFullScreenMode
bind ctrl-l any redraw
- bind ctrl-w any closeWindow
+ bind ctrl-w any closeWindowOrQuit
bind ? any about
bind q any quit
bind Q any quit
@@ -863,15 +869,17 @@ Error related to PDF permissions.
99
Other error.
.SH AUTHOR
-The xpdf software and documentation are copyright 1996-2011 Glyph &
+The xpdf software and documentation are copyright 1996-2014 Glyph &
Cog, LLC.
.SH "SEE ALSO"
.BR pdftops (1),
.BR pdftotext (1),
+.BR pdftohtml (1),
.BR pdfinfo (1),
.BR pdffonts (1),
.BR pdfdetach (1),
.BR pdftoppm (1),
+.BR pdftopng (1),
.BR pdfimages (1),
.BR xpdfrc (5)
.br
diff --git a/doc/xpdf.cat b/doc/xpdf.cat
index eab46ab..965b310 100644
--- a/doc/xpdf.cat
+++ b/doc/xpdf.cat
@@ -3,7 +3,7 @@ xpdf(1) xpdf(1)
NAME
- xpdf - Portable Document Format (PDF) file viewer for X (version 3.03)
+ xpdf - Portable Document Format (PDF) file viewer for X (version 3.04)
SYNOPSIS
xpdf [options] [PDF-file [page | +dest]]
@@ -60,15 +60,15 @@ OPTIONS
serve color table entries. This is ignored with private col-
ormaps and on TrueColor visuals. [X resource: xpdf.rgbCubeSize]
- -rv Set reverse video mode. This reverses the colors of everything
- except images. It may not always produce great results for PDF
- files which do weird things with color. This also causes the
- paper color to default to black. [X resource: xpdf.reverseV-
+ -rv Set reverse video mode. This reverses the colors of everything
+ except images. It may not always produce great results for PDF
+ files which do weird things with color. This also causes the
+ paper color to default to black. [X resource: xpdf.reverseV-
ideo]
-papercolor color
Set the "paper color", i.e., the background of the page display.
- This will not work too well with PDF files that do things like
+ This will not work too well with PDF files that do things like
filling in white behind the text. [X resource: xpdf.paperColor]
-mattecolor color
@@ -87,16 +87,12 @@ OPTIONS
-cont Start in continuous view mode, i.e., with one vertical scroll
bar for the whole document. [config file: continuousView]
- -t1lib yes | no
- Enable or disable t1lib (a Type 1 font rasterizer). This
- defaults to "yes". [config file: enableT1lib]
-
-freetype yes | no
- Enable or disable FreeType (a TrueType / Type 1 font raster-
+ Enable or disable FreeType (a TrueType / Type 1 font raster-
izer). This defaults to "yes". [config file: enableFreeType]
-aa yes | no
- Enable or disable font anti-aliasing. This defaults to "yes".
+ Enable or disable font anti-aliasing. This defaults to "yes".
[config file: antialias]
-aaVector yes | no
@@ -104,15 +100,15 @@ OPTIONS
[config file: vectorAntialias]
-ps PS-file
- Set the default file name for PostScript output (i.e., the name
+ Set the default file name for PostScript output (i.e., the name
which will appear in the print dialog). This can also be of the
form '|command' to pipe the PostScript through a command. [con-
fig file: psFile]
-paper size
- Set the paper size to one of "letter", "legal", "A4", or "A3".
- This can also be set to "match", which will set the paper size
- to match the size specified in the PDF file. [config file:
+ Set the paper size to one of "letter", "legal", "A4", or "A3".
+ This can also be set to "match", which will set the paper size
+ to match the size specified in the PDF file. [config file:
psPaperSize]
-paperw size
@@ -122,14 +118,14 @@ OPTIONS
Set the paper height, in points. [config file: psPaperSize]
-level1
- Generate Level 1 PostScript. The resulting PostScript files
- will be significantly larger (if they contain images), but will
- print on Level 1 printers. This also converts all images to
+ Generate Level 1 PostScript. The resulting PostScript files
+ will be significantly larger (if they contain images), but will
+ print on Level 1 printers. This also converts all images to
black and white. [config file: psLevel]
-enc encoding-name
- Sets the encoding to use for text output. The encoding-name
- must be defined with the unicodeMap command (see xpdfrc(5)).
+ Sets the encoding to use for text output. The encoding-name
+ must be defined with the unicodeMap command (see xpdfrc(5)).
This defaults to "Latin1" (which is a built-in encoding). [con-
fig file: textEncoding]
@@ -138,7 +134,7 @@ OPTIONS
file: textEOL]
-opw password
- Specify the owner password for the PDF file. Providing this
+ Specify the owner password for the PDF file. Providing this
will bypass all security restrictions.
-upw password
@@ -148,11 +144,11 @@ OPTIONS
Open xpdf in full-screen mode, useful for presentations.
-remote name
- Start/contact xpdf remote server with specified name (see the
+ Start/contact xpdf remote server with specified name (see the
REMOTE SERVER MODE section below).
-exec command
- Execute a command (see the COMMANDS section below) in an xpdf
+ Execute a command (see the COMMANDS section below) in an xpdf
remote server window (with -remote only).
-reload
@@ -162,7 +158,7 @@ OPTIONS
-quit Kill xpdf remote server (with -remote only).
- -cmd Print commands as they're executed (useful for debugging).
+ -cmd Print commands as they're executed (useful for debugging).
[config file: printCommands]
-q Don't print any messages or errors. [config file: errQuiet]
@@ -199,7 +195,7 @@ OPTIONS
tips on the toolbar buttons.
xpdf.fullScreenMatteColor
- Sets the matte color to be used in full-screen mode. The
+ Sets the matte color to be used in full-screen mode. The
default setting is "black".
CONTROLS
@@ -214,19 +210,19 @@ CONTROLS
Move backward or forward along the history path.
'Page' entry box
- Move to a specific page number. Click in the box to activate
+ Move to a specific page number. Click in the box to activate
it, type the page number, then hit return.
zoom popup menu
- Change the zoom factor (see the description of the -z option
+ Change the zoom factor (see the description of the -z option
above).
binoculars button
Find a text string.
print button
- Bring up a dialog for generating a PostScript file. The dialog
- has options to set the pages to be printed and the PostScript
+ Bring up a dialog for generating a PostScript file. The dialog
+ has options to set the pages to be printed and the PostScript
file name. The file name can be '-' for stdout or '|command' to
pipe the PostScript through a command, e.g., '|lpr'.
@@ -240,7 +236,6 @@ CONTROLS
'Quit' button
Quit xpdf.
-
Menu
Pressing the right mouse button will post a popup menu with the follow-
ing commands:
@@ -249,11 +244,11 @@ CONTROLS
Open a new PDF file via a file requester.
Open in new window...
- Create a new window and open a new PDF file via a file
+ Create a new window and open a new PDF file via a file
requester.
- Reload Reload the current PDF file. Note that Xpdf will reload the
- file automatically (on a page change or redraw) if it has
+ Reload Reload the current PDF file. Note that Xpdf will reload the
+ file automatically (on a page change or redraw) if it has
changed since it was last loaded.
Save as...
@@ -266,50 +261,45 @@ CONTROLS
Rotate the page 90 degrees counterclockwise.
Rotate clockwise
- Rotate the page 90 degrees clockwise. The two rotate commands
- are intended primarily for PDF files where the rotation isn't
+ Rotate the page 90 degrees clockwise. The two rotate commands
+ are intended primarily for PDF files where the rotation isn't
correctly specified in the file.
Zoom to selection
Zoom in to the currently selected rectangle.
- Close Close the current window. If this is the only open window, the
+ Close Close the current window. If this is the only open window, the
document is closed, but the window is left open (i.e., this menu
command won't quit xpdf).
Quit Quit xpdf.
-
Outline
- If the PDF contains an outline (a.k.a., bookmarks), there will be an
- outline pane on the left side of the window. The width of the outline
+ If the PDF contains an outline (a.k.a., bookmarks), there will be an
+ outline pane on the left side of the window. The width of the outline
pane is adjustable with a vertical split bar via the knob near its bot-
tom end.
-
Text selection
- Dragging the mouse with the left button held down will highlight an
- arbitrary rectangle. Any text inside this rectangle will be copied to
+ Dragging the mouse with the left button held down will highlight an
+ arbitrary rectangle. Any text inside this rectangle will be copied to
the X selection buffer.
-
Links
Clicking on a hyperlink will jump to the link's destination. A link to
- another PDF document will make xpdf load that document. A 'launch'
- link to an executable program will display a dialog, and if you click
+ another PDF document will make xpdf load that document. A 'launch'
+ link to an executable program will display a dialog, and if you click
'ok', execute the program. URL links call an external command (see the
WEB BROWSERS section below).
-
Panning
Dragging the mouse with the middle button held down pans the window.
-
Key bindings
o Open a new PDF file via a file requester.
- r Reload the current PDF file. Note that Xpdf will reload the
- file automatically (on a page change or redraw) if it has
+ r Reload the current PDF file. Note that Xpdf will reload the
+ file automatically (on a page change or redraw) if it has
changed since it was last loaded.
control-L
@@ -327,14 +317,14 @@ CONTROLS
control-P
Print.
- n Move to the next page. Scrolls to the top of the page, unless
+ n Move to the next page. Scrolls to the top of the page, unless
scroll lock is turned on.
- p Move to the previous page. Scrolls to the top of the page,
+ p Move to the previous page. Scrolls to the top of the page,
unless scroll lock is turned on.
<Space> or <PageDown> or <Next>
- Scroll down on the current page; if already at bottom, move to
+ Scroll down on the current page; if already at bottom, move to
next page.
<Backspace> or <Delete> or <PageUp> or <Previous>
@@ -374,9 +364,9 @@ CONTROLS
q Quit xpdf.
WEB BROWSERS
- If you want to run xpdf automatically from netscape or mosaic (and
- probably other browsers) when you click on a link to a PDF file, you
- need to edit (or create) the files .mime.types and .mailcap in your
+ If you want to run xpdf automatically from netscape or mosaic (and
+ probably other browsers) when you click on a link to a PDF file, you
+ need to edit (or create) the files .mime.types and .mailcap in your
home directory. In .mime.types add the line:
application/pdf pdf
@@ -388,17 +378,17 @@ WEB BROWSERS
Make sure that xpdf is on your executable search path.
- When you click on a URL link in a PDF file, xpdf will execute the com-
- mand specified by the urlCommand config file option, replacing an
- occurrence of '%s' with the URL. For example, to call netscape with
+ When you click on a URL link in a PDF file, xpdf will execute the com-
+ mand specified by the urlCommand config file option, replacing an
+ occurrence of '%s' with the URL. For example, to call netscape with
the URL, add this line to your config file:
urlCommand "netscape -remote 'openURL(%s)'"
COMMANDS
Xpdf's key and mouse bindings are user-configurable, using the bind and
- unbind options in the config file (see xpdfrc(5)). The bind command
- allows you to bind a key or mouse button to a sequence of one or more
+ unbind options in the config file (see xpdfrc(5)). The bind command
+ allows you to bind a key or mouse button to a sequence of one or more
commands.
Available Commands
@@ -418,14 +408,14 @@ COMMANDS
Go to the last page in the PDF file.
gotoLastPageNoScroll
- Go to the last page in the PDF file, with the current relative
+ Go to the last page in the PDF file, with the current relative
scroll position.
nextPage
Go to the next page.
nextPageNoScroll
- Go to the next page, with the current relative scroll position.
+ Go to the next page, with the current relative scroll position.
prevPage
Go to the previous page.
@@ -459,19 +449,19 @@ COMMANDS
Scroll down by n pixels, moving to the next page if appropriate.
scrollToTopEdge
- Scroll to the top edge of the current page, with no horizontal
+ Scroll to the top edge of the current page, with no horizontal
movement.
scrollToBottomEdge
- Scroll to the bottom edge of the current page, with no horizon-
+ Scroll to the bottom edge of the current page, with no horizon-
tal movement.
scrollToLeftEdge
- Scroll to the left edge of the current page, with no vertical
+ Scroll to the left edge of the current page, with no vertical
movement.
scrollToRightEdge
- Scroll to the right edge of the current page, with no vertical
+ Scroll to the right edge of the current page, with no vertical
movement.
scrollToTopLeft
@@ -507,7 +497,7 @@ COMMANDS
Rotate the page 90 degrees counterclockwise.
setSelection(pg,ulx,uly,lrx,lry)
- Set the selection to the specified coordinates on the specified
+ Set the selection to the specified coordinates on the specified
page.
continuousMode
@@ -540,7 +530,7 @@ COMMANDS
Open a specified PDF file in a new window.
openFileAtDest(file,dest)
- Open a specified PDF file in this window and go to a named des-
+ Open a specified PDF file in this window and go to a named des-
tination.
openFileAtDestInNewWin(file,dest)
@@ -554,10 +544,15 @@ COMMANDS
raise Raise the window to the front.
closeWindow
- Close the window.
+ Close the window. If this was the last open window, clear the
+ window, but don't quit from Xpdf.
+
+ closeWindowOrQuit
+ Close the window. If this was the last open window, quit from
+ Xpdf.
run(external-command-string)
- Run an external command. The following escapes are allowed in
+ Run an external command. The following escapes are allowed in
the command string:
%f => PDF file name (or an empty string if no
@@ -582,6 +577,11 @@ COMMANDS
%k => y coordinate of the mouse pointer
%% => %
+ The external command string will often contain spaces, so the
+ whole command must be quoted in the xpdfrc file:
+
+ bind x "run(ls -l)"
+
openOutline
Open the outline pane.
@@ -703,7 +703,7 @@ COMMANDS
bind w any zoomFitWidth
bind alt-f any toggleFullScreenMode
bind ctrl-l any redraw
- bind ctrl-w any closeWindow
+ bind ctrl-w any closeWindowOrQuit
bind ? any about
bind q any quit
bind Q any quit
@@ -755,14 +755,14 @@ EXIT CODES
99 Other error.
AUTHOR
- The xpdf software and documentation are copyright 1996-2011 Glyph &
+ The xpdf software and documentation are copyright 1996-2014 Glyph &
Cog, LLC.
SEE ALSO
- pdftops(1), pdftotext(1), pdfinfo(1), pdffonts(1), pdfdetach(1),
- pdftoppm(1), pdfimages(1), xpdfrc(5)
+ pdftops(1), pdftotext(1), pdftohtml(1), pdfinfo(1), pdffonts(1), pdfde-
+ tach(1), pdftoppm(1), pdftopng(1), pdfimages(1), xpdfrc(5)
http://www.foolabs.com/xpdf/
- 15 August 2011 xpdf(1)
+ 28 May 2014 xpdf(1)
diff --git a/doc/xpdf.hlp b/doc/xpdf.hlp
deleted file mode 100644
index 9696ec7..0000000
--- a/doc/xpdf.hlp
+++ /dev/null
@@ -1,782 +0,0 @@
-! Generated automatically by mantohlp
-1 xpdf
-
- xpdf - Portable Document Format (PDF) file viewer for X (version 3.03)
-
- xpdf [options] [PDF-file [page | +dest]]
-
- Xpdf is a viewer for Portable Document Format (PDF) files. (These are
- also sometimes also called 'Acrobat' files, from the name of Adobe's
- PDF software.) Xpdf runs under the X Window System on UNIX, VMS, and
- OS/2.
-
- To run xpdf, simply type:
-
- xpdf file.pdf
-
- where file.pdf is your PDF file. The file name can be followed by a
- number specifying the page which should be displayed first, e.g.:
-
- xpdf file.pdf 18
-
- You can also give a named destination, prefixed with '+' in place of
- the page number. (This is only useful with PDF files that provide
- named destination targets.)
-
- You can also start xpdf without opening any files:
-
- xpdf
-
- ()
-
-2 ONFIGURATION_FIL
-
- Xpdf reads a configuration file at startup. It first tries to find the
- user's private config file, ~/.xpdfrc. If that doesn't exist, it looks
- for a system-wide config file, typically /usr/local/etc/xpdfrc (but
- this location can be changed when xpdf is built). See the xpdfrc(5)
- man page for details.
-
- ()
-
-2 OPTIONS
-
- Many of the following options can be set with configuration file com-
- mands or X resources. These are listed in square brackets with the
- description of the corresponding command line option.
-
- -g geometry
- Set the initial window geometry. (-geometry is equivalent.) [X
- resource: xpdf.geometry]
-
- -title title
- Set the window title. By default, the title will be "xpdf:
- foo.pdf". [X resource: xpdf.title]
-
- -cmap Install a private colormap. This is ignored on TrueColor visu-
- als. [X resource: xpdf.installCmap]
-
- -rgb number
- Set the size of largest RGB cube xpdf will try to allocate. The
- default is 5 (for a 5x5x5 cube); set to a smaller number to con-
- serve color table entries. This is ignored with private col-
- ormaps and on TrueColor visuals. [X resource: xpdf.rgbCubeSize]
-
- -rv Set reverse video mode. This reverses the colors of everything
- except images. It may not always produce great results for PDF
- files which do weird things with color. This also causes the
- paper color to default to black. [X resource: xpdf.reverseV-
- ideo]
-
- -papercolor color
- Set the "paper color", i.e., the background of the page display.
- This will not work too well with PDF files that do things like
- filling in white behind the text. [X resource: xpdf.paperColor]
-
- -mattecolor color
- Set the matte color, i.e., the color used for background outside
- the actual page area. (There is a separate setting,
- xpdf.fullScreenMatteColor, for full-screen mode.) [X resource:
- xpdf.matteColor]
-
- -z zoom
- Set the initial zoom factor. A number specifies a zoom percent-
- age, where 100 means 72 dpi. You may also specify 'page', to
- fit the page to the window size, or 'width', to fit the page
- width to the window width. [config file: initialZoom; or X
- resource: xpdf.initialZoom]
-
- -cont Start in continuous view mode, i.e., with one vertical scroll
- bar for the whole document. [config file: continuousView]
-
- -t1lib yes | no
- Enable or disable t1lib (a Type 1 font rasterizer). This
- defaults to "yes". [config file: enableT1lib]
-
- -freetype yes | no
- Enable or disable FreeType (a TrueType / Type 1 font raster-
- izer). This defaults to "yes". [config file: enableFreeType]
-
- -aa yes | no
- Enable or disable font anti-aliasing. This defaults to "yes".
- [config file: antialias]
-
- -aaVector yes | no
- Enable or disable vector anti-aliasing. This defaults to "yes".
- [config file: vectorAntialias]
-
- -ps PS-file
- Set the default file name for PostScript output (i.e., the name
- which will appear in the print dialog). This can also be of the
- form '|command' to pipe the PostScript through a command. [con-
- fig file: psFile]
-
- -paper size
- Set the paper size to one of "letter", "legal", "A4", or "A3".
- This can also be set to "match", which will set the paper size
- to match the size specified in the PDF file. [config file:
- psPaperSize]
-
- -paperw size
- Set the paper width, in points. [config file: psPaperSize]
-
- -paperh size
- Set the paper height, in points. [config file: psPaperSize]
-
- -level1
- Generate Level 1 PostScript. The resulting PostScript files
- will be significantly larger (if they contain images), but will
- print on Level 1 printers. This also converts all images to
- black and white. [config file: psLevel]
-
- -enc encoding-name
- Sets the encoding to use for text output. The encoding-name
- must be defined with the unicodeMap command (see xpdfrc(5)).
- This defaults to "Latin1" (which is a built-in encoding). [con-
- fig file: textEncoding]
-
- -eol unix | dos | mac
- Sets the end-of-line convention to use for text output. [config
- file: textEOL]
-
- -opw password
- Specify the owner password for the PDF file. Providing this
- will bypass all security restrictions.
-
- -upw password
- Specify the user password for the PDF file.
-
- -fullscreen
- Open xpdf in full-screen mode, useful for presentations.
-
- -remote name
- Start/contact xpdf remote server with specified name (see the
- REMOTE SERVER MODE section below).
-
- -exec command
- Execute a command (see the COMMANDS section below) in an xpdf
- remote server window (with -remote only).
-
- -reload
- Reload xpdf remote server window (with -remote only).
-
- -raise Raise xpdf remote server window (with -remote only).
-
- -quit Kill xpdf remote server (with -remote only).
-
- -cmd Print commands as they're executed (useful for debugging).
- [config file: printCommands]
-
- -q Don't print any messages or errors. [config file: errQuiet]
-
- -cfg config-file
- Read config-file in place of ~/.xpdfrc or the system-wide config
- file.
-
- -v Print copyright and version information.
-
- -h Print usage information. (-help and --help are equivalent.)
-
- Several other standard X options and resources will work as expected:
-
- -display display
- [X resource: xpdf.display]
-
- -fg color
- (-foreground is equivalent.) [X resource: xpdf*Foreground]
-
- -bg color
- (-background is equivalent.) [X resource: xpdf*Background]
-
- -font font
- (-fn is equivalent.) [X resource: xpdf*fontList]
-
- The color and font options only affect the user interface elements, not
- the PDF display (the 'paper').
-
- The following X resources do not have command line option equivalents:
-
- xpdf.toolTipEnable
- Enables (if set to true) or disables (if set to false) the tool-
- tips on the toolbar buttons.
-
- xpdf.fullScreenMatteColor
- Sets the matte color to be used in full-screen mode. The
- default setting is "black".
-
- ()
-
-2 CONTROLS
-
- On-screen controls, at the bottom of the xpdf window
- left/right arrow buttons
- Move to the previous/next page.
-
- double left/right arrow buttons
- Move backward or forward by ten pages.
-
- dashed left/right arrow buttons
- Move backward or forward along the history path.
-
- 'Page' entry box
- Move to a specific page number. Click in the box to activate
- it, type the page number, then hit return.
-
- zoom popup menu
- Change the zoom factor (see the description of the -z option
- above).
-
- binoculars button
- Find a text string.
-
- print button
- Bring up a dialog for generating a PostScript file. The dialog
- has options to set the pages to be printed and the PostScript
- file name. The file name can be '-' for stdout or '|command' to
- pipe the PostScript through a command, e.g., '|lpr'.
-
- '?' button
- Bring up the 'about xpdf' window.
-
- link info
- The space between the '?' and 'Quit' buttons is used to show the
- URL or external file name when the mouse is over a link.
-
- 'Quit' button
- Quit xpdf.
-
- Menu
- Pressing the right mouse button will post a popup menu with the follow-
- ing commands:
-
- Open...
- Open a new PDF file via a file requester.
-
- Open in new window...
- Create a new window and open a new PDF file via a file
- requester.
-
- Reload Reload the current PDF file. Note that Xpdf will reload the
- file automatically (on a page change or redraw) if it has
- changed since it was last loaded.
-
- Save as...
- Save the current file via a file requester.
-
- Continuous view
- Toggles between single page and continuous view modes.
-
- Rotate counterclockwise
- Rotate the page 90 degrees counterclockwise.
-
- Rotate clockwise
- Rotate the page 90 degrees clockwise. The two rotate commands
- are intended primarily for PDF files where the rotation isn't
- correctly specified in the file.
-
- Zoom to selection
- Zoom in to the currently selected rectangle.
-
- Close Close the current window. If this is the only open window, the
- document is closed, but the window is left open (i.e., this menu
- command won't quit xpdf).
-
- Quit Quit xpdf.
-
- Outline
- If the PDF contains an outline (a.k.a., bookmarks), there will be an
- outline pane on the left side of the window. The width of the outline
- pane is adjustable with a vertical split bar via the knob near its bot-
- tom end.
-
- Text selection
- Dragging the mouse with the left button held down will highlight an
- arbitrary rectangle. Any text inside this rectangle will be copied to
- the X selection buffer.
-
- Links
- Clicking on a hyperlink will jump to the link's destination. A link to
- another PDF document will make xpdf load that document. A 'launch'
- link to an executable program will display a dialog, and if you click
- 'ok', execute the program. URL links call an external command (see the
- WEB BROWSERS section below).
-
- Panning
- Dragging the mouse with the middle button held down pans the window.
-
- Key bindings
- o Open a new PDF file via a file requester.
-
- r Reload the current PDF file. Note that Xpdf will reload the
- file automatically (on a page change or redraw) if it has
- changed since it was last loaded.
-
- control-L
- Redraw the current page.
-
- control-W
- Close the current window.
-
- f or control-F
- Find a text string.
-
- control-G
- Find next occurrence.
-
- control-P
- Print.
-
- n Move to the next page. Scrolls to the top of the page, unless
- scroll lock is turned on.
-
- p Move to the previous page. Scrolls to the top of the page,
- unless scroll lock is turned on.
-
- <Space> or <PageDown> or <Next>
- Scroll down on the current page; if already at bottom, move to
- next page.
-
- <Backspace> or <Delete> or <PageUp> or <Previous>
- Scroll up on the current page; if already at top, move to previ-
- ous page.
-
- v Move forward along the history path.
-
- b Move backward along the history path.
-
- <Home> Scroll to top of current page.
-
- <End> Scroll to bottom of current page.
-
- control-<Home>
- Scroll to first page of document.
-
- control-<End>
- Scroll to last page of document.
-
- arrows Scroll the current page.
-
- g Activate the page number text field ("goto page").
-
- 0 Set the zoom factor to 125%.
-
- + Zoom in (increment the zoom factor by 1).
-
- - Zoom out (decrement the zoom factor by 1).
-
- z Set the zoom factor to 'page' (fit page to window).
-
- w Set the zoom factor to 'width' (fit page width to window).
-
- alt-F Toggle full-screen mode.
-
- q Quit xpdf.
-
- ()
-
-2 WEB_BROWSERS
-
- If you want to run xpdf automatically from netscape or mosaic (and
- probably other browsers) when you click on a link to a PDF file, you
- need to edit (or create) the files .mime.types and .mailcap in your
- home directory. In .mime.types add the line:
-
- application/pdf pdf
-
- In .mailcap add the lines:
-
- # Use xpdf to view PDF files.
- application/pdf; xpdf -q %s
-
- Make sure that xpdf is on your executable search path.
-
- When you click on a URL link in a PDF file, xpdf will execute the com-
- mand specified by the urlCommand config file option, replacing an
- occurrence of '%s' with the URL. For example, to call netscape with
- the URL, add this line to your config file:
-
- urlCommand "netscape -remote 'openURL(%s)'"
-
- ()
-
-2 COMMANDS
-
- Xpdf's key and mouse bindings are user-configurable, using the bind and
- unbind options in the config file (see xpdfrc(5)). The bind command
- allows you to bind a key or mouse button to a sequence of one or more
- commands.
-
- Available Commands
- The following commands are supported:
-
- gotoPage(page)
- Go to the specified page.
-
- gotoPageNoScroll(page)
- Go to the specified page, with the current relative scroll posi-
- tion.
-
- gotoDest(dest)
- Go to a named destination.
-
- gotoLastPage
- Go to the last page in the PDF file.
-
- gotoLastPageNoScroll
- Go to the last page in the PDF file, with the current relative
- scroll position.
-
- nextPage
- Go to the next page.
-
- nextPageNoScroll
- Go to the next page, with the current relative scroll position.
-
- prevPage
- Go to the previous page.
-
- prevPageNoScroll
- Go to the previous page, with the current relative scroll posi-
- tion.
-
- pageUp Scroll up by one screenful.
-
- pageDown
- Scroll down by one screenful.
-
- scrollLeft(n)
- Scroll left by n pixels.
-
- scrollRight(n)
- Scroll right by n pixels.
-
- scrollUp(n)
- Scroll up by n pixels.
-
- scrollDown(n)
- Scroll down by n pixels.
-
- scrollUpPrevPage(n)
- Scroll up by n pixels, moving to the previous page if appropri-
- ate.
-
- scrollDownPrevPage(n)
- Scroll down by n pixels, moving to the next page if appropriate.
-
- scrollToTopEdge
- Scroll to the top edge of the current page, with no horizontal
- movement.
-
- scrollToBottomEdge
- Scroll to the bottom edge of the current page, with no horizon-
- tal movement.
-
- scrollToLeftEdge
- Scroll to the left edge of the current page, with no vertical
- movement.
-
- scrollToRightEdge
- Scroll to the right edge of the current page, with no vertical
- movement.
-
- scrollToTopLeft
- Scroll to the top-left corner of the current page.
-
- scrollToBottomRight
- Scroll to the bottom-right corner of the current page.
-
- goForward
- Move forward along the history path.
-
- goBackward
- Move backward along the history path.
-
- zoomPercent(z)
- Set the zoom factor to z%.
-
- zoomFitPage
- Set the zoom factor to fit-page.
-
- zoomFitWidth
- Set the zoom factor to fit-width.
-
- zoomIn Zoom in - go to the next higher zoom factor.
-
- zoomOut
- Zoom out - go the next lower zoom factor.
-
- rotateCW
- Rotate the page 90 degrees clockwise.
-
- rotateCCW
- Rotate the page 90 degrees counterclockwise.
-
- setSelection(pg,ulx,uly,lrx,lry)
- Set the selection to the specified coordinates on the specified
- page.
-
- continuousMode
- Go to continuous view mode.
-
- singlePageMode
- Go to single-page view mode.
-
- toggleContinuousMode
- Toggle between continuous and single page view modes.
-
- fullScreenMode
- Go to full-screen mode.
-
- windowMode
- Go to window (non-full-screen) mode.
-
- toggleFullScreenMode
- Toggle between full-screen and window modes.
-
- open Open a PDF file in this window, using the open dialog.
-
- openInNewWin
- Open a PDF file in a new window, using the open dialog.
-
- openFile(file)
- Open a specified PDF file in this window.
-
- openFileInNewWin(file)
- Open a specified PDF file in a new window.
-
- openFileAtDest(file,dest)
- Open a specified PDF file in this window and go to a named des-
- tination.
-
- openFileAtDestInNewWin(file,dest)
- Open a specified PDF file in a new window and go to a named des-
- tination.
-
- reload Reload the current PDF file.
-
- redraw Redraw the window.
-
- raise Raise the window to the front.
-
- closeWindow
- Close the window.
-
- run(external-command-string)
- Run an external command. The following escapes are allowed in
- the command string:
-
- %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)
- %p => current page number (or an empty string if
- no file is open)
- %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)
- %i => page containing the mouse pointer
- %j => x coordinate of the mouse pointer
- %k => y coordinate of the mouse pointer
- %% => %
-
- openOutline
- Open the outline pane.
-
- closeOutline
- Close the outline pane.
-
- toggleOutline
- Toggle the outline pane between open and closed.
-
- scrollOutlineDown(n)
- Scroll the outline down by n increments.
-
- scrollOutlineUp(n)
- Scroll the outline up by n increments.
-
- focusToDocWin
- Set the keyboard focus to the main document window.
-
- focusToPageNum
- Set the keyboard focus to the page number text box.
-
- find Open the 'find' dialog.
-
- findNext
- Finds the next occurrence of the search string (no dialog).
-
- print Open the 'print' dialog.
-
- about Open the 'about' dialog.
-
- quit Quit from xpdf.
-
- The following commands depend on the current mouse position:
-
- startSelection
- Start a selection, which will be extended as the mouse moves.
-
- endSelection
- End a selection.
-
- startPan
- Start a pan, which will scroll the document as the mouse moves
-
- endPan End a pan.
-
- postPopupMenu
- Display the popup menu.
-
- followLink
- Follow a hyperlink (does nothing if the mouse is not over a
- link).
-
- followLinkInNewWin
- Follow a hyperlink, opening PDF files in a new window (does
- nothing if the mouse is not over a link). For links to non-PDF
- files, this command is identical to followLink.
-
- followLinkNoSel
- Same as followLink, but does nothing if there is a non-empty
- selection. (This is useful as a mouse button binding.)
-
- followLinkInNewWinNoSel
- Same as followLinkInNewWin, but does nothing if there is a non-
- empty selection. (This is useful as a mouse button binding.)
-
- Default Bindings
- The default mouse bindings are as follows:
-
- 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)
-
- The default key bindings are as follows:
-
- 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
-
- Previous versions of xpdf included a "viKeys" X resource. It is no
- longer available, but the following bindings are equivalent:
-
- bind h any scrollLeft(16)
- bind l any scrollRight(16)
- bind k any scrollUp(16)
- bind j any scrollDown(16)
-
- ()
-
-2 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:
-
- xpdf -remote myServer file.pdf
-
- If there is currently no xpdf running in server mode with the name
- 'myServer', a new xpdf window will be opened. If another command:
-
- xpdf -remote myServer another.pdf 9
-
- is issued, a new copy of xpdf will not be started. Instead, the first
- xpdf (the server) will load another.pdf and display page nine. If the
- file name is the same:
-
- xpdf -remote myServer another.pdf 4
-
- the xpdf server will simply display the specified page.
-
- The -raise option tells the server to raise its window; it can be spec-
- ified with or without a file name and page number.
-
- The -quit option tells the server to close its window and exit.
-
- ()
-
-2 XIT_CODE
-
- The Xpdf tools use the following exit codes:
-
- 0 No error.
-
- 1 Error opening a PDF file.
-
- 2 Error opening an output file.
-
- 3 Error related to PDF permissions.
-
- 99 Other error.
-
- ()
-
-2 AUTHOR
-
- The xpdf software and documentation are copyright 1996-2011 Glyph &
- Cog, LLC.
-
- ()
-
-2 SEE_ALSO
-
- pdftops(1), pdftotext(1), pdfinfo(1), pdffonts(1), pdfdetach(1),
- pdftoppm(1), pdfimages(1), xpdfrc(5)
- http://www.foolabs.com/xpdf/
-
- ()
-
diff --git a/doc/xpdfrc.5 b/doc/xpdfrc.5
index 676ad49..afb8d95 100644
--- a/doc/xpdfrc.5
+++ b/doc/xpdfrc.5
@@ -1,7 +1,7 @@
-.\" Copyright 2002-2011 Glyph & Cog, LLC
-.TH xpdfrc 5 "15 August 2011"
+.\" Copyright 2002-2014 Glyph & Cog, LLC
+.TH xpdfrc 5 "28 May 2014"
.SH NAME
-xpdfrc \- configuration file for Xpdf tools (version 3.03)
+xpdfrc \- configuration file for Xpdf tools (version 3.04)
.SH DESCRIPTION
All of the Xpdf tools read a single configuration file. If you have a
.I .xpdfrc
@@ -17,6 +17,9 @@ The xpdfrc file consists of a series of configuration options, one
per line. Blank lines and lines starting with a \'#' (comments) are
ignored.
.PP
+Arguments may be quoted, using "double-quote" characters, e.g., for
+file names that contain spaces.
+.PP
The following sections list all of the configuration options, sorted
into functional groups. There is an examples section at the end.
.SH INCLUDE FILES
@@ -259,6 +262,10 @@ If set to "yes", PostScript output is cropped to the CropBox specified
in the PDF file; otherwise no cropping is done. This defaults to
"yes".
.TP
+.BR psUseCropBoxAsPage " yes | no"
+If set to "yes", PostScript output treats the CropBox as the page size.
+By default, this is "no", and the MediaBox is used as the page size.
+.TP
.BR psExpandSmaller " yes | no"
If set to "yes", PDF pages smaller than the PostScript imageable area
are expanded to fill the imageable area. Otherwise, no scalling is
@@ -299,12 +306,23 @@ the Xpdf tools were compiled with OPI support. This defaults to "no".
If set to "yes", the ASCIIHexEncode filter will be used instead of
ASCII85Encode for binary data. This defaults to "no".
.TP
+.BR psLZW " yes | no"
+If set to "yes", the LZWEncode filter will be used for lossless
+compression in PostScript output; if set to "no", the RunLengthEncode
+filter will be used instead. LZW generates better compression
+(smaller PS files), but may not be supported by some printers. This
+defaults to "yes".
+.TP
.BR psUncompressPreloadedImages " yes | no"
If set to "yes", all preloaded images in PS files will uncompressed.
If set to "no", the original compressed images will be used when
possible. The "yes" setting is useful to work around certain buggy
PostScript interpreters. This defaults to "no".
.TP
+.BR psMinLineWidth " float"
+Set the minimum line width, in points, for PostScript output. The
+default value is 0 (no minimum).
+.TP
.BR psRasterResolution " float"
Set the resolution (in dpi) for rasterized pages in PostScript output.
(Pdftops will rasterize pages which use transparency.) This defaults
@@ -314,6 +332,11 @@ to 300.
If set to "yes", rasterized pages in PS files will be monochrome
(8-bit gray) instead of color. This defaults to "no".
.TP
+.BR psRasterSliceSize " pixels"
+When rasterizing pages, pdftops splits the page into horizontal
+"slices", to limit memory usage. This option sets the maximum slice
+size, in pixels. This defaults to 20000000 (20 million).
+.TP
.BR psAlwaysRasterize " yes | no"
If set to "yes", all PostScript output will be rasterized. This
defaults to "no".
@@ -359,7 +382,7 @@ If set to "yes", text extraction will keep all characters. If set to
"no", text extraction will discard tiny (smaller than 3 point)
characters after the first 50000 per page, avoiding extremely slow run
times for PDF files that use special fonts to do shading or
-cross-hatching. This defaults to "no".
+cross-hatching. This defaults to "yes".
.SH MISCELLANEOUS SETTINGS
.TP
.BR initialZoom " \fIpercentage\fR | page | width"
@@ -373,12 +396,6 @@ If set to "yes", xpdf will start in continuous view mode, i.e., with
one vertical screoll bar for the whole document. This defaults to
"no".
.TP
-.BR enableT1lib " yes | no"
-Enables or disables use of t1lib (a Type 1 font rasterizer). This is
-only relevant if the Xpdf tools were built with t1lib support.
-("enableT1lib" replaces the old "t1libControl" option.) This option
-defaults to "yes".
-.TP
.BR enableFreeType " yes | no"
Enables or disables use of FreeType (a TrueType / Type 1 font
rasterizer). This is only relevant if the Xpdf tools were built with
@@ -499,6 +516,21 @@ setting mapNumericCharNames to "no" is unnecessary.) In some cases,
this leads to usable text, and in other cases it leads to gibberish --
there is no way for Xpdf to tell. This defaults to "no".
.TP
+.BI mapExtTrueTypeFontsViaUnicode " yes | no"
+When rasterizing text using an external TrueType font, there are two
+options for handling character codes. If
+mapExtTrueTypeFontsViaUnicode is set to "yes", Xpdf will use the font
+encoding/ToUnicode info to map character codes to Unicode, and then
+use the font's Unicode cmap to map Unicode to GIDs. If
+mapExtTrueTypeFontsViaUnicode is set to "no", Xpdf will assume the
+character codes are GIDs (i.e., use an identity mapping). This
+defaults to "yes".
+.TP
+.BI enableXFA " yes | no"
+If set to "yes", an XFA form (if present) will be rendered in place of
+an AcroForm. If "no", an XFA form will never be rendered. This
+defaults to "yes".
+.TP
.BI bind " modifiers-key context command ..."
Add a key or mouse button binding.
.I Modifiers
@@ -633,7 +665,6 @@ textEncoding UTF-8
textEOL unix
# misc options
-enableT1lib yes
enableFreeType yes
launchCommand viewer-script
urlCommand "netscape \-remote 'openURL(%s)'"
@@ -649,16 +680,18 @@ Depending on build options, it may be placed elsewhere.
This is the user's configuration file. If it exists, it will be read
in place of the system-wide file.
.SH AUTHOR
-The Xpdf software and documentation are copyright 1996-2011 Glyph &
+The Xpdf software and documentation are copyright 1996-2014 Glyph &
Cog, LLC.
.SH "SEE ALSO"
.BR xpdf (1),
.BR pdftops (1),
.BR pdftotext (1),
+.BR pdftohtml (1),
.BR pdfinfo (1),
.BR pdffonts (1),
.BR pdfdetach (1),
.BR pdftoppm (1),
+.BR pdftopng (1),
.BR pdfimages (1)
.br
.B http://www.foolabs.com/xpdf/
diff --git a/doc/xpdfrc.cat b/doc/xpdfrc.cat
index db42866..b8faf8a 100644
--- a/doc/xpdfrc.cat
+++ b/doc/xpdfrc.cat
@@ -3,7 +3,7 @@ xpdfrc(5) xpdfrc(5)
NAME
- xpdfrc - configuration file for Xpdf tools (version 3.03)
+ xpdfrc - configuration file for Xpdf tools (version 3.04)
DESCRIPTION
All of the Xpdf tools read a single configuration file. If you have a
@@ -17,65 +17,68 @@ DESCRIPTION
line. Blank lines and lines starting with a '#' (comments) are
ignored.
- The following sections list all of the configuration options, sorted
+ Arguments may be quoted, using "double-quote" characters, e.g., for
+ file names that contain spaces.
+
+ The following sections list all of the configuration options, sorted
into functional groups. There is an examples section at the end.
INCLUDE FILES
include config-file
- Includes the specified config file. The effect of this is
- equivalent to inserting the contents of config-file directly
- into the parent config file in place of the include command.
+ Includes the specified config file. The effect of this is
+ equivalent to inserting the contents of config-file directly
+ into the parent config file in place of the include command.
Config files can be nested arbitrarily deeply.
CHARACTER MAPPING
nameToUnicode map-file
- Specifies a file with the mapping from character names to Uni-
- code. This is used to handle PDF fonts that have valid encod-
- ings but no ToUnicode entry. Each line of a nameToUnicode file
+ Specifies a file with the mapping from character names to Uni-
+ code. This is used to handle PDF fonts that have valid encod-
+ ings but no ToUnicode entry. Each line of a nameToUnicode file
looks like this:
hex-string name
- The hex-string is the Unicode (UCS-2) character index, and name
- is the corresponding character name. Multiple nameToUnicode
- files can be used; if a character name is given more than once,
- the code in the last specified file is used. There is a built-
- in default nameToUnicode table with all of Adobe's standard
+ The hex-string is the Unicode (UCS-2) character index, and name
+ is the corresponding character name. Multiple nameToUnicode
+ files can be used; if a character name is given more than once,
+ the code in the last specified file is used. There is a built-
+ in default nameToUnicode table with all of Adobe's standard
character names.
cidToUnicode registry-ordering map-file
Specifies the file with the mapping from character collection to
- Unicode. Each line of a cidToUnicode file represents one char-
+ Unicode. Each line of a cidToUnicode file represents one char-
acter:
hex-string
- The hex-string is the Unicode (UCS-2) index for that character.
- The first line maps CID 0, the second line CID 1, etc. File
- size is determined by size of the character collection. Only
+ The hex-string is the Unicode (UCS-2) index for that character.
+ The first line maps CID 0, the second line CID 1, etc. File
+ size is determined by size of the character collection. Only
one file is allowed per character collection; the last specified
file is used. There are no built-in cidToUnicode mappings.
unicodeToUnicode font-name-substring map-file
- This is used to work around PDF fonts which have incorrect Uni-
+ This is used to work around PDF fonts which have incorrect Uni-
code information. It specifies a file which maps from the given
- (incorrect) Unicode indexes to the correct ones. The mapping
- will be used for any font whose name contains font-name-sub-
- string. Each line of a unicodeToUnicode file represents one
+ (incorrect) Unicode indexes to the correct ones. The mapping
+ will be used for any font whose name contains font-name-sub-
+ string. Each line of a unicodeToUnicode file represents one
Unicode character:
in-hex out-hex1 out-hex2 ...
- The in-hex field is an input (incorrect) Unicode index, and the
- rest of the fields are one or more output (correct) Unicode
- indexes. Each occurrence of in-hex will be converted to the
+ The in-hex field is an input (incorrect) Unicode index, and the
+ rest of the fields are one or more output (correct) Unicode
+ indexes. Each occurrence of in-hex will be converted to the
specified output sequence.
unicodeMap encoding-name map-file
- Specifies the file with mapping from Unicode to encoding-name.
+ Specifies the file with mapping from Unicode to encoding-name.
These encodings are used for text output (see below). Each line
- of a unicodeMap file represents a range of one or more Unicode
- characters which maps linearly to a range in the output encod-
+ of a unicodeMap file represents a range of one or more Unicode
+ characters which maps linearly to a range in the output encod-
ing:
in-start-hex in-end-hex out-start-hex
@@ -84,149 +87,154 @@ CHARACTER MAPPING
in-hex out-hex
- The in-start-hex and in-end-hex fields (or the single in-hex
- field) specify the Unicode range. The out-start-hex field (or
- the out-hex field) specifies the start of the output encoding
- range. The length of the out-start-hex (or out-hex) string
+ The in-start-hex and in-end-hex fields (or the single in-hex
+ field) specify the Unicode range. The out-start-hex field (or
+ the out-hex field) specifies the start of the output encoding
+ range. The length of the out-start-hex (or out-hex) string
determines the length of the output characters (e.g., UTF-8 uses
- different numbers of bytes to represent characters in different
- ranges). Entries must be given in increasing Unicode order.
- Only one file is allowed per encoding; the last specified file
- is used. The Latin1, ASCII7, Symbol, ZapfDingbats, UTF-8, and
+ different numbers of bytes to represent characters in different
+ ranges). Entries must be given in increasing Unicode order.
+ Only one file is allowed per encoding; the last specified file
+ is used. The Latin1, ASCII7, Symbol, ZapfDingbats, UTF-8, and
UCS-2 encodings are predefined.
cMapDir registry-ordering dir
- Specifies a search directory, dir, for CMaps for the reg-
- istry-ordering character collection. There can be multiple
- directories for a particular collection. There are no default
+ Specifies a search directory, dir, for CMaps for the reg-
+ istry-ordering character collection. There can be multiple
+ directories for a particular collection. There are no default
CMap directories.
toUnicodeDir dir
- Specifies a search directory, dir, for ToUnicode CMaps. There
- can be multiple ToUnicode directories. There are no default
+ Specifies a search directory, dir, for ToUnicode CMaps. There
+ can be multiple ToUnicode directories. There are no default
ToUnicode directories.
GENERAL FONT CONFIGURATION
fontFile PDF-font-name font-file
- Maps a PDF font, PDF-font-name, to a font for display or Post-
- Script output. The font file, font-file, can be any type
- allowed in a PDF file. This command can be used for 8-bit or
+ Maps a PDF font, PDF-font-name, to a font for display or Post-
+ Script output. The font file, font-file, can be any type
+ allowed in a PDF file. This command can be used for 8-bit or
16-bit (CID) fonts.
fontDir dir
- Specifies a search directory for font files. There can be mul-
+ Specifies a search directory for font files. There can be mul-
tiple fontDir commands; all of the specified directories will be
- searched in order. The font files can be Type 1 (.pfa or .pfb)
+ searched in order. The font files can be Type 1 (.pfa or .pfb)
or TrueType (.ttf or .ttc); other files in the directory will be
- ignored. The font file name (not including the extension) must
- exactly match the PDF font name. This search is performed if
- the font name doesn't match any of the fonts declared with the
+ ignored. The font file name (not including the extension) must
+ exactly match the PDF font name. This search is performed if
+ the font name doesn't match any of the fonts declared with the
fontFile command. There are no default fontDir directories.
fontFileCC registry-ordering font-file
- Maps the registry-ordering character collection to a font for
- display or PostScript output. This mapping is used if the font
- name doesn't match any of the fonts declared with the fontFile,
+ Maps the registry-ordering character collection to a font for
+ display or PostScript output. This mapping is used if the font
+ name doesn't match any of the fonts declared with the fontFile,
fontDir, psResidentFont16, or psResidentFontCC commands.
POSTSCRIPT FONT CONFIGURATION
psFontPassthrough yes | no
If set to "yes", pass 8-bit font names through to the PostScript
- output without substitution. Fonts which are not embedded in
- the PDF file are expected to be available on the printer. This
+ output without substitution. Fonts which are not embedded in
+ the PDF file are expected to be available on the printer. This
defaults to "no".
psResidentFont PDF-font-name PS-font-name
When the 8-bit font PDF-font-name is used (without embedding) in
- a PDF file, it will be translated to the PostScript font
- PS-font-name, which is assumed to be resident in the printer.
- Typically, PDF-font-name and PS-font-name are the same. By
+ a PDF file, it will be translated to the PostScript font
+ PS-font-name, which is assumed to be resident in the printer.
+ Typically, PDF-font-name and PS-font-name are the same. By
default, only the Base-14 fonts are assumed to be resident.
psResidentFont16 PDF-font-name wMode PS-font-name encoding
When the 16-bit (CID) font PDF-font-name with writing mode wMode
is used (without embedding) in a PDF file, it will be translated
- to the PostScript font PS-font-name, which is assumbed to be
- resident in the printer. The writing mode must be either 'H'
- for horizontal or 'V' for vertical. The resident font is
- assumed to use the specified encoding (which must have been
+ to the PostScript font PS-font-name, which is assumbed to be
+ resident in the printer. The writing mode must be either 'H'
+ for horizontal or 'V' for vertical. The resident font is
+ assumed to use the specified encoding (which must have been
defined with the unicodeMap command).
psResidentFontCC registry-ordering wMode PS-font-name encoding
- When a 16-bit (CID) font using the registry-ordering character
+ When a 16-bit (CID) font using the registry-ordering character
collection and wMode writing mode is used (without embedding) in
- a PDF file, the PostScript font, PS-font-name, is substituted
- for it. The substituted font is assumbed to be resident in the
- printer. The writing mode must be either 'H' for horizontal or
+ a PDF file, the PostScript font, PS-font-name, is substituted
+ for it. The substituted font is assumbed to be resident in the
+ printer. The writing mode must be either 'H' for horizontal or
'V' for vertical. The resident font is assumed to use the spec-
ified encoding (which must have been defined with the unicodeMap
command).
psEmbedType1Fonts yes | no
- If set to "no", prevents embedding of Type 1 fonts in generated
+ If set to "no", prevents embedding of Type 1 fonts in generated
PostScript. This defaults to "yes".
psEmbedTrueTypeFonts yes | no
- If set to "no", prevents embedding of TrueType fonts in gener-
+ If set to "no", prevents embedding of TrueType fonts in gener-
ated PostScript. This defaults to "yes".
psEmbedCIDTrueTypeFonts yes | no
If set to "no", prevents embedding of CID TrueType fonts in gen-
erated PostScript. For Level 3 PostScript, this generates a CID
- font, for lower levels it generates a non-CID composite font.
+ font, for lower levels it generates a non-CID composite font.
This defaults to "yes".
psEmbedCIDPostScriptFonts yes | no
- If set to "no", prevents embedding of CID PostScript fonts in
- generated PostScript. For Level 3 PostScript, this generates a
- CID font, for lower levels it generates a non-CID composite
+ If set to "no", prevents embedding of CID PostScript fonts in
+ generated PostScript. For Level 3 PostScript, this generates a
+ CID font, for lower levels it generates a non-CID composite
font. This defaults to "yes".
POSTSCRIPT CONTROL
psPaperSize width(pts) height(pts)
Sets the paper size for PostScript output. The width and height
- parameters give the paper size in PostScript points (1 point =
+ parameters give the paper size in PostScript points (1 point =
1/72 inch).
psPaperSize letter | legal | A4 | A3 | match
- Sets the paper size for PostScript output to a standard size.
- The default paper size is set when xpdf and pdftops are built,
+ Sets the paper size for PostScript output to a standard size.
+ The default paper size is set when xpdf and pdftops are built,
typically to "letter" or "A4". This can also be set to "match",
which will set the paper size to match the size specified in the
PDF file.
psImageableArea llx lly urx ury
- Sets the imageable area for PostScript output. The four inte-
- gers are the coordinates of the lower-left and upper-right cor-
+ Sets the imageable area for PostScript output. The four inte-
+ gers are the coordinates of the lower-left and upper-right cor-
ners of the imageable region, specified in points (with the ori-
gin being the lower-left corner of the paper). This defaults to
- the full paper size; the psPaperSize option will reset the
+ the full paper size; the psPaperSize option will reset the
imageable area coordinates.
psCrop yes | no
- If set to "yes", PostScript output is cropped to the CropBox
- specified in the PDF file; otherwise no cropping is done. This
+ If set to "yes", PostScript output is cropped to the CropBox
+ specified in the PDF file; otherwise no cropping is done. This
defaults to "yes".
+ psUseCropBoxAsPage yes | no
+ If set to "yes", PostScript output treats the CropBox as the
+ page size. By default, this is "no", and the MediaBox is used
+ as the page size.
+
psExpandSmaller yes | no
If set to "yes", PDF pages smaller than the PostScript imageable
- area are expanded to fill the imageable area. Otherwise, no
+ area are expanded to fill the imageable area. Otherwise, no
scalling is done on smaller pages. This defaults to "no".
psShrinkLarger yes | no
- If set to yes, PDF pages larger than the PostScript imageable
- area are shrunk to fit the imageable area. Otherwise, no scal-
+ If set to yes, PDF pages larger than the PostScript imageable
+ area are shrunk to fit the imageable area. Otherwise, no scal-
ing is done on larger pages. This defaults to "yes".
psCenter yes | no
- If set to yes, PDF pages smaller than the PostScript imageable
- area (after any scaling) are centered in the imageable area.
- Otherwise, they are aligned at the lower-left corner of the
+ If set to yes, PDF pages smaller than the PostScript imageable
+ area (after any scaling) are centered in the imageable area.
+ Otherwise, they are aligned at the lower-left corner of the
imageable area. This defaults to "yes".
psDuplex yes | no
- If set to "yes", the generated PostScript will set the "Duplex"
- pagedevice entry. This tells duplex-capable printers to enable
+ If set to "yes", the generated PostScript will set the "Duplex"
+ pagedevice entry. This tells duplex-capable printers to enable
duplexing. This defaults to "no".
psLevel level1 | level1sep | level2 | level2sep | level3 | level3Sep
@@ -234,28 +242,39 @@ POSTSCRIPT CONTROL
"level2".
psPreload yes | no
- If set to "yes", PDF forms are converted to PS procedures, and
- image data is preloaded. This uses more memory in the Post-
+ If set to "yes", PDF forms are converted to PS procedures, and
+ image data is preloaded. This uses more memory in the Post-
Script interpreter, but generates significantly smaller PS files
in situations where, e.g., the same image is drawn on every page
of a long document. This defaults to "no".
psOPI yes | no
- If set to "yes", generates PostScript OPI comments for all
- images and forms which have OPI information. This option is
+ If set to "yes", generates PostScript OPI comments for all
+ images and forms which have OPI information. This option is
only available if the Xpdf tools were compiled with OPI support.
This defaults to "no".
psASCIIHex yes | no
- If set to "yes", the ASCIIHexEncode filter will be used instead
+ If set to "yes", the ASCIIHexEncode filter will be used instead
of ASCII85Encode for binary data. This defaults to "no".
+ psLZW yes | no
+ If set to "yes", the LZWEncode filter will be used for lossless
+ compression in PostScript output; if set to "no", the RunLength-
+ Encode filter will be used instead. LZW generates better com-
+ pression (smaller PS files), but may not be supported by some
+ printers. This defaults to "yes".
+
psUncompressPreloadedImages yes | no
- If set to "yes", all preloaded images in PS files will uncom-
+ If set to "yes", all preloaded images in PS files will uncom-
pressed. If set to "no", the original compressed images will be
- used when possible. The "yes" setting is useful to work around
+ used when possible. The "yes" setting is useful to work around
certain buggy PostScript interpreters. This defaults to "no".
+ psMinLineWidth float
+ Set the minimum line width, in points, for PostScript output.
+ The default value is 0 (no minimum).
+
psRasterResolution float
Set the resolution (in dpi) for rasterized pages in PostScript
output. (Pdftops will rasterize pages which use transparency.)
@@ -265,6 +284,11 @@ POSTSCRIPT CONTROL
If set to "yes", rasterized pages in PS files will be monochrome
(8-bit gray) instead of color. This defaults to "no".
+ psRasterSliceSize pixels
+ When rasterizing pages, pdftops splits the page into horizontal
+ "slices", to limit memory usage. This option sets the maximum
+ slice size, in pixels. This defaults to 20000000 (20 million).
+
psAlwaysRasterize yes | no
If set to "yes", all PostScript output will be rasterized. This
defaults to "no".
@@ -307,7 +331,7 @@ TEXT CONTROL
set to "no", text extraction will discard tiny (smaller than 3
point) characters after the first 50000 per page, avoiding
extremely slow run times for PDF files that use special fonts to
- do shading or cross-hatching. This defaults to "no".
+ do shading or cross-hatching. This defaults to "yes".
MISCELLANEOUS SETTINGS
initialZoom percentage | page | width
@@ -321,136 +345,145 @@ MISCELLANEOUS SETTINGS
with one vertical screoll bar for the whole document. This
defaults to "no".
- enableT1lib yes | no
- Enables or disables use of t1lib (a Type 1 font rasterizer).
- This is only relevant if the Xpdf tools were built with t1lib
- support. ("enableT1lib" replaces the old "t1libControl"
- option.) This option defaults to "yes".
-
enableFreeType yes | no
- Enables or disables use of FreeType (a TrueType / Type 1 font
+ Enables or disables use of FreeType (a TrueType / Type 1 font
rasterizer). This is only relevant if the Xpdf tools were built
with FreeType support. ("enableFreeType" replaces the old
"freetypeControl" option.) This option defaults to "yes".
enableFreeType yes | no
- Enables or disables use of FreeType (a TrueType / Type 1 font
+ Enables or disables use of FreeType (a TrueType / Type 1 font
rasterizer). This is only relevant if the Xpdf tools were built
with FreeType support. ("enableFreeType" replaces the old
"freetypeControl" option.) This option defaults to "yes".
disableFreeTypeHinting yes | no
- If this is set to "yes", FreeType hinting will be forced off.
+ If this is set to "yes", FreeType hinting will be forced off.
This option defaults to "no".
antialias yes | no
- Enables or disables font anti-aliasing in the PDF rasterizer.
+ Enables or disables font anti-aliasing in the PDF rasterizer.
This option affects all font rasterizers. ("antialias" replaces
the anti-aliasing control provided by the old "t1libControl" and
"freetypeControl" options.) This default to "yes".
vectorAntialias yes | no
- Enables or disables anti-aliasing of vector graphics in the PDF
+ Enables or disables anti-aliasing of vector graphics in the PDF
rasterizer. This defaults to "yes".
antialiasPrinting yes | no
- If this is "yes", bitmaps sent to the printer will be
- antialiased (according to the "antialias" and "vectorAntialias"
- settings). If this is "no", printed bitmaps will not be
+ If this is "yes", bitmaps sent to the printer will be
+ antialiased (according to the "antialias" and "vectorAntialias"
+ settings). If this is "no", printed bitmaps will not be
antialiased. This defaults to "no".
strokeAdjust yes | no
- Enables or disables stroke adjustment. Stroke adjustment moves
+ Enables or disables stroke adjustment. Stroke adjustment moves
horizontal and vertical lines by up to half a pixel to make them
- look "cleaner" when vector anti-aliasing is enabled. This
+ look "cleaner" when vector anti-aliasing is enabled. This
defaults to "yes".
screenType dispersed | clustered | stochasticClustered
- Sets the halftone screen type, which will be used when generat-
- ing a monochrome (1-bit) bitmap. The three options are dis-
- persed-dot dithering, clustered-dot dithering (with a round dot
- and 45-degree screen angle), and stochastic clustered-dot
- dithering. By default, "stochasticClustered" is used for reso-
+ Sets the halftone screen type, which will be used when generat-
+ ing a monochrome (1-bit) bitmap. The three options are dis-
+ persed-dot dithering, clustered-dot dithering (with a round dot
+ and 45-degree screen angle), and stochastic clustered-dot
+ dithering. By default, "stochasticClustered" is used for reso-
lutions of 300 dpi and higher, and "dispersed" is used for reso-
lutions lower then 300 dpi.
screenSize integer
- Sets the size of the (square) halftone screen threshold matrix.
- By default, this is 4 for dispersed-dot dithering, 10 for clus-
- tered-dot dithering, and 100 for stochastic clustered-dot
+ Sets the size of the (square) halftone screen threshold matrix.
+ By default, this is 4 for dispersed-dot dithering, 10 for clus-
+ tered-dot dithering, and 100 for stochastic clustered-dot
dithering.
screenDotRadius integer
- Sets the halftone screen dot radius. This is only used when
- screenType is set to stochasticClustered, and it defaults to 2.
- In clustered-dot mode, the dot radius is half of the screen
+ Sets the halftone screen dot radius. This is only used when
+ screenType is set to stochasticClustered, and it defaults to 2.
+ In clustered-dot mode, the dot radius is half of the screen
size. Dispersed-dot dithering doesn't have a dot radius.
screenGamma float
Sets the halftone screen gamma correction parameter. Gamma val-
- ues greater than 1 make the output brighter; gamma values less
+ ues greater than 1 make the output brighter; gamma values less
than 1 make it darker. The default value is 1.
screenBlackThreshold float
- When halftoning, all values below this threshold are forced to
+ When halftoning, all values below this threshold are forced to
solid black. This parameter is a floating point value between 0
(black) and 1 (white). The default value is 0.
screenWhiteThreshold float
- When halftoning, all values above this threshold are forced to
+ When halftoning, all values above this threshold are forced to
solid white. This parameter is a floating point value between 0
(black) and 1 (white). The default value is 1.
minLineWidth float
- Set the minimum line width, in device pixels. This affects the
- rasterizer only, not the PostScript converter (except when it
- uses rasterization to handle transparency). The default value
+ Set the minimum line width, in device pixels. This affects the
+ rasterizer only, not the PostScript converter (except when it
+ uses rasterization to handle transparency). The default value
is 0 (no minimum).
drawAnnotations yes | no
- If set to "no", annotations will not be drawn or printed. The
+ If set to "no", annotations will not be drawn or printed. The
default value is "yes".
overprintPreview yes | no
If set to "yes", generate overprint preview output, honoring the
- OP/op/OPM settings in the PDF file. Ignored for non-CMYK out-
+ OP/op/OPM settings in the PDF file. Ignored for non-CMYK out-
put. The default value is "no".
launchCommand command
- Sets the command executed when you click on a "launch"-type
- link. The intent is for the command to be a program/script
- which determines the file type and runs the appropriate viewer.
- The command line will consist of the file to be launched, fol-
- lowed by any parameters specified with the link. Do not use
- "%s" in "command". By default, this is unset, and Xpdf will
+ Sets the command executed when you click on a "launch"-type
+ link. The intent is for the command to be a program/script
+ which determines the file type and runs the appropriate viewer.
+ The command line will consist of the file to be launched, fol-
+ lowed by any parameters specified with the link. Do not use
+ "%s" in "command". By default, this is unset, and Xpdf will
simply try to execute the file (after prompting the user).
urlCommand command
- Sets the command executed when you click on a URL link. The
- string "%s" will be replaced with the URL. (See the example
+ Sets the command executed when you click on a URL link. The
+ string "%s" will be replaced with the URL. (See the example
below.) This has no default value.
movieCommand command
- Sets the command executed when you click on a movie annotation.
+ Sets the command executed when you click on a movie annotation.
The string "%s" will be replaced with the movie file name. This
has no default value.
mapNumericCharNames yes | no
- If set to "yes", the Xpdf tools will attempt to map various
+ If set to "yes", the Xpdf tools will attempt to map various
numeric character names sometimes used in font subsets. In some
- cases this leads to usable text, and in other cases it leads to
+ cases this leads to usable text, and in other cases it leads to
gibberish -- there is no way for Xpdf to tell. This defaults to
"yes".
mapUnknownCharNames yes | no
- If set to "yes", and mapNumericCharNames is set to "no", the
- Xpdf tools will apply a simple pass-through mapping (Unicode
- index = character code) for all unrecognized glyph names. (For
- CID fonts, setting mapNumericCharNames to "no" is unnecessary.)
- In some cases, this leads to usable text, and in other cases it
- leads to gibberish -- there is no way for Xpdf to tell. This
+ If set to "yes", and mapNumericCharNames is set to "no", the
+ Xpdf tools will apply a simple pass-through mapping (Unicode
+ index = character code) for all unrecognized glyph names. (For
+ CID fonts, setting mapNumericCharNames to "no" is unnecessary.)
+ In some cases, this leads to usable text, and in other cases it
+ leads to gibberish -- there is no way for Xpdf to tell. This
defaults to "no".
+ mapExtTrueTypeFontsViaUnicode yes | no
+ When rasterizing text using an external TrueType font, there are
+ two options for handling character codes. If mapExtTrueType-
+ FontsViaUnicode is set to "yes", Xpdf will use the font encod-
+ ing/ToUnicode info to map character codes to Unicode, and then
+ use the font's Unicode cmap to map Unicode to GIDs. If mapExt-
+ TrueTypeFontsViaUnicode is set to "no", Xpdf will assume the
+ character codes are GIDs (i.e., use an identity mapping). This
+ defaults to "yes".
+
+ enableXFA yes | no
+ If set to "yes", an XFA form (if present) will be rendered in
+ place of an AcroForm. If "no", an XFA form will never be ren-
+ dered. This defaults to "yes".
+
bind modifiers-key context command ...
Add a key or mouse button binding. Modifiers can be zero or
more of:
@@ -572,7 +605,6 @@ EXAMPLES
textEOL unix
# misc options
- enableT1lib yes
enableFreeType yes
launchCommand viewer-script
urlCommand "netscape -remote 'openURL(%s)'"
@@ -588,14 +620,14 @@ FILES
read in place of the system-wide file.
AUTHOR
- The Xpdf software and documentation are copyright 1996-2011 Glyph &
+ The Xpdf software and documentation are copyright 1996-2014 Glyph &
Cog, LLC.
SEE ALSO
- xpdf(1), pdftops(1), pdftotext(1), pdfinfo(1), pdffonts(1), pdfde-
- tach(1), pdftoppm(1), pdfimages(1)
+ xpdf(1), pdftops(1), pdftotext(1), pdftohtml(1), pdfinfo(1), pdf-
+ fonts(1), pdfdetach(1), pdftoppm(1), pdftopng(1), pdfimages(1)
http://www.foolabs.com/xpdf/
- 15 August 2011 xpdfrc(5)
+ 28 May 2014 xpdfrc(5)
diff --git a/doc/xpdfrc.hlp b/doc/xpdfrc.hlp
deleted file mode 100644
index 224456c..0000000
--- a/doc/xpdfrc.hlp
+++ /dev/null
@@ -1,612 +0,0 @@
-! Generated automatically by mantohlp
-1 xpdfrc
-2 NCLUDE_FILE
-
- xpdfrc - configuration file for Xpdf tools (version 3.03)
-
- include config-file
- Includes the specified config file. The effect of this is
- equivalent to inserting the contents of config-file directly
- into the parent config file in place of the include command.
- Config files can be nested arbitrarily deeply.
-
- ()
-
-2 HARACTER_MAPPIN
-
- nameToUnicode map-file
- Specifies a file with the mapping from character names to Uni-
- code. This is used to handle PDF fonts that have valid encod-
- ings but no ToUnicode entry. Each line of a nameToUnicode file
- looks like this:
-
- hex-string name
-
- The hex-string is the Unicode (UCS-2) character index, and name
- is the corresponding character name. Multiple nameToUnicode
- files can be used; if a character name is given more than once,
- the code in the last specified file is used. There is a built-
- in default nameToUnicode table with all of Adobe's standard
- character names.
-
- cidToUnicode registry-ordering map-file
- Specifies the file with the mapping from character collection to
- Unicode. Each line of a cidToUnicode file represents one char-
- acter:
-
- hex-string
-
- The hex-string is the Unicode (UCS-2) index for that character.
- The first line maps CID 0, the second line CID 1, etc. File
- size is determined by size of the character collection. Only
- one file is allowed per character collection; the last specified
- file is used. There are no built-in cidToUnicode mappings.
-
- unicodeToUnicode font-name-substring map-file
- This is used to work around PDF fonts which have incorrect Uni-
- code information. It specifies a file which maps from the given
- (incorrect) Unicode indexes to the correct ones. The mapping
- will be used for any font whose name contains font-name-sub-
- string. Each line of a unicodeToUnicode file represents one
- Unicode character:
-
- in-hex out-hex1 out-hex2 ...
-
- The in-hex field is an input (incorrect) Unicode index, and the
- rest of the fields are one or more output (correct) Unicode
- indexes. Each occurrence of in-hex will be converted to the
- specified output sequence.
-
- unicodeMap encoding-name map-file
- Specifies the file with mapping from Unicode to encoding-name.
- These encodings are used for text output (see below). Each line
- of a unicodeMap file represents a range of one or more Unicode
- characters which maps linearly to a range in the output encod-
- ing:
-
- in-start-hex in-end-hex out-start-hex
-
- Entries for single characters can be abbreviated to:
-
- in-hex out-hex
-
- The in-start-hex and in-end-hex fields (or the single in-hex
- field) specify the Unicode range. The out-start-hex field (or
- the out-hex field) specifies the start of the output encoding
- range. The length of the out-start-hex (or out-hex) string
- determines the length of the output characters (e.g., UTF-8 uses
- different numbers of bytes to represent characters in different
- ranges). Entries must be given in increasing Unicode order.
- Only one file is allowed per encoding; the last specified file
- is used. The Latin1, ASCII7, Symbol, ZapfDingbats, UTF-8, and
- UCS-2 encodings are predefined.
-
- cMapDir registry-ordering dir
- Specifies a search directory, dir, for CMaps for the reg-
- istry-ordering character collection. There can be multiple
- directories for a particular collection. There are no default
- CMap directories.
-
- toUnicodeDir dir
- Specifies a search directory, dir, for ToUnicode CMaps. There
- can be multiple ToUnicode directories. There are no default
- ToUnicode directories.
-
- ()
-
-2 ENERAL_FONT_CONFIGURATIO
-
- fontFile PDF-font-name font-file
- Maps a PDF font, PDF-font-name, to a font for display or Post-
- Script output. The font file, font-file, can be any type
- allowed in a PDF file. This command can be used for 8-bit or
- 16-bit (CID) fonts.
-
- fontDir dir
- Specifies a search directory for font files. There can be mul-
- tiple fontDir commands; all of the specified directories will be
- searched in order. The font files can be Type 1 (.pfa or .pfb)
- or TrueType (.ttf or .ttc); other files in the directory will be
- ignored. The font file name (not including the extension) must
- exactly match the PDF font name. This search is performed if
- the font name doesn't match any of the fonts declared with the
- fontFile command. There are no default fontDir directories.
-
- fontFileCC registry-ordering font-file
- Maps the registry-ordering character collection to a font for
- display or PostScript output. This mapping is used if the font
- name doesn't match any of the fonts declared with the fontFile,
- fontDir, psResidentFont16, or psResidentFontCC commands.
-
- ()
-
-2 OSTSCRIPT_FONT_CONFIGURATIO
-
- psFontPassthrough yes | no
- If set to "yes", pass 8-bit font names through to the PostScript
- output without substitution. Fonts which are not embedded in
- the PDF file are expected to be available on the printer. This
- defaults to "no".
-
- psResidentFont PDF-font-name PS-font-name
- When the 8-bit font PDF-font-name is used (without embedding) in
- a PDF file, it will be translated to the PostScript font
- PS-font-name, which is assumed to be resident in the printer.
- Typically, PDF-font-name and PS-font-name are the same. By
- default, only the Base-14 fonts are assumed to be resident.
-
- psResidentFont16 PDF-font-name wMode PS-font-name encoding
- When the 16-bit (CID) font PDF-font-name with writing mode wMode
- is used (without embedding) in a PDF file, it will be translated
- to the PostScript font PS-font-name, which is assumbed to be
- resident in the printer. The writing mode must be either 'H'
- for horizontal or 'V' for vertical. The resident font is
- assumed to use the specified encoding (which must have been
- defined with the unicodeMap command).
-
- psResidentFontCC registry-ordering wMode PS-font-name encoding
- When a 16-bit (CID) font using the registry-ordering character
- collection and wMode writing mode is used (without embedding) in
- a PDF file, the PostScript font, PS-font-name, is substituted
- for it. The substituted font is assumbed to be resident in the
- printer. The writing mode must be either 'H' for horizontal or
- 'V' for vertical. The resident font is assumed to use the spec-
- ified encoding (which must have been defined with the unicodeMap
- command).
-
- psEmbedType1Fonts yes | no
- If set to "no", prevents embedding of Type 1 fonts in generated
- PostScript. This defaults to "yes".
-
- psEmbedTrueTypeFonts yes | no
- If set to "no", prevents embedding of TrueType fonts in gener-
- ated PostScript. This defaults to "yes".
-
- psEmbedCIDTrueTypeFonts yes | no
- If set to "no", prevents embedding of CID TrueType fonts in gen-
- erated PostScript. For Level 3 PostScript, this generates a CID
- font, for lower levels it generates a non-CID composite font.
- This defaults to "yes".
-
- psEmbedCIDPostScriptFonts yes | no
- If set to "no", prevents embedding of CID PostScript fonts in
- generated PostScript. For Level 3 PostScript, this generates a
- CID font, for lower levels it generates a non-CID composite
- font. This defaults to "yes".
-
- ()
-
-2 OSTSCRIPT_CONTRO
-
- psPaperSize width(pts) height(pts)
- Sets the paper size for PostScript output. The width and height
- parameters give the paper size in PostScript points (1 point =
- 1/72 inch).
-
- psPaperSize letter | legal | A4 | A3 | match
- Sets the paper size for PostScript output to a standard size.
- The default paper size is set when xpdf and pdftops are built,
- typically to "letter" or "A4". This can also be set to "match",
- which will set the paper size to match the size specified in the
- PDF file.
-
- psImageableArea llx lly urx ury
- Sets the imageable area for PostScript output. The four inte-
- gers are the coordinates of the lower-left and upper-right cor-
- ners of the imageable region, specified in points (with the ori-
- gin being the lower-left corner of the paper). This defaults to
- the full paper size; the psPaperSize option will reset the
- imageable area coordinates.
-
- psCrop yes | no
- If set to "yes", PostScript output is cropped to the CropBox
- specified in the PDF file; otherwise no cropping is done. This
- defaults to "yes".
-
- psExpandSmaller yes | no
- If set to "yes", PDF pages smaller than the PostScript imageable
- area are expanded to fill the imageable area. Otherwise, no
- scalling is done on smaller pages. This defaults to "no".
-
- psShrinkLarger yes | no
- If set to yes, PDF pages larger than the PostScript imageable
- area are shrunk to fit the imageable area. Otherwise, no scal-
- ing is done on larger pages. This defaults to "yes".
-
- psCenter yes | no
- If set to yes, PDF pages smaller than the PostScript imageable
- area (after any scaling) are centered in the imageable area.
- Otherwise, they are aligned at the lower-left corner of the
- imageable area. This defaults to "yes".
-
- psDuplex yes | no
- If set to "yes", the generated PostScript will set the "Duplex"
- pagedevice entry. This tells duplex-capable printers to enable
- duplexing. This defaults to "no".
-
- psLevel level1 | level1sep | level2 | level2sep | level3 | level3Sep
- Sets the PostScript level to generate. This defaults to
- "level2".
-
- psPreload yes | no
- If set to "yes", PDF forms are converted to PS procedures, and
- image data is preloaded. This uses more memory in the Post-
- Script interpreter, but generates significantly smaller PS files
- in situations where, e.g., the same image is drawn on every page
- of a long document. This defaults to "no".
-
- psOPI yes | no
- If set to "yes", generates PostScript OPI comments for all
- images and forms which have OPI information. This option is
- only available if the Xpdf tools were compiled with OPI support.
- This defaults to "no".
-
- psASCIIHex yes | no
- If set to "yes", the ASCIIHexEncode filter will be used instead
- of ASCII85Encode for binary data. This defaults to "no".
-
- psUncompressPreloadedImages yes | no
- If set to "yes", all preloaded images in PS files will uncom-
- pressed. If set to "no", the original compressed images will be
- used when possible. The "yes" setting is useful to work around
- certain buggy PostScript interpreters. This defaults to "no".
-
- psRasterResolution float
- Set the resolution (in dpi) for rasterized pages in PostScript
- output. (Pdftops will rasterize pages which use transparency.)
- This defaults to 300.
-
- psRasterMono yes | no
- If set to "yes", rasterized pages in PS files will be monochrome
- (8-bit gray) instead of color. This defaults to "no".
-
- psAlwaysRasterize yes | no
- If set to "yes", all PostScript output will be rasterized. This
- defaults to "no".
-
- psFile file-or-command
- Sets the default PostScript file or print command for xpdf.
- Commands start with a '|' character; anything else is a file.
- If the file name or command contains spaces it must be quoted.
- This defaults to unset, which tells xpdf to generate a name of
- the form <file>.ps for a PDF file <file>.pdf.
-
- fontDir dir
- See the description above, in the DISPLAY FONTS section.
-
- ()
-
-2 EXT_CONTRO
-
- textEncoding encoding-name
- Sets the encoding to use for text output. (This can be overrid-
- den with the "-enc" switch on the command line.) The encod-
- ing-name must be defined with the unicodeMap command (see
- above). This defaults to "Latin1".
-
- textEOL unix | dos | mac
- Sets the end-of-line convention to use for text output. The
- options are:
-
- unix = LF
- dos = CR+LF
- mac = CR
-
- (This can be overridden with the "-eol" switch on the command
- line.) The default value is based on the OS where xpdf and
- pdftotext were built.
-
- textPageBreaks yes | no
- If set to "yes", text extraction will insert page breaks (form
- feed characters) between pages. This defaults to "yes".
-
- textKeepTinyChars yes | no
- If set to "yes", text extraction will keep all characters. If
- set to "no", text extraction will discard tiny (smaller than 3
- point) characters after the first 50000 per page, avoiding
- extremely slow run times for PDF files that use special fonts to
- do shading or cross-hatching. This defaults to "no".
-
- ()
-
-2 ISCELLANEOUS_SETTING
-
- initialZoom percentage | page | width
- Sets the initial zoom factor. A number specifies a zoom per-
- centage, where 100 means 72 dpi. You may also specify 'page',
- to fit the page to the window size, or 'width', to fit the page
- width to the window width.
-
- continuousView yes | no
- If set to "yes", xpdf will start in continuous view mode, i.e.,
- with one vertical screoll bar for the whole document. This
- defaults to "no".
-
- enableT1lib yes | no
- Enables or disables use of t1lib (a Type 1 font rasterizer).
- This is only relevant if the Xpdf tools were built with t1lib
- support. ("enableT1lib" replaces the old "t1libControl"
- option.) This option defaults to "yes".
-
- enableFreeType yes | no
- Enables or disables use of FreeType (a TrueType / Type 1 font
- rasterizer). This is only relevant if the Xpdf tools were built
- with FreeType support. ("enableFreeType" replaces the old
- "freetypeControl" option.) This option defaults to "yes".
-
- enableFreeType yes | no
- Enables or disables use of FreeType (a TrueType / Type 1 font
- rasterizer). This is only relevant if the Xpdf tools were built
- with FreeType support. ("enableFreeType" replaces the old
- "freetypeControl" option.) This option defaults to "yes".
-
- disableFreeTypeHinting yes | no
- If this is set to "yes", FreeType hinting will be forced off.
- This option defaults to "no".
-
- antialias yes | no
- Enables or disables font anti-aliasing in the PDF rasterizer.
- This option affects all font rasterizers. ("antialias" replaces
- the anti-aliasing control provided by the old "t1libControl" and
- "freetypeControl" options.) This default to "yes".
-
- vectorAntialias yes | no
- Enables or disables anti-aliasing of vector graphics in the PDF
- rasterizer. This defaults to "yes".
-
- antialiasPrinting yes | no
- If this is "yes", bitmaps sent to the printer will be
- antialiased (according to the "antialias" and "vectorAntialias"
- settings). If this is "no", printed bitmaps will not be
- antialiased. This defaults to "no".
-
- strokeAdjust yes | no
- Enables or disables stroke adjustment. Stroke adjustment moves
- horizontal and vertical lines by up to half a pixel to make them
- look "cleaner" when vector anti-aliasing is enabled. This
- defaults to "yes".
-
- screenType dispersed | clustered | stochasticClustered
- Sets the halftone screen type, which will be used when generat-
- ing a monochrome (1-bit) bitmap. The three options are dis-
- persed-dot dithering, clustered-dot dithering (with a round dot
- and 45-degree screen angle), and stochastic clustered-dot
- dithering. By default, "stochasticClustered" is used for reso-
- lutions of 300 dpi and higher, and "dispersed" is used for reso-
- lutions lower then 300 dpi.
-
- screenSize integer
- Sets the size of the (square) halftone screen threshold matrix.
- By default, this is 4 for dispersed-dot dithering, 10 for clus-
- tered-dot dithering, and 100 for stochastic clustered-dot
- dithering.
-
- screenDotRadius integer
- Sets the halftone screen dot radius. This is only used when
- screenType is set to stochasticClustered, and it defaults to 2.
- In clustered-dot mode, the dot radius is half of the screen
- size. Dispersed-dot dithering doesn't have a dot radius.
-
- screenGamma float
- Sets the halftone screen gamma correction parameter. Gamma val-
- ues greater than 1 make the output brighter; gamma values less
- than 1 make it darker. The default value is 1.
-
- screenBlackThreshold float
- When halftoning, all values below this threshold are forced to
- solid black. This parameter is a floating point value between 0
- (black) and 1 (white). The default value is 0.
-
- screenWhiteThreshold float
- When halftoning, all values above this threshold are forced to
- solid white. This parameter is a floating point value between 0
- (black) and 1 (white). The default value is 1.
-
- minLineWidth float
- Set the minimum line width, in device pixels. This affects the
- rasterizer only, not the PostScript converter (except when it
- uses rasterization to handle transparency). The default value
- is 0 (no minimum).
-
- drawAnnotations yes | no
- If set to "no", annotations will not be drawn or printed. The
- default value is "yes".
-
- overprintPreview yes | no
- If set to "yes", generate overprint preview output, honoring the
- OP/op/OPM settings in the PDF file. Ignored for non-CMYK out-
- put. The default value is "no".
-
- launchCommand command
- Sets the command executed when you click on a "launch"-type
- link. The intent is for the command to be a program/script
- which determines the file type and runs the appropriate viewer.
- The command line will consist of the file to be launched, fol-
- lowed by any parameters specified with the link. Do not use
- "%s" in "command". By default, this is unset, and Xpdf will
- simply try to execute the file (after prompting the user).
-
- urlCommand command
- Sets the command executed when you click on a URL link. The
- string "%s" will be replaced with the URL. (See the example
- below.) This has no default value.
-
- movieCommand command
- Sets the command executed when you click on a movie annotation.
- The string "%s" will be replaced with the movie file name. This
- has no default value.
-
- mapNumericCharNames yes | no
- If set to "yes", the Xpdf tools will attempt to map various
- numeric character names sometimes used in font subsets. In some
- cases this leads to usable text, and in other cases it leads to
- gibberish -- there is no way for Xpdf to tell. This defaults to
- "yes".
-
- mapUnknownCharNames yes | no
- If set to "yes", and mapNumericCharNames is set to "no", the
- Xpdf tools will apply a simple pass-through mapping (Unicode
- index = character code) for all unrecognized glyph names. (For
- CID fonts, setting mapNumericCharNames to "no" is unnecessary.)
- In some cases, this leads to usable text, and in other cases it
- leads to gibberish -- there is no way for Xpdf to tell. This
- defaults to "no".
-
- bind modifiers-key context command ...
- Add a key or mouse button binding. Modifiers can be zero or
- more of:
-
- shift-
- ctrl-
- alt-
-
- Key can be a regular ASCII character, or any one of:
-
- space
- tab
- return
- enter
- backspace
- insert
- delete
- home
- end
- pgup
- pgdn
- left / right / up / down (arrow keys)
- f1 .. f35 (function keys)
- mousePress1 .. mousePress7 (mouse buttons)
- mouseRelease1 .. mouseRelease7 (mouse buttons)
-
- Context is either "any" or a comma-separated combination of:
-
- fullScreen / window (full screen mode on/off)
- continuous / singlePage (continuous mode on/off)
- overLink / offLink (mouse over link or not)
- scrLockOn / scrLockOff (scroll lock on/off)
-
- The context string can include only one of each pair in the
- above list.
-
- Command is an Xpdf command (see the COMMANDS section of the
- xpdf(1) man page for details). Multiple commands are separated
- by whitespace.
-
- The bind command replaces any existing binding, but only if it
- was defined for the exact same modifiers, key, and context. All
- tokens (modifiers, key, context, commands) are case-sensitive.
-
- Example key bindings:
-
- # bind ctrl-a in any context to the nextPage
- # command
- bind ctrl-a any nextPage
-
- # bind uppercase B, when in continuous mode
- # with scroll lock on, to the reload command
- # followed by the prevPage command
- bind B continuous,scrLockOn reload prevPage
-
- See the xpdf(1) man page for more examples.
-
- unbind modifiers-key context
- Removes a key binding established with the bind command. This
- is most useful to remove default key bindings before establish-
- ing new ones (e.g., if the default key binding is given for
- "any" context, and you want to create new key bindings for mul-
- tiple contexts).
-
- printCommands yes | no
- If set to "yes", drawing commands are printed as they're exe-
- cuted (useful for debugging). This defaults to "no".
-
- errQuiet yes | no
- If set to "yes", this suppresses all error and warning messages
- from all of the Xpdf tools. This defaults to "no".
-
- ()
-
-2 EXAMPLES
-
- The following is a sample xpdfrc file.
-
- # from the Thai support package
- nameToUnicode /usr/local/share/xpdf/Thai.nameToUnicode
-
- # from the Japanese support package
- cidToUnicode Adobe-Japan1 /usr/local/share/xpdf/Adobe-Japan1.cidToUnicode
- unicodeMap JISX0208 /usr/local/share/xpdf/JISX0208.unicodeMap
- cMapDir Adobe-Japan1 /usr/local/share/xpdf/cmap/Adobe-Japan1
-
- # use the Base-14 Type 1 fonts from ghostscript
- fontFile Times-Roman /usr/local/share/ghostscript/fonts/n021003l.pfb
- fontFile Times-Italic /usr/local/share/ghostscript/fonts/n021023l.pfb
- fontFile Times-Bold /usr/local/share/ghostscript/fonts/n021004l.pfb
- fontFile Times-BoldItalic /usr/local/share/ghostscript/fonts/n021024l.pfb
- fontFile Helvetica /usr/local/share/ghostscript/fonts/n019003l.pfb
- fontFile Helvetica-Oblique /usr/local/share/ghostscript/fonts/n019023l.pfb
- fontFile Helvetica-Bold /usr/local/share/ghostscript/fonts/n019004l.pfb
- fontFile Helvetica-BoldOblique /usr/local/share/ghostscript/fonts/n019024l.pfb
- fontFile Courier /usr/local/share/ghostscript/fonts/n022003l.pfb
- fontFile Courier-Oblique /usr/local/share/ghostscript/fonts/n022023l.pfb
- fontFile Courier-Bold /usr/local/share/ghostscript/fonts/n022004l.pfb
- fontFile Courier-BoldOblique /usr/local/share/ghostscript/fonts/n022024l.pfb
- fontFile Symbol /usr/local/share/ghostscript/fonts/s050000l.pfb
- fontFile ZapfDingbats /usr/local/share/ghostscript/fonts/d050000l.pfb
-
- # use the Bakoma Type 1 fonts
- # (this assumes they happen to be installed in /usr/local/fonts/bakoma)
- fontDir /usr/local/fonts/bakoma
-
- # set some PostScript options
- psPaperSize letter
- psDuplex no
- psLevel level2
- psEmbedType1Fonts yes
- psEmbedTrueTypeFonts yes
- psFile "| lpr -Pprinter5"
-
- # assume that the PostScript printer has the Univers and
- # Univers-Bold fonts
- psResidentFont Univers Univers
- psResidentFont Univers-Bold Univers-Bold
-
- # set the text output options
- textEncoding UTF-8
- textEOL unix
-
- # misc options
- enableT1lib yes
- enableFreeType yes
- launchCommand viewer-script
- urlCommand "netscape -remote 'openURL(%s)'"
-
- ()
-
-2 FILES
-
- /usr/local/etc/xpdfrc
- This is the default location for the system-wide configuration
- file. Depending on build options, it may be placed elsewhere.
-
- $HOME/.xpdfrc
- This is the user's configuration file. If it exists, it will be
- read in place of the system-wide file.
-
- ()
-
-2 AUTHOR
-
- The Xpdf software and documentation are copyright 1996-2011 Glyph &
- Cog, LLC.
-
- ()
-
-2 SEE_ALSO
-
- xpdf(1), pdftops(1), pdftotext(1), pdfinfo(1), pdffonts(1), pdfde-
- tach(1), pdftoppm(1), pdfimages(1)
- http://www.foolabs.com/xpdf/
-
- ()
-