summaryrefslogtreecommitdiff
path: root/print/ghostscript8/files/patch-lib:ps2epsi
blob: 06389642bb93750fec0763da4a3b3d7b63c0f31c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- lib/ps2epsi.orig	Sat Jun 23 01:09:22 2001
+++ lib/ps2epsi	Tue Apr 23 05:18:24 2002
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $Id: ps2epsi,v 1.7 2001/06/22 16:09:22 lpd Exp $
+# $Id: ps2epsi,v 1.7.2.1 2002/04/22 20:18:24 giles Exp $
 
 tmpfile=/tmp/ps2epsi$$
 
@@ -58,7 +58,8 @@
 cat << BEGINEPS
 save countdictstack mark newpath /showpage {} def /setpagedevice {pop} def
 %%EndProlog
-%%Page 1 1
+%%Page: 1 1
+%%BeginDocument: ${infile}
 BEGINEPS
 
 cat "${infile}" |
@@ -66,6 +67,7 @@
 	-e '/^%%[A-Za-z][A-Za-z]*[^!-~]*$/d' -e '/^%%[A-Za-z][A-Za-z]*: /d'
 
 cat << ENDEPS
+%%EndDocument
 %%Trailer
 cleartomark countdictstack exch sub { end } repeat restore
 %%EOF