[Poppler-bugs] [Bug 53133] New: [pdfinfo] Wrong page size info displayed if PDF uses CropBox
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sat Aug 4 17:30:03 PDT 2012
https://bugs.freedesktop.org/show_bug.cgi?id=53133
Bug #: 53133
Summary: [pdfinfo] Wrong page size info displayed if PDF uses
CropBox
Classification: Unclassified
Product: poppler
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: utils
AssignedTo: poppler-bugs at lists.freedesktop.org
ReportedBy: pipitas at gmail.com
Created attachment 65133
--> https://bugs.freedesktop.org/attachment.cgi?id=65133
1-page PDF with CropBox different from MediaBox
Attached is a 1-page PDF which uses...
... a media box of 667x950 pt, accompanied by
... a crop box of 595x842 pt (no bleed-, trim- or art box specified).
Yet pdfinfo reports as "page size" a value of 595x842 pt (when it should be
667x950 pt, or not?)
The value pdfinfo calculates here is the width and height of the trim box, not
the page size....
pdfinfo -box my-cropped.pdf
Producer: GPL Ghostscript 9.05
CreationDate: Sun Aug 5 01:35:27 2012
ModDate: Sun Aug 5 01:35:27 2012
Tagged: no
Form: none
Pages: 1
Encrypted: no
Page size: 595 x 842 pts (A4)
Page rot: 0
MediaBox: 0.00 0.00 667.00 950.00
CropBox: 0.00 0.00 595.00 842.00
BleedBox: 0.00 0.00 595.00 842.00
TrimBox: 0.00 0.00 595.00 842.00
ArtBox: 0.00 0.00 595.00 842.00
File size: 8494 bytes
Optimized: no
PDF version: 1.4
A 'competitor' to pdfinfo, podofopdfinfo, reports the expected value:
podofopdfinfo D my-cropped.pdf
Document Info
-------------
File: my-cropped.pdf
PDF Version: 1.4
Page Count: 1
Page Size: 667 x 950 pts
Editing the PDF's *trim* box values to [667 950] yields the correct *page*
size:
[....]
Page size: 667 x 950 pts
Page rot: 0
MediaBox: 0.00 0.00 667.00 950.00
CropBox: 0.00 0.00 667.00 950.00
BleedBox: 0.00 0.00 667.00 950.00
TrimBox: 0.00 0.00 667.00 950.00
ArtBox: 0.00 0.00 667.00 950.00
[....]
--
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