[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#681843: ghostscript: ps2epsi inserts '\r' (0x0d)



tags 681843 + moreinfo
quit

Hi Ryo,

Ryo Furue wrote:

> /usr/bin/ps2epsi inserts '\r' in place of '\n' between 
> the "%%BoundingBox" and "%%HiResBoundingBox" lines
> and between "%%HiResBoundingBox" and "%%EndComments" lines.
>
> Because of this, gv (a PostScript viewer) cannot determine
> the bounding box of the output from ps2epsi .
>
> To reproduce, use the attached PS file and
>
>   /usr/bin/ps2epsi sample.ps

I get:

	$ ps2epsi sample.ps; echo $?
	blank page!!
	0
	$ cat sample.epsi 
	save countdictstack mark newpath /showpage {} def /setpagedevice /pop load def
	%%EndProlog
	%%Page 1 1
	save countdictstack mark newpath /showpage {} def /setpagedevice /pop load def
	%%Page 1 1
	cleartomark countdictstack exch sub { end } repeat restore
	%%Trailer
	cleartomark countdictstack exch sub { end } repeat restore
	%%EOF

Any idea what I'm doing wrong?

Thanks,
Jonathan


Reply to: