Closed Bug 1865200 Opened 2 years ago Closed 2 years ago

[Needs Google fix] Google Docs native print output produces rasterized/unselectable text

Categories

(Web Compatibility :: Site Reports, defect)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dholbert, Unassigned)

References

Details

Attachments

(4 files)

STR:

  1. Be using a Google account that's opted in to the "native" print flow (which requires manual action from some Google folks for now), or using UA spoofing to pretend you're Chrome.
  2. Load a Google Doc with some text.
  3. Ctrl+P
    (Hopefully this triggers a print-preview popup. If it doesn't, go back to step 1.)
  4. Click through Firefox's print UI to choose the "Save to PDF" print target and go ahead and save it.
  5. Load the resulting PDF in a PDF viewer, and try to select the text, and try to zoom in.

ACTUAL RESULTS:
The text is unselectable, and it doesn't zoom crisply. It seems to just be a rasterized image.

EXPECTED RESULTS:
Selectable text that zooms crisply.

Here's the PDF that you get if you skip step 1, i.e. from just doing Ctrl+P when viewing the Google Docs testcase and saving the resulting server-side-generated PDF.

Depends on: 1865203
No longer depends on: 1865203

Here's a simple testcase taken from MDN with a canvas that has some text drawn onto it.

This works just the same in Chrome and Firefox, and it produces unselectable/rasterized text.

Google have a fix for this using mozPrintCallback incoming in the coming week or so. We'll need to retest then.

Flags: needinfo?(jwatt)
Flags: needinfo?(dholbert)
Summary: Google Docs native print output produces rasterized/unselectable text → [Needs Google fix] Google Docs native print output produces rasterized/unselectable text

The document linked in comment 1 is working now, and other other more complicated documents like this one also seem to be working. (There is some clipping at the left edge of some text in that one, but that would be a separate bug.)

Daniel, any objections to closing this? I'm pretty sure we don't have a way to test for strings in PDFs currently. :-/

Flags: needinfo?(jwatt)

(In reply to Jonathan Watt [:jwatt] from comment #7)

The document linked in comment 1 is working now

Verified working for me too.

and other other more complicated documents like this one also seem to be working. (There is some clipping at the left edge of some text in that one, but that would be a separate bug.)

Your "more complicated document" URL may've been a mispaste there -- right now it's the same link as in comment 1.

Could you file a bug for the clipping that you're seeing with whatever-that-document-is, if that's not already filed?

Daniel, any objections to closing this? I'm pretty sure we don't have a way to test for strings in PDFs currently. :-/

Sure, let's close as a WebCompat bug (i.e. fixed in the site).

(side note: I think we do have ways to test for strings in PDFs; Tobias added that in bug 1299848, and it looks like the failure message logging is at https://searchfox.org/mozilla-central/rev/da48f565f70a57ac28862090828fbaa7fd8556f6/layout/tools/reftest/reftest.sys.mjs#2211-2218 . But I'm not sure we can do much with making that into a new automated test here -- at least, not with "real" Google Docs.)

Status: NEW → RESOLVED
Closed: 2 years ago
Component: Printing: Output → Desktop
Flags: needinfo?(dholbert)
Product: Core → Web Compatibility
Resolution: --- → FIXED
Flags: needinfo?(jwatt)
See Also: → 1889252

(In reply to Daniel Holbert [:dholbert] from comment #8)

(In reply to Jonathan Watt [:jwatt] from comment #7)

and other other more complicated documents like this one also seem to be working. (There is some clipping at the left edge of some text in that one, but that would be a separate bug.)

Your "more complicated document" URL may've been a mispaste there -- right now it's the same link as in comment 1.

Could you file a bug for the clipping that you're seeing with whatever-that-document-is, if that's not already filed?

Unfortunately I've not been able to figure out which one I was referring to there. :-/

Flags: needinfo?(jwatt)
See Also: → 1908587
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: