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

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Nov 19 15:46:46 PST 2012


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

--- Comment #12 from William Bader <williambader at hotmail.com> ---
Created attachment 70289
  --> https://bugs.freedesktop.org/attachment.cgi?id=70289&action=edit
patch against the 19 Nov 12 git source

I made a version of the patch against 19 Nov 12 source.  The patch still works
for me with the PDF that I attached previously.
createGfx() calls makeBox() and then Gfx().
makeBox() sometimes sets crop to FALSE, and then createGfx() does not pass a
crop box to Gfx().
The patch uses the original value of crop in the call to Gfx().
Some files, like the one that I attached, draw outside the crop box, so even if
the PDF sets a crop box of a given size, you still need to generate the
postscript commands to crop to that size.
William

-- 
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/20121119/3ee8e221/attachment.html>


More information about the Poppler-bugs mailing list