New issue
Advanced search Search tips

Issue 807250 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 820345
Owner: ----
Closed: Jan 17
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Compat



Sign in to add a comment

PDF opens in chrome displays as bold font but in other browsers as normal font

Reported by gopibill...@gmail.com, Jan 30 2018

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3334.0 Safari/537.36

Example URL:
https://drive.google.com/file/d/18IeiWQOFB9N7v8dB-d_87O7eo0YNI9JR/view

Steps to reproduce the problem:
1. Open the link in chrome you can see the calibri and calibri bold both font text as bold
2. open the link in any other browser you can see calibri as normal and calibri bold as bold which is the expected behaviour
3. 

What is the expected behavior?
Calibri should display the text in normal and calibri should display the text as bold , But both displayed in the bold.
Expected behaviour is like Arial font behaves you can see in the sample

What went wrong?
calibri font displayed as Bold in chrome pdf plugin but it should not be displayed in Bold format.

Same file (PDF) opens in expected formatting in other browsers.

Does it occur on multiple sites: N/A

Is it a problem with a plugin? N/A 

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 66.0.3334.0  Channel: canary
OS Version: 10.0
Flash Version: 

We are working in a big project and we suggested to use the Chrome instead of IE now the are not signing off the application because this issue.
Kindly let us know what to be done further
 
pdf_test.pdf
9.8 KB Download

Comment 1 by b...@chromium.org, Jan 30 2018

Components: Internals>Plugins>PDF
Owner: npm@chromium.org

Comment 3 by woxxom@gmail.com, Jan 30 2018

It's not a problem in Chrome's PDF plugin, but in Google Drive's rendering of the PDF.
The file is rendered correctly when opened locally in Chrome, but incorrectly when viewed via the first link in google drive.
Labels: Needs-Triage-M66
Labels: Needs-Feedback
Based on comment 3, should this be WontFix? We'd be happy to file a bug with the Google Drive team on your behalf.

Original bug reporter: Can you confirm you were using Google Drive inline PDF Viewer and not Chrome's PDF Viewer? The Drive PDF Viewer has the zoom buttons on the bottom edge. Chrome's PDF Viewer has them on the bottom-right corner.

Comment 6 by npm@chromium.org, Jan 30 2018

Some comments:
* I checked on Linux/Windows, and Drive does not show the bold but Chrome does. So technically this is not the correct bug tracker for this.
* The fonts are of course not embedded, the only way to know it is actually supposed to be bold is with the Flags on the FontDescriptor.
* I wonder if this is a problem with Drive having a poor choice of fonts available when they call PDFium to render the PDF, or if PDFium does a poor selection among those fonts.
* The issue is not with Google Drive , For the sample I have uploaded in the Drive.
* You can download the file attached and open with the google chrome so that you can simulate this issue.
* Also try to open in the windows 10 os since we all are using the Windows 10 OS so it may possibily able to simulate the issue with windows 10 on chrome browser by opening the file attached on the chrome.
pdf_test.pdf
9.8 KB Download
Project Member

Comment 8 by sheriffbot@chromium.org, Jan 31 2018

Cc: thestig@chromium.org
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "thestig@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 9 by npm@chromium.org, Jan 31 2018

Status: Assigned (was: Unconfirmed)
Oh it may be a Windows10-only issue. Before, I checked on Windows 7 using the drive link from the bug report. But I can confirm this is a problem in Chrome using Windows 10, with the file on #7. Note that this is a problem in both M63 and canary, so... most likely not a regression.

I can work on this once I get hands on a workstation that I can actually code in. The Win10 in our windows lab is unnervingly slow. If this needs a more tight timeline for resolution, the real PDFium team can take this bug from me.
Thanks for your reply , so when can i expect the fix to be in the chrome ?

Since our application is testing phase in Chrome we need his issue has to be resolved as soon as possible.

Comment 11 by npm@chromium.org, Feb 1 2018

