New issue
Advanced search Search tips

Issue 890322 link

Starred by 9 users

Issue metadata

Status: Fixed
Owner:
Closed: Oct 2
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 2
Type: Compat



Sign in to add a comment

Problem with printing of certain pdf pages (OK in viewer)

Reported by alexey.m...@gmail.com, Sep 28

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0

Example URL:

Steps to reproduce the problem:
1. Load attached pdf into Chrome
2. Print pdf
3. 

What is the expected behavior?
Printed version exactly matches version in viewer/version in other browsers pdf/viewers

What went wrong?
Some field are missing in printed version, for example number 173082622170111

Does it occur on multiple sites: N/A

Is it a problem with a plugin? No 

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 69.0.3497.100 (Official Build) (64-bit)  Channel: stable
OS Version: 10.0
Flash Version: 

work's ok with installed PDF.Viewer (or other pdf.js extension). Looks like a problem with pdfium
 
DMP.pdf
477 KB Download
Labels: Needs-Triage-M69
Components: Internals>Printing Internals>Plugins>PDF
Labels: OS-Chrome OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)
Labels: -Needs-Triage-M69
Owner: thestig@chromium.org
Status: Assigned (was: Untriaged)
As an example, one of the form objects has a bounding box of:

/BBox [0.0 17.0079 212.037 0.0] # LBRT

Because Bottom is above Top, the process that flattens the PDF gets confused and decides the form fields has a height of 0. Naturally, the code believes it would be silly to draw invisible objects.
Labels: M-71
Status: Fixed (was: Assigned)
Project Member

Comment 6 by bugdroid1@chromium.org, Oct 2

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

commit 1a3f3f12757b853dda70c3d4bed06a4f0fbb901c
Author: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Date: Tue Oct 02 22:42:55 2018

Roll src/third_party/pdfium e8b02fb54234..7f47c50227fb (5 commits)

https://pdfium.googlesource.com/pdfium.git/+log/e8b02fb54234..7f47c50227fb


git log e8b02fb54234..7f47c50227fb --date=short --no-merges --format='%ad %ae %s'
2018-10-02 thestig@chromium.org Use smart pointers in CPDF_PageRenderCache.
2018-10-02 thestig@chromium.org Remove dead code in CPDF_PageRenderCache::ResetBitmap().
2018-10-02 thestig@chromium.org Fix nits in gold.py.
2018-10-02 thestig@chromium.org Retry fetching Gold JSON data.
2018-10-02 thestig@chromium.org Normalize widget bounding boxes when flattening.


Created with:
  gclient setdep -r src/third_party/pdfium@7f47c50227fb

The AutoRoll server is located here: https://autoroll.skia.org/r/pdfium-autoroll

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

If the roll is causing failures, please contact the current sheriff, who should
be CC'd on the roll, and stop the roller if necessary.



BUG= chromium:890322 
TBR=dsinclair@chromium.org

Change-Id: If12a958b7b098357410d253584fa959db17fd135
Reviewed-on: https://chromium-review.googlesource.com/c/1257708
Reviewed-by: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/master@{#596016}
[modify] https://crrev.com/1a3f3f12757b853dda70c3d4bed06a4f0fbb901c/DEPS

Cc: thestig@chromium.org weili@chromium.org
 Issue 520095  has been merged into this issue.
Cc: hnakashima@chromium.org
 Issue 567165  has been merged into this issue.

Sign in to add a comment