]>
Commit | Line | Data |
---|---|---|
c1f0ee65 JR |
1 | If you have one of the newer versions of GhostScript which can read PDF |
2 | files, then there's no reason you can't read PDF files in XV, either. | |
3 | ||
4 | All you need is this simple patch to detect PDF files as being | |
5 | 'PostScript-y'. | |
6 | ||
7 | --jhb, 4/1/98 | |
8 | ||
9 | ||
10 | *** xv.c.orig Wed Apr 1 01:30:58 1998 | |
11 | --- xv.c Wed Apr 1 01:31:52 1998 | |
12 | *************** | |
13 | *** 2625,2630 **** | |
14 | --- 2625,2634 ---- | |
15 | strncmp((char *) magicno, "\004%!", (size_t) 3)==0) rv = RFT_PS; | |
16 | #endif | |
17 | ||
18 | + #ifdef GS_PATH | |
19 | + else if (strncmp((char *) magicno, "%PDF", (size_t) 4)==0) rv = RFT_PS; | |
20 | + #endif | |
21 | + | |
22 | return rv; | |
23 | } | |
24 |