This bug has been around for a while, does not seem to significantly impact user experience, and seems to only be reproducible in Windows 10. So I don't think it's highest priority for the PDF team. I don't have a timeline of when it will be fixed (I have not started working on it so don't have a sense of how hard it will be to fix). Once I do, I will update this bug.
I tested the link on Chrome (64.0.3282.140), Edge, and IE. All of them rendered the calibri line incorrectly. 

When the file was downloaded and opened locally, Chrome had the error, while Edge, IE, and Adobe Reader displayed it correctly. All of that was on Win 10.

The link displayed incorrectly for Chrome and IE on a Win 7 VM. 

When we can expect the fix to be in Chrome?

Comment 14 by npm@chromium.org, Feb 16 2018

Cc: npm@chromium.org
Owner: dsinclair@chromium.org
Assigning all my PDF bugs to dsinclair@ for triaging. Will not be working on PDFium for a month.
Hi guys, thought I'd add to this bug as I'm experiencing a similar issue.

I have had the problem now with Avenir, Verdana and Open Sans. We are generating PDF's in our app environment, and the rendering is buggy when viewed in Chrome. 

The PDF's view fine when opened in Acrobat Reader on the source machine (Win 10 instance in AWS), however when opened in Chrome they render inconsistently. Sometimes Bold/Normal text is inverted, so instances of normal text become bold. Other times the entire document is shown in bold. We have also seen it make some pages in a document completely bold, whereas other pages render correctly.

When the same document is brought onto a workstation in the office (OSX environment), the documents display fine in Acrobat reader, Safari and Firefox, however in Chrome (osx) they also display these weird rendering issues.

Where this differs from the original bug submission is that this behaviour is seen in the default chrome PDF viewer - not a Google Drive doucment.
Screen Shot 2018-04-13 at 2.45.33 pm.png
336 KB View Download
Hi Team,

When can we expect a fix which would resolve this issue in the Chrome?

Since we are waiting for migration from IE to Chrome only due to this issue , so kindly let us know the exact date when it can be fixed.
The bug is on our backlog but we have other work that we need to be done before someone will be available to look at this. We will update the bug when work has started.
Owner: ----
Status: Untriaged (was: Assigned)
Setting PDF bugs assigned to me back to untriaged so they can get re-assigned as needed.
Status: Available (was: Untriaged)
Similar problem, the attached PDF renders Bold fonts correctly in Edge, Firefox, Adobe and Chrome for Windows 7.
In chrome for Windows 10 the Bold fonts are ignored. (version 71).
PDF753484564.pdf
2.3 KB Download
FWIW bisected to r411761 = 8f7a478791623f4af72be16da30817f6ff753175 = crrev.com/2243953002
"Add Win32k lockdown for PPAPI processes to finch testing parameters."
Landed in 54.0.2828.0

Confirmed by observing bold fonts when running chrome --disable-win32k-lockdown

Comment 22 by thestig@chromium.org, Jan 17 (6 days ago)

re: comment 20 - Can you file a separate bug for your issue? The symptoms may be similar, but PDF fonts are complicated, so it's not obvious if they are the same issue.

re: comment 21 - Did you bisect the PDF for the original bug or the PDF in comment 20?

Comment 23 by thestig@chromium.org, Jan 17 (6 days ago)

I cannot reproduce this issue in Chrome anymore with pdf_test.pdf. Can anyone confirm?

I think https://pdfium.googlesource.com/pdfium.git/+/a2edb51d fixed this in Chrome 68.

Comment 24 by thestig@chromium.org, Jan 17 (6 days ago)

And I bisected the issue with pdf_test.pdf to a range that includes r505649, so I think this bug is a duplicate of  bug 820345 . Same root cause and same fix.

Comment 25 by woxxom@gmail.com, Jan 17 (6 days ago)

Comment 21's bisect is for 20's PDF753484564.pdf

Comment 26 by thestig@chromium.org, Jan 17 (5 days ago)

Mergedinto: 820345
Status: Duplicate (was: Available)
I filed bug 923086 for comment 20. I'm marking this bug as a duplicate.

Comment 27 by dpierang...@gmail.com, Jan 18 (5 days ago)

Thanks thestig@chromium.org .

Sign in to add a comment