[Poppler-bugs] [Bug 72312] [patch] pdftops: Fixes/improvements for -origpagesizes

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Dec 22 13:11:56 PST 2013


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

--- Comment #44 from Adrian Johnson <ajohnson at redneon.com> ---
(In reply to comment #43)
> When running pdftops trhough (without any extra option) in
> https://bugs.kde.org/attachment.cgi?id=10851 the page size is changed by
> these patches.
> 
> Any idea why that is happening?

Looking at the output of pdfinfo -box:

Page size:      551 x 747 pts
MediaBox:           0.00     0.00   612.00   792.00
CropBox:           38.00     5.00   589.00   752.00
BleedBox:          38.00     5.00   589.00   752.00
TrimBox:           38.00     5.00   589.00   752.00
ArtBox:            38.00     5.00   589.00   752.00


The mediabox is different from the crop box. As noted in comment 18, pdftops
was using the media box as the page size but acroread uses the crop box for
display size and printing paper size, glib and qt use the crop box for display
size and pdfinfo as shown above uses the crop box as the page size.

I changed pdftops to use the crop box as the paper size (unless -nocrop is
specified) to be consistent with acroread and fix the printing of the pdfs in
this bug report.

-- 
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/20131222/5b521127/attachment.html>


More information about the Poppler-bugs mailing list