Bug 45108 - Add support for cropping using mediaBox, cropBox, bleedBox, trimBox, artBox to all pdfto* utils
Summary: Add support for cropping using mediaBox, cropBox, bleedBox, trimBox, artBox t...
Status: RESOLVED MOVED
Alias: None
Product: poppler
Classification: Unclassified
Component: utils (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Mac OS X (All)
: medium enhancement
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-22 22:54 UTC by Jorge Hernández Valiñani
Modified: 2018-08-21 10:45 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Jorge Hernández Valiñani 2012-01-22 22:54:58 UTC
pdftoppm and pdf-cairo has the -cropbox option in order to "use the crop box rather than media box" of a PDF. How about the trimBox?

Right now, in order to get a PDF cropped using the trimBox, one has first to run `pdfinfo -box` on the PDF file, take note of the trimBox size which is in points, and then play with `pdftoppm -x ## -y ## -W ## -H ##`, for example, which are in pixels and hence dependent on the X/Y resolution in DPI being used. Pretty convoluted…
Comment 1 Albert Astals Cid 2012-01-23 11:18:58 UTC
We are ultra busy with other stuff, it would really help if you could provide the patch yourself (if you know some coding it should be a pretty simple task)
Comment 2 Jorge Hernández Valiñani 2012-01-25 03:54:04 UTC
I do not have the skills to do that.

A nicer enhancement, actually would be to have support for cropping using any of the boxes (mediaBox, cropBox, bleedBox, trimBox, artBox) with a simple param, across the whole line of pdfto* utils (and so, I changed the title of the report to reflect that).
Comment 3 Jorge Hernández Valiñani 2012-01-25 03:59:51 UTC
Just so this appears in search results after having changed the title. The request applies to all poppler-utils / xpdf-utils, i.e:

* pdftoppm (already with mediaBox and cropBox support, I believe)
* pdftocairo (already with mediaBox and cropBox support, I believe)
* pdftops
* pdftohtml
* pdftotext
Comment 4 GitLab Migration User 2018-08-21 10:45:00 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/351.


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.