[Poppler-bugs] [Bug 30692] [PATCH] pdftops does not crop

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Dec 1 10:21:38 PST 2012


https://bugs.freedesktop.org/show_bug.cgi?id=30692

--- Comment #15 from Albert Astals Cid <tsdgeos at terra.es> ---
(In reply to comment #14)
> >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.

Ah, right, didn't see them

> 
> >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?

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20121201/808c6de4/attachment-0001.html>


More information about the Poppler-bugs mailing list