]> git.pld-linux.org Git - packages/xv.git/blame - xv-pdf.patch
- added jasper patch (don't use internal functions or hacks)
[packages/xv.git] / xv-pdf.patch
CommitLineData
c1f0ee65
JR
1If you have one of the newer versions of GhostScript which can read PDF
2files, then there's no reason you can't read PDF files in XV, either.
3
4All 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
This page took 0.088726 seconds and 4 git commands to generate.