Debian Codegraph @

utils/xpdfopen/xpdfopen-src/README

raw
1 ---------------------------------------------------------------------------
2 xpdfopen 0.86 - Send open/close commands to Acrobat Reader, xpdf and evince
3 ---------------------------------------------------------------------------
4
5 This is a Linux (X11) implementation of Fabrice Popineau's pdfclose/
6 pdfopen commands to control Acrobat Reader, xpdf and evince.
7
8 The libX code was borrowed from Reinhard Fobbe's Sendx library for
9 Tcl/Tk, and the programs use the same license, copied below.
10
11 Version 0.3 adds support for Adobe Reader 7.0 for Linux.
12 (different window titles and key shortcuts)
13
14 Version 0.4 uses autoconf
15
16 Version 0.5 fixes an incorrect autoconf variable, supports building
17 under X11R5, handles pathnames on the command-line, and
18 fixes a bug where pdfopen did not exit correctly after
19 (automatically) starting acroread.
20
21 Version 0.51 uses the strrchr() function instead of rindex()
22 to allow compilation on non-BSD derived unix platforms.
23
24 Version 0.61 attempts to do something useful with Adobe Reader 8,
25 even though it is impossible to restore the viewport.
26
27 Version 0.80 adds an implementation for AR 9 and xpdf.
28
29 Version 0.81 adds an implementation for evince.
30
31 Version 0.82 adds a man page and -v/--version options for pdfopen.
32
33 Version 0.83 adds the -r/-reset_focus option for pdfopen.
34
35 Version 0.84 adds 'load at given page' support (-p option) for Adobe
36 Reader 9, evince (at least 3.12, maybe earlier) and xpdf.
37
38 Version 0.85 adds 'load at named destination' support (-g/--goto option)
39 for xpdf, evince and (supposedly) AR9. The AR9 man page
40 claims it should work, but it doesn't for me. I left
41 the allegedly-correct code there anyway, in case it works
42 for other people in other places.
43 Also add aliases for option names to make ms-windows
44 users feel at home.
45
46 Version 0.86 fixes 'load at named destination' for AR9.
47
48
49 The AR command lines do not behave precisely the same as under Windows,
50 because the Linux Reader behaves somewhat differently: it is not
51 scriptable, but it is possible to 'fake' key-presses.
52
53
54 pdfopen has the following call sequence:
55 pdfopen [-r|-reset_focus] \
56 [-viewer/--viewer <ar9|ar9-tab|ar8|ar7|ar5|xpdf|evince>] \
57 [-p/--page <page number>] \
58 [-g/--goto <named destination>] \
59 [--file] <pdf file name>
60
61 The "ar9" version uses AR9's "-openInNewInstance" option, the "ar9-tab"
62 version does not (so if there is already an AR9 window open, a new tab
63 will be opened in that window).
64
65
66 pdfclose has the following call sequence:
67 pdfclose [--file] <pdf file name>
68 This program closes an existing AR5, AR7, AR8, AR9, xpdf or evince window
69 displaying the given PDF file.
70
71
72 Version 0.85 compiles on Linux (Slackware64 14.1, anyway) with
73 the following command:
74 gcc -Wall pdfopen.c sendx.c utils.c -o pdfopen -lX11 -s
75 gcc -Wall pdfclose.c sendx.c utils.c -o pdfclose -lX11 -s
76 should you not want to go through the process of creating and running
77 a configure program.
78
79
80 Taco Hoekwater <[email protected]> (Version(s) up to 0.61)
81 Dordrecht, The Netherlands, December 2008.
82
83 Jim Diamond <[email protected]> (Version 0.80 through 0.84)
84 Acadia University, Wolfville, Nova Scotia, Canada; May 2014.
85
86
87
88
89 License terms:
90 --------------
91 The following terms apply to all files associated with the software
92 unless explicitly disclaimed in individual files.
93
94 The authors hereby grant permission to use, copy, modify, distribute,
95 and license this software and its documentation for any purpose,
96 provided that existing copyright notices are retained in all copies
97 and that this notice is included verbatim in any distributions. No
98 written agreement, license, or royalty fee is required for any of the
99 authorized uses. Modifications to this software may be copyrighted by
100 their authors and need not follow the licensing terms described here,
101 provided that the new terms are clearly indicated on the first page of
102 each file where they apply.
103
104 IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY
105 FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
106 ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY
107 DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE
108 POSSIBILITY OF SUCH DAMAGE.
109
110 THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES,
111 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
112 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND
113 NON-INFRINGEMENT. THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, AND
114 THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO PROVIDE
115 MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.