commit | e4d2853f126b1ba2dcb4f693af611c0ccea3c4fe | [log] [tgz] |
---|---|---|
author | xlou <xlou@chromium.org> | Tue Jul 31 22:03:34 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Jul 31 22:03:34 2018 |
tree | 4bf36f6369e87d232cdcacb0779819dd05ec5a16 | |
parent | 25406959371e27414b86a5a8a233a15978e1b207 [diff] |
Print Preview: Set page index as pageIndex when pagesPerSheet > 1. When sending URLs to the PDF plugin, the page index in the URL needs to be the page index for the displayed PDF document. When N-up > 1, this will not match the page index from the selected pages in the UI, since the N-up page numbers will be recalculated using the number of pages selected and pagesPerSheet Value. The new number of pages will be ceil(#pages selected/pagesPerSheet), and the index of the N-up pages will start from 0. Hence changing the function onPagePreviewReady_ to use the N-upped document index when pagesPerSheet > 1. In printing, 2-up, 3-up, or more generally N-up refers to a page layout strategy in which multiple pages are composited onto a single page. Bug: 775999 Change-Id: I1488431713815b573eb2798e23b011417b9fa46d Reviewed-on: https://chromium-review.googlesource.com/1155906 Commit-Queue: Shirleen Lou <xlou@chromium.org> Reviewed-by: Rebekah Potter <rbpotter@chromium.org> Cr-Commit-Position: refs/heads/master@{#579588}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .