New issue
Advanced search Search tips

Issue 713197 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: May 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 3
Type: Bug



Sign in to add a comment

Google Chrome not printing properly

Reported by gerryro...@gmail.com, Apr 19 2017

Issue description

Chrome Version       : <Copy from: 'about:version'>
OS Version: OS X 10.11.6
URLs (if applicable) :
Other browsers tested:
  Add OK or FAIL after other browsers where you have tested this issue:
     Safari 5:
  Firefox 4.x:
     IE 7/8/9:

What steps will reproduce the problem?
1.
2.
3.

What is the expected result


What happens instead of that?


Please provide any additional information below. Attach a screenshot if
possible.

When I print out a shipping label from www.interparcel.com on Safari or from the desktop it works fine. When I try to do it on Google Chrome it cuts off a portion of the print area.
I've attached the pdf file which is generated by inter parcel and the screenshot of how it try to print from Chrome.

How do I fix this?



 
Labels - 14377098 (2) 2.pdf
35.1 KB Download
Screen Shot 2017-04-19 at 16.14.35.png
63.0 KB View Download
Labels: Needs-Milestone
Cc: kkaluri@chromium.org
Labels: Needs-Feedback
gerryroxby@ Could you please help us with the sample html page for this issue for further triage.
Cc: rbpotter@chromium.org
Components: Internals>Printing
Labels: -Needs-Feedback -Needs-Milestone OS-Linux
Status: Untriaged (was: Unconfirmed)
There's no sample HTML page. The attached PDF is what the user is trying to print. It's A4 landscape, but for some reason we are not auto-rotating it.
Cc: -rbpotter@chromium.org
Labels: OS-Windows
Owner: rbpotter@chromium.org
Status: Started (was: Untriaged)
This happens on Windows too. 

The problem is that this PDF page is portrait oriented with a rotation of -90. It appears that negative rotation values are not handled correctly; we expect rotation to be 0 to 270. One example is in pdf_transform.cc; this hits a NOTREACHED() in line 133 in a debug build. If you manually edit the PDF so the page has rotation 270 instead, which should be equivalent, everything works as anticipated. Looks like we need to normalize rotation values read from PDFs.
Project Member

Comment 6 by bugdroid1@chromium.org, Apr 29 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/7988a5c627d0f19ab14ccddfa532db52076c6ce5

commit 7988a5c627d0f19ab14ccddfa532db52076c6ce5
Author: pdfium-deps-roller@chromium.org <pdfium-deps-roller@chromium.org>
Date: Sat Apr 29 02:21:35 2017

Roll src/third_party/pdfium/ 3b91290ba..ce8e51e6c (5 commits)

https://pdfium.googlesource.com/pdfium.git/+log/3b91290ba31e..ce8e51e6c444

$ git log 3b91290ba..ce8e51e6c --date=short --no-merges --format='%ad %ae %s'
2017-04-28 rbpotter Fix rotations
2017-04-28 thestig Clean up private methods in CBC_C40Encoder.
2017-04-28 tsepez Remove some more |new|s, part 4.
2017-04-28 thestig Limit recursion in CXML_Parser::ParseElement().
2017-04-28 thestig Disallow CPDF_FormField with deep node trees.

Created with:
  roll-dep src/third_party/pdfium
BUG= 713197 , 716526 


Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, see:
http://www.chromium.org/developers/tree-sheriffs/sheriff-details-chromium#TOC-Failures-due-to-DEPS-rolls


TBR=dsinclair@chromium.org

Change-Id: I81ccbaaacbb34cc9923714ca87841f2c756d6b3c
Reviewed-on: https://chromium-review.googlesource.com/490699
Reviewed-by: <pdfium-deps-roller@chromium.org>
Commit-Queue: <pdfium-deps-roller@chromium.org>
Cr-Commit-Position: refs/heads/master@{#468212}
[modify] https://crrev.com/7988a5c627d0f19ab14ccddfa532db52076c6ce5/DEPS

Status: Fixed (was: Started)
Tested this on Chrome Canary (60.0.3086.0) with Windows 10 and PDF is now correctly autorotated. Thus marking fixed for now, but please comment if this is not working on version 60.0.3086.0 or later and I will re-open the issue.

Sign in to add a comment