source: main/trunk/greenstone2/bin/linux/xpdf-tools/doc/sample-xpdfrc@ 32205

Last change on this file since 32205 was 32205, checked in by ak19, 6 years ago

First set of commits to do with implementing the new 'paged_html' output option of PDFPlugin that uses using xpdftools' new pdftohtml. So far tested only on Linux (64 bit), but things work there so I'm optimistically committing the changes since they work. 2. Committing the pre-built Linux binaries of XPDFtools for both 32 and 64 bit built by the XPDF group. 2. To use the correct bitness variant of xpdftools, setup.bash now exports the BITNESS env var, consulted by gsConvert.pl. 3. All the perl code changes to do with using xpdf tools' pdftohtml to generate paged_html and feed it in the desired form into GS(3): gsConvert.pl, PDFPlugin.pm and its parent ConvertBinaryPFile.pm have been modified to make it all work. xpdftools' pdftohtml generates a folder containing an html file and a screenshot for each page in a PDF (as well as an index.html linking to each page's html). However, we want a single html file that contains each individual 'page' html's content in a div, and need to do some further HTML style, attribute and structure modifications to massage the xpdftool output to what we want for GS. In order to parse and manipulate the HTML 'DOM' to do this, we're using the Mojo::DOM package that Dr Bainbridge found and which he's compiled up. Mojo::DOM is therefore also committed in this revision. Some further changes and some display fixes are required, but need to check with the others about that.

File size: 3.4 KB
Line 
1#========================================================================
2#
3# Sample xpdfrc file
4#
5# The Xpdf tools look for a config file in two places:
6# 1. ~/.xpdfrc
7# 2. in a system-wide directory, typically /usr/local/etc/xpdfrc
8#
9# This sample config file demonstrates some of the more common
10# configuration options. Everything here is commented out. You
11# should edit things (especially the file/directory paths, since
12# they'll likely be different on your system), and uncomment whichever
13# options you want to use. For complete details on config file syntax
14# and available options, please see the xpdfrc(5) man page.
15#
16# Also, the Xpdf language support packages each include a set of
17# options to be added to the xpdfrc file.
18#
19# http://www.xpdfreader.com/
20#
21#========================================================================
22
23#----- display fonts
24
25# These map the Base-14 fonts to the Type 1 fonts that ship with
26# ghostscript. You'll almost certainly want to use something like
27# this, but you'll need to adjust this to point to wherever
28# ghostscript is installed on your system. (But if the fonts are
29# installed in a "standard" location, xpdf will find them
30# automatically.)
31
32#fontFile Times-Roman /usr/local/share/ghostscript/fonts/n021003l.pfb
33#fontFile Times-Italic /usr/local/share/ghostscript/fonts/n021023l.pfb
34#fontFile Times-Bold /usr/local/share/ghostscript/fonts/n021004l.pfb
35#fontFile Times-BoldItalic /usr/local/share/ghostscript/fonts/n021024l.pfb
36#fontFile Helvetica /usr/local/share/ghostscript/fonts/n019003l.pfb
37#fontFile Helvetica-Oblique /usr/local/share/ghostscript/fonts/n019023l.pfb
38#fontFile Helvetica-Bold /usr/local/share/ghostscript/fonts/n019004l.pfb
39#fontFile Helvetica-BoldOblique /usr/local/share/ghostscript/fonts/n019024l.pfb
40#fontFile Courier /usr/local/share/ghostscript/fonts/n022003l.pfb
41#fontFile Courier-Oblique /usr/local/share/ghostscript/fonts/n022023l.pfb
42#fontFile Courier-Bold /usr/local/share/ghostscript/fonts/n022004l.pfb
43#fontFile Courier-BoldOblique /usr/local/share/ghostscript/fonts/n022024l.pfb
44#fontFile Symbol /usr/local/share/ghostscript/fonts/s050000l.pfb
45#fontFile ZapfDingbats /usr/local/share/ghostscript/fonts/d050000l.pfb
46
47# If you need to display PDF files that refer to non-embedded fonts,
48# you should add one or more fontDir options to point to the
49# directories containing the font files. Xpdf will only look at .pfa,
50# .pfb, .ttf, and .ttc files in those directories (other files will
51# simply be ignored).
52
53#fontDir /usr/local/fonts/bakoma
54
55#----- PostScript output control
56
57# Set the default PostScript file or command.
58
59#psFile "|lpr -Pmyprinter"
60
61# Set the default PostScript paper size -- this can be letter, legal,
62# A4, or A3. You can also specify a paper size as width and height
63# (in points).
64
65#psPaperSize letter
66
67#----- text output control
68
69# Choose a text encoding for copy-and-paste and for pdftotext output.
70# The Latin1, ASCII7, and UTF-8 encodings are built into Xpdf. Other
71# encodings are available in the language support packages.
72
73#textEncoding UTF-8
74
75# Choose the end-of-line convention for multi-line copy-and-past and
76# for pdftotext output. The available options are unix, mac, and dos.
77
78#textEOL unix
79
80#----- misc settings
81
82# Enable FreeType, and anti-aliased text.
83
84#enableFreeType yes
85#antialias yes
86
87# Set the command used to run a web browser when a URL hyperlink is
88# clicked.
89
90#launchCommand viewer-script
91#urlCommand "netscape -remote 'openURL(%s)'"
Note: See TracBrowser for help on using the repository browser.