Bug 42291

Summary: PDF cropping ignored
Product: poppler Reporter: sam.halliday
Component: pdftohtmlAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED MOVED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description sam.halliday 2011-10-26 13:03:48 UTC
I submitted a bug report against Calibre, and they have passed the buck to poppler as the upstream source of the bug: https://bugs.launchpad.net/calibre/+bug/881717

I'll repeat the bug report here for convenience:

I have a PDF which I have cropped very tightly using the Briss Java application. I'm sure you know that cropping a PDF doesn't actually delete the content outside of the crop - it essentially just hides it when viewers pay attention to the boundary region.

However, the Calibre ebook-convert application (which uses poppler) seems to ignore the crop region and this results in MOBI output that contains file headers and footers - which is very frustrating. The Calibre devs tell me that poppler first converts the PDF into HTML and this is where the bug lies.

Could you please use the crop information that is contained in the PDF?

Happy to share an offending PDF with you, but I don't want to make it available at a public URL.
Comment 1 Albert Astals Cid 2011-10-26 13:25:52 UTC
Please send the pdf file.
Comment 2 Albert Astals Cid 2011-10-26 14:03:18 UTC
I don't know what you mean by cropping, but it is not what is known as cropping in the pdf world as the file as no cropbox defined. Can you please clarify what you mean?
Comment 3 sam.halliday 2011-10-26 14:07:13 UTC
I don't know what the technical term is in the PDF world, but I would presume it would be something like adding a border, padding, margin, visible region or something like that. In OS X Preview, it would be called cropping the file.

Does that help?
Comment 4 Albert Astals Cid 2011-10-26 14:14:35 UTC
No, i mean, tell me what should i see not in the pdf you sent me in which page.
Comment 5 GitLab Migration User 2018-08-20 22:08:45 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/214.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.