[Poppler-bugs] [Bug 39170] pdftoppm handles PDF files with cropbox not correct

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jul 18 12:49:50 PDT 2011


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

Albert Astals Cid <tsdgeos at terra.es> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #8 from Albert Astals Cid <tsdgeos at terra.es> 2011-07-18 12:49:50 PDT ---
> the white border is the right way to handle it?

the white border is not "the right way to handle it", the white border is there
in the pdf file and we render it because you ask us to do it.

> i think, if no -cropbox is set, the ppm have to be the whole width of 220,49mm
> in this example (without a white border over the red background).

Why? If you do not set the cropbox, we render according to the mediabox, and
the white rectangle is there, so we render it.

> if it's the right way, in which usage i shouldn't use -cropbox? 

When you want to render the mediabox instead of the cropbox

> a image with a white border seams corrupt for me.

Again, we add no white border at all, we just render what is on the pdf.

> and finally, i can't know that i have to use -cropbox with some pdfs.

Please read about the cropbox, mediabox, et al concepts regarding PDF because
it seems to me you really do not seem to know what you are talking about.
Basically you most probably always want the cropbox option.

I'm closing the bug because i see in no way we do anything wrong.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list