1 | 20110309 CKW |
---|
2 | |
---|
3 | sagepdf is a PDF viewer for a tiled display running SAGE. |
---|
4 | |
---|
5 | Prerequisites to compile include poppler, cairo and gtk+. |
---|
6 | To build the full version, run: |
---|
7 | make |
---|
8 | |
---|
9 | To install the compiled sagepdf application |
---|
10 | (into $SAGE_DIRECTORY/bin), run: |
---|
11 | make install |
---|
12 | |
---|
13 | |
---|
14 | To display a PDF on both local and tiled displays, |
---|
15 | run: |
---|
16 | sagepdf /full/path/to/yourfile.pdf [-show_original] [-page num] [-scale num] |
---|
17 | |
---|
18 | The PDF filename is a mandatory argument; the remainder are optional. |
---|
19 | -show_original |
---|
20 | means no DXT compression is used |
---|
21 | |
---|
22 | -page num |
---|
23 | (num is some integer) denotes which page number |
---|
24 | should be displayed at startup |
---|
25 | |
---|
26 | -scale num |
---|
27 | (num is some integer) denotes a scaling factor |
---|
28 | to be applied _before_ the conversion from pdf to bitmap |
---|
29 | is made for the tiled display (defaults to 4). The |
---|
30 | scaling factor has no effect on the locally displayed |
---|
31 | output. |
---|
32 | |
---|
33 | To run just on the desktop, build with the command: |
---|
34 | make nosage |
---|
35 | |
---|
36 | No connection to a tiled display is (or can be) made |
---|
37 | when running this version. This may be useful for |
---|
38 | experimenting with just the gui code. |
---|
39 | |
---|
40 | |
---|
41 | Interaction with the local pdf window is, firstly, |
---|
42 | via the keyboard: |
---|
43 | Home = go to 1st page |
---|
44 | End = go to last page |
---|
45 | Page Up, Left Arrow = go back 1 page |
---|
46 | Page Down, Right Arrow = go forward 1 page |
---|
47 | |
---|
48 | The local pdf window also responds to the same mouse events |
---|
49 | as the tiled display instance: |
---|
50 | Left Click = go forward 1 page |
---|
51 | Drag Right = go forward pages while dragging |
---|
52 | Right Click = go back 1 page |
---|
53 | Drag Left = go back pages while dragging |
---|
54 | |
---|