Discussion:
[tex-k] Rendering outside clipped region
Christopher Leon
2012-02-06 08:28:00 UTC
Permalink
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: <http://tug.org/pipermail/tex-k/attachments/20120206/1997f315/attachment.ps>
Heiko Oberdiek
2012-02-06 17:41:46 UTC
Permalink
Post by Christopher Leon
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
--
Karl Berry
2012-02-06 22:26:14 UTC
Permalink
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 <more options> ...

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
Christopher Leon
2012-02-07 01:37:34 UTC
Permalink
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
Post by Karl Berry
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 <more options> ...
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
Loading...