Commit Graph

24 Commits

Author SHA1 Message Date
Dan Cross
fa325e9b42 Trivial changes: whitespace and modes.
Remote whitespace at the ends of lines.
Remove blank lines from the ends of files.
Change modes on source files so that they
are not executable.

Signed-off-by: Dan Cross <cross@gajendra.net>
2020-01-10 14:54:30 +00:00
Fazlul Shahriar
01a29ffe9d page: fix pdf prolog for ghostscript >= 9.27 (#296)
Ghostscript 9.27 removed GS_PDF_ProcSet and pdfdict due to a security
issue (see https://security-tracker.debian.org/tracker/CVE-2019-3839).

This fix was contributed by @onyxperidot (see #279).

Fixes #279
2019-12-08 20:20:22 -05:00
Fazlul Shahriar
46606276c3 page: fix hang for forward-only postscript files
Page was hanging because ghostscript never closes the fd from which
we're reading BMP data. We close our end of the pipe so that ghostscript
will close its end.

Tested with ghostscript version 9.50.

Fixes #124
2019-11-14 01:26:39 -05:00
Russ Cox
047fd92174 page: handle EPS without showpage 2019-02-25 09:45:53 -05:00
Russ Cox
220c15d2b7 fix gcc 4.7 warnings (thanks Tuncer Ayaz)
R=rsc
http://codereview.appspot.com/6744053
2012-10-20 13:36:52 -04:00
Russ Cox
c383979b01 page: check for gs failure 2011-10-25 12:55:09 -04:00
Mathieu Lonjaret
d9e047e5d5 R=rsc
CC=codebot
http://codereview.appspot.com/193069
2010-02-04 02:05:03 -08:00
J.R. Mauro
2fb0c4447e page: remove temporary file at program exit; fixes reading from stdin
http://codereview.appspot.com/105097
2009-08-20 14:38:31 -04:00
Fazlul Shahriar
94349f64d1 page: add missing delayfreeimage calls
fixes #19 http://code.swtch.com/plan9port/issue/19

http://codereview.appspot.com/108041
2009-08-15 02:34:42 -04:00
Russ Cox
f2887b9de8 page: move cmd/page/cache.c to src/cmd/page/cache.c
not sure how the codebot screwed that up.
2009-08-10 20:01:56 -07:00
Fazlul Shahriar
b3453e08b8 page: add caching from Plan 9
http://codereview.appspot.com/105070
2009-08-09 20:13:48 -04:00
Kris Maglione
0e52c796bd page: fix for newer versions of ghostscript. 2009-05-25 23:55:04 -04:00
Russ Cox
f4d56d7218 page: remove lingering ref to ccitt-g4 2008-12-06 15:53:27 -08:00
Russ Cox
e9a2f2e357 page: reorder cvt[] array to match enum 2008-12-06 15:46:58 -08:00
Albert Lee
8f6514208e src/cmd/page/gfx.c: use C89 array initialiser 2008-12-01 19:24:34 -05:00
Russ Cox
a58a827f2a lib9: add mode parameter to opentemp 2008-07-10 11:10:10 -04:00
Russ Cox
60a3190327 page: add canonical -W option 2008-07-09 14:32:25 -04:00
rsc
e17c64a7cd fix troff input (Colin DeVilbiss) 2007-05-05 13:08:06 +00:00
rsc
5cd829d589 finish conversion to libthread; avoids extra page proc sticking around (Tim Wiess) 2007-04-03 12:50:49 +00:00
rsc
05a4d855f1 add page (Kris Maglione) 2007-03-26 20:55:26 +00:00
rsc
cbeb0b26e4 Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
rsc
17157e4aa8 update lucida 2006-03-20 02:25:59 +00:00
rsc
9e6fcbd790 forgot this 2005-01-04 22:31:35 +00:00
rsc
24c02865d8 placeholder; does not yet build 2005-01-04 21:23:50 +00:00