Problem with printing of certain pdf pages (OK in viewer)
Reported by
alexey.m...@gmail.com,
Sep 28
|
||||
Issue descriptionUserAgent: 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
,
Oct 1
,
Oct 2
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.
,
Oct 2
The following revision refers to this bug: https://pdfium.googlesource.com/pdfium/+/3d3cf800a8aae4cd7ff237714e31f9a217667ad8 commit 3d3cf800a8aae4cd7ff237714e31f9a217667ad8 Author: Lei Zhang <thestig@chromium.org> Date: Tue Oct 02 18:01:26 2018 Normalize widget bounding boxes when flattening. BUG= chromium:890322 Change-Id: I11050b84cf440f8d6bb00c661360de4e389dc031 Reviewed-on: https://pdfium-review.googlesource.com/c/43290 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org> [modify] https://crrev.com/3d3cf800a8aae4cd7ff237714e31f9a217667ad8/fpdfsdk/fpdf_flatten.cpp [modify] https://crrev.com/3d3cf800a8aae4cd7ff237714e31f9a217667ad8/fpdfsdk/fpdf_flatten_embeddertest.cpp [add] https://crrev.com/3d3cf800a8aae4cd7ff237714e31f9a217667ad8/testing/resources/bug_890322.pdf [add] https://crrev.com/3d3cf800a8aae4cd7ff237714e31f9a217667ad8/testing/resources/bug_890322.in
,
Oct 2
,
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
,
Oct 11
,
Oct 12
|
||||
►
Sign in to add a comment |
||||
Comment 1 by phanindra.mandapaka@chromium.org
, Sep 30