Open Bug 2000549 Opened 1 year ago Updated 5 months ago

Documents from "Proton Docs" print with some lines sliced in half at page-breaks

Categories

(Core :: Printing: Output, defect)

defect

Tracking

()

People

(Reporter: 1zgoo2hl2, Unassigned)

References

(Depends on 1 open bug)

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (Android 15; Mobile; rv:138.0) Gecko/138.0 Firefox/138.0

Steps to reproduce:

When I print a multi-page file from Proton Docs, the only way to save it as a PDF is to print the page using Print to PDF. However, Firefox cuts off words if it decides to put them on multiple pages. This does not happen in Opera.

Actual results:

When printing a PDF from Proton Docs, the text is split across two pages and then cut off.

Expected results:

Create a PDF without words being cut off, as happens on Chromium.

The Bugbug bot thinks this bug should belong to the 'Firefox for Android::General' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → General
Product: Firefox → Firefox for Android

The severity field is not set for this bug.
:towhite, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(towhite)
Component: General → PDF Viewer
Flags: needinfo?(towhite)
Product: Firefox for Android → GeckoView

The pdf is created with a pdf printer so the viewer isn't involved here.

Component: PDF Viewer → Printing: Output
Product: GeckoView → Core
Attached image image.png —

On windows 11, the print preview in Firefox and Chrome show the same cut text.

Using the same Proton Docs document, I get two different results between Firefox and Opera on both Windows and Mac.

I just tried in Opera with my "Hello World" document and the result is the same as in Firefox and Chrome.

Is there a Proton Docs document that reproduces the issue, that you can share a link to here so we can try to use it to replicate the problem? (It looks like Calixte already tried with a document that he wrote himself, and he wasn't able to reproduce any Firefox-specific badness.)

Or if it's not possible to generate/share a public link with Proton Docs (not sure), maybe you could share steps that reliably result in a "bad" document on your end? (e.g. something like: create a doc, paste in five copies of [some reference paragraph that you're using], select-all, change font size to N, and then print-preview with A4 as the selected paper size)

Flags: needinfo?(1zgoo2hl2)

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

Is there a Proton Docs document that reproduces the issue, that you can share a link to here so we can try to use it to replicate the problem? (It looks like Calixte already tried with a document that he wrote himself, and he wasn't able to reproduce any Firefox-specific badness.)

Or if it's not possible to generate/share a public link with Proton Docs (not sure)

(good news, it looks like it should be possible to generate/share a public link, per https://proton.me/support/drive-share-docs - "To make a document accessible to a wider audience, you can create a public link. This allows anyone with access to the link to view the document.")

So: best way forward here would be for you to craft a doc that reproduces the problem & that you're comfortable sharing, and then we can take a look. Thanks!

I have enabled you to edit this shared document https://drive.proton.me/urls/NHFEF9TY98#xzKIfbtXR1Q2. The document is divided into two pages, which are perfectly split. With Firefox, the words are cut off.

Flags: needinfo?(1zgoo2hl2)

Thanks. I can confirm the issue in that document.

Using the menu from the filename at the top left and choosing "Print", I get a print-preview dialog in both Firefox and Chrome; and it does appear to split nicely into two pages in Chrome, whereas in Firefox Nightly, some text is sliced at the bottom of page 1 (depending on the exact page size). If I adjust the page margins in Chrome in an attempt to trigger the issue there, a whole line of text moves to the next page, without being sliced.

The difference can be seen more readily if I increase the font size to e.g. 96px (which I did in my own copy of the document, which I created to avoid messing with & depending on the publicly-editable version). Firefox slices text at the bottom of many pages, whereas Chrome only slices footnote-markers (the super-scripts with numeric content like [1]).

If I toggle layout.display-list.improve-fragmentation to false, then the second page is just entirely blank. So we're relying on the "fragmentation fallback" codepath here, and this is a version of bug 1759926.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Depends on: 1759926
Ever confirmed: true
Version: Firefox 138 → Trunk
Summary: Incorrect PDF printing → Documents from "Proton Docs" print with some lines sliced in half at page-breaks

Problem still present

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: