<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [PATCH] pdftops does not crop"
href="https://bugs.freedesktop.org/show_bug.cgi?id=30692#c15">Comment # 15</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [PATCH] pdftops does not crop"
href="https://bugs.freedesktop.org/show_bug.cgi?id=30692">bug 30692</a>
from <span class="vcard"><a class="email" href="mailto:tsdgeos@terra.es" title="Albert Astals Cid <tsdgeos@terra.es>"> <span class="fn">Albert Astals Cid</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=30692#c14">comment #14</a>)
<span class="quote">> >if that is what you really want, why just not remove that parameter?
>
> There are several calls to makeBox(). One of the calls to makeBox() in
> PSOutputDev::checkPageSlice() uses the crop parameter.</span >
Ah, right, didn't see them
<span class="quote">>
> >i do think that it is the PSOutputDev that should be modified
>
> I think that Page::createGfx() is the right place because it calls makeBox()
> (which returns both the box and the crop flag) and it makes the crop
> decision when it sets arguments to new Gfx(). The further that you separate
> the place that has the information from the place that makes the decision,
> the messier it gets.
>
> Wouldn't doing it anywhere else require splitting Page::createGfx() into two
> parts or making more internals of Page or Gfx public?</span >
Why? The issue as I see it is that you give the PSOutputDev a box, and it
allows commands outside that box to be rendered, that is wrong and shall be
fixed at the PSOutputDev level, not somewhere else.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>