Printing PDFs with N-up enabled does not center the contents |
|||
Issue descriptionChrome Version: 71.0.3559.0 / r559595 OS: Desktop platforms What steps will reproduce the problem? If necessary: (1) Go to chrome://flags (2) Turn on "Enable new Print Preview UI" (3) Turn on "Enable N-up printing" (4) Restart the browser Then: Then: (5) Navigate to https://www.irs.gov/pub/irs-pdf/fw4.pdf (6) Print (7) Select a printer with a non-symmetrical printable area. e.g. Bottom margin is bigger than the top margin. (8) Set "Pages Per Sheet" to 4 in the left pane. (9) Wait for the updated print preview to render. What is the expected result? The N-up preview should be centered, like for HTML content. See attached symmetrical.png. What happens instead? The N-up preview uses all of the available printable area, so it is not centered. See attached printable_area.png.
,
Sep 29
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/b479a1407f5668a5178c5adee0c6047273407546 commit b479a1407f5668a5178c5adee0c6047273407546 Author: Lei Zhang <thestig@chromium.org> Date: Sat Sep 29 05:40:30 2018 Merge two PDF N-up paths. PDFiumPrint and PDFiumEngineExports both have code to create N-up PDFs. Merge the two since they are nearly identical. For the PDFiumPrint caller, make it do fit the page into a symmetrical printable area, so N-up printing is consistent for PDF content and web content. BUG= 890058 Change-Id: I933b899434f3a3cd2d853529696629aed18461e7 Reviewed-on: https://chromium-review.googlesource.com/1250162 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Rebekah Potter <rbpotter@chromium.org> Cr-Commit-Position: refs/heads/master@{#595303} [modify] https://crrev.com/b479a1407f5668a5178c5adee0c6047273407546/pdf/pdfium/DEPS [modify] https://crrev.com/b479a1407f5668a5178c5adee0c6047273407546/pdf/pdfium/pdfium_engine_exports.cc [modify] https://crrev.com/b479a1407f5668a5178c5adee0c6047273407546/pdf/pdfium/pdfium_engine_exports.h [modify] https://crrev.com/b479a1407f5668a5178c5adee0c6047273407546/pdf/pdfium/pdfium_print.cc [modify] https://crrev.com/b479a1407f5668a5178c5adee0c6047273407546/pdf/pdfium/pdfium_print.h
,
Sep 29
,
Oct 1
Tried verifying the fix on the build without fix #71.0.3559.0 and build with fix #71.0.3567.0 on Windows 7 by following steps as per comment #0, but unable to observe the difference between both builds. Attached the screenshots for reference. thestig@ - Could you please help in confirming the fix. Thanks.! |
|||
►
Sign in to add a comment |
|||
Comment 1 by bugdroid1@chromium.org
, Sep 28