Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Issue 1415413008: Fix printing of PDFs. They should not be cut off. (Closed)

Created:
5 years, 1 month ago by Lei Zhang
Modified:
5 years, 1 month ago
Reviewers:
raymes
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix printing of PDFs. They should not be cut off. r351729 fixed the case of a crop box being larger than a media box, but introduced a regression where it assumed non-existent crop boxes are the default size of 8.5 x 11. Instead, non-existent crop boxes should imply they are the same size as the media box. BUG=543304 Committed: https://crrev.com/8c6f10e481a5c2af50ac58d2971a171806015bc9 Cr-Commit-Position: refs/heads/master@{#356249}

Patch Set 1 : Do some cleanup #

Patch Set 2 : Simplify a couple of functions #

Patch Set 3 : Fix bug #

Total comments: 4

Patch Set 4 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -75 lines) Patch
M pdf/pdfium/pdfium_engine.cc View 1 2 3 8 chunks +96 lines, -75 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
Lei Zhang
See the diffs between patch sets for the step by step.
5 years, 1 month ago (2015-10-27 04:48:46 UTC) #2
raymes
lgtm - thanks for breaking this up :) Could we expand the CL description a ...
5 years, 1 month ago (2015-10-27 05:59:07 UTC) #3
Lei Zhang
On 2015/10/27 05:59:07, raymes wrote: > lgtm - thanks for breaking this up :) > ...
5 years, 1 month ago (2015-10-27 06:51:48 UTC) #5
Lei Zhang
https://codereview.chromium.org/1415413008/diff/40001/pdf/pdfium/pdfium_engine.cc File pdf/pdfium/pdfium_engine.cc (right): https://codereview.chromium.org/1415413008/diff/40001/pdf/pdfium/pdfium_engine.cc#newcode372 pdf/pdfium/pdfium_engine.cc:372: // Set the media box and/or crop box as ...
5 years, 1 month ago (2015-10-27 06:52:13 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1415413008/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1415413008/60001
5 years, 1 month ago (2015-10-27 06:52:43 UTC) #9
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 1 month ago (2015-10-27 07:35:39 UTC) #10
commit-bot: I haz the power
5 years, 1 month ago (2015-10-27 07:36:41 UTC) #11
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/8c6f10e481a5c2af50ac58d2971a171806015bc9
Cr-Commit-Position: refs/heads/master@{#356249}

Powered by Google App Engine
This is Rietveld 408576698