If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

PDFs randomly don't load their fonts in print preview or when printed

NEW
Unassigned

Status

()

Firefox
PDF Viewer
P3
normal
2 years ago
2 years ago

People

(Reporter: mwortham, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [pdfjs-c-integration][pdfjs-d-printing])

Attachments

(1 attachment)

(Reporter)

Description

2 years ago
Created attachment 8650749 [details]
Firefox40NoFormat.png

User Agent: Mozilla/5.0 (X11; CrOS x86_64 7077.134.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.156 Safari/537.36

Steps to reproduce:

Open PDF in firefox(local or web)
click print (in firefox menu)
view print preview

or 

Open PDF in firefox(local or web)
click print (in pdf viewer)
look at printed out paper 


Actual results:

At was appears to be random intervals the pdf will lose the text formatting. I observed this happens in about 20% of attempts. 

If using the firefox print option the print preview will show this issue. 
If printing using button in pdf plugin the printout will show this issue.

This was tested on both version 39 and 40 on 3 separate computers all running ubuntu linux.


Expected results:

The text should be formatted correctly every time when printing PDFs.

I attached the missing format screenshot but here is a link to both correctly and incorrectly formatted for reference. imgur.com/a/3mCS0.
Hello,

Are you still having this problem? If so, have you attempted to run this on Firefox 42.0?

When I attempted to reproduce this bug running on a unbuntu linux machine, everything was working fine.

Thank you,

Justin
Component: Untriaged → Printing: Output
Flags: needinfo?(mwortham)
Product: Firefox → Core
I was able to reproduce this once in a debug build of Nightly from a few days ago.  It only shows up for me right after changing the default font configuration.

My steps to reproduce (which even then don't work every time):

 1. load http://link.springer.com/content/pdf/10.1007%2Fs11263-011-0451-1.pdf (a freely available article from the same issue of the journal as the one in the screenshot above)

 1. In Edit -> Preferences -> Content -> Fonts & Colors, change the default font, preferably to something sans-serif that will make the bug pretty visible

 3. File -> Print Preview



It's not clear to me whether this is a bug in the fancy stuff that PDF.js does to load fonts for printing, or whether it's a bug in the Gecko implementation of that stuff.  I'm going to move this to the PDF.js component for now, at least for further diagnosis.
Component: Printing: Output → PDF Viewer
Flags: needinfo?(mwortham)
Product: Core → Firefox
Summary: PDFs randomly have no text formatting in print preview or when printed → PDFs randomly don't load their fonts in print preview or when printed
Version: 40 Branch → Trunk
(Er, I ended up seeing it a second time while writing that comment, but didn't see it in further attempts.)

Updated

2 years ago
Priority: -- → P3
Whiteboard: [pdfjs-c-integration][pdfjs-d-printing]
Status: UNCONFIRMED → NEW
Ever confirmed: true
You need to log in before you can comment on or make changes to this bug.