From ccleon at mit.edu Mon Feb 6 09:28:00 2012 From: ccleon at mit.edu (Christopher Leon) Date: Mon, 06 Feb 2012 03:28:00 -0500 Subject: [tex-k] Rendering outside clipped region Message-ID: <20120206032800.sex1q04tss0o04og@webmail.mit.edu> Hello, I encountered some unexpected behaviour with epstopdf today, and I think it is a bug. I've attached a postscript file I made which has a triangular clipping region and circles which are both inside and outside the clipping region. When I open this file with ghostscript, it looks OK. However, when I convert it to a pdf with % epstopdf test.ps the output includes the circles which show up outside the clipped region. I have also tried using % ps2epsi test.ps % epstopdf test.epsi and again, some (but not all) of the circles outside the clipped region appear. Is there a command I should be using to avoid this type of problem? Thank you for your help, Chris -------------- next part -------------- A non-text attachment was scrubbed... Name: test.ps Type: application/postscript Size: 1576 bytes Desc: not available URL: From heiko.oberdiek at googlemail.com Mon Feb 6 18:41:46 2012 From: heiko.oberdiek at googlemail.com (Heiko Oberdiek) Date: Mon, 6 Feb 2012 18:41:46 +0100 Subject: [tex-k] Rendering outside clipped region In-Reply-To: <20120206032800.sex1q04tss0o04og@webmail.mit.edu> References: <20120206032800.sex1q04tss0o04og@webmail.mit.edu> Message-ID: <20120206174146.GA3017@oberdiek.my-fqdn.de> On Mon, Feb 06, 2012 at 03:28:00AM -0500, Christopher Leon wrote: > I encountered some unexpected behaviour with epstopdf today, and I think it is a > bug. I've attached a postscript file I made which has a triangular clipping > region and circles which are both inside and outside the clipping region. > > When I open this file with ghostscript, it looks OK. However, when I convert it > to a pdf with > > % epstopdf test.ps > > the output includes the circles which show up outside the clipped region. > > I have also tried using > % ps2epsi test.ps > % epstopdf test.epsi > > and again, some (but not all) of the circles outside the clipped region appear. Try a different ghostscript version. Yours sincerely Heiko Oberdiek -- From karl at freefriends.org Mon Feb 6 23:26:14 2012 From: karl at freefriends.org (Karl Berry) Date: Mon, 6 Feb 2012 14:26:14 -0800 Subject: [tex-k] Rendering outside clipped region In-Reply-To: <20120206032800.sex1q04tss0o04og@webmail.mit.edu> Message-ID: <201202062226.q16MQEMd002944@freefriends.org> Hi Chris -- I echo Heiko's thought, that whatever you are seeing is a function of the Ghostscript version. In essence, epstopdf just runs gs -sDEVICE=pdfwrite ... When I run your test file using gs 9.04, the result looks right to me, i.e., clipped. Perhaps there are some gs options that would help wrt clipping too, but I don't have anything specific to offer. Sorry. Best, Karl From ccleon at mit.edu Tue Feb 7 02:37:34 2012 From: ccleon at mit.edu (Christopher Leon) Date: Mon, 6 Feb 2012 20:37:34 -0500 (EST) Subject: [tex-k] Rendering outside clipped region In-Reply-To: <201202062226.q16MQEMd002944@freefriends.org> References: <201202062226.q16MQEMd002944@freefriends.org> Message-ID: Hello all, OK, I think the problem is solved. I have been viewing the pdfs I generate with % evince attachment.pdf which gives me the error. It's OK with gs 9.04! Chris On Mon, 6 Feb 2012, Karl Berry wrote: > Hi Chris -- I echo Heiko's thought, that whatever you are seeing is a > function of the Ghostscript version. In essence, epstopdf just runs > gs -sDEVICE=pdfwrite ... > > When I run your test file using gs 9.04, the result looks right to me, > i.e., clipped. > > Perhaps there are some gs options that would help wrt clipping too, but > I don't have anything specific to offer. Sorry. > > Best, > Karl >