RESOLVED FIXED 123840
[mac] PDFDocumentImage is too big if PDF has a crop box smaller than the media box
https://bugs.webkit.org/show_bug.cgi?id=123840
Summary [mac] PDFDocumentImage is too big if PDF has a crop box smaller than the medi...
Tim Horton
Reported 2013-11-05 16:54:26 PST
PDFDocumentImage uses the media box unconditionally when determining the size of the image, which is wrong. It does the right thing (use crop box and fall back to media box if it's not there) in other places, though... so, make this consistent. Also, if the crop box origin is not 0,0, we double-translate by it, because PDFKit applies translation for us. <rdar://problem/15308765>
Attachments
patch (15.56 KB, patch)
2013-11-05 16:59 PST, Tim Horton
ap: review+
Tim Horton
Comment 1 2013-11-05 16:59:36 PST
Tim Horton
Comment 2 2013-11-05 17:11:31 PST
Note You need to log in before you can comment on or make changes to this bug.