Open Bug 1896070 Opened 1 year ago Updated 1 year ago

Notify user if PDF generation fails

Categories

(Toolkit :: Printing, defect)

defect

Tracking

()

People

(Reporter: jfkthame, Unassigned)

References

Details

Spinning this off from bug 1895872 comment 8. As Adrian notes there, generating the output for Save to PDF might fail; if so, we should notify the user in some way that they haven't got a usable PDF file, not just silently ignore the error status.

See Also: → 1895872
Severity: -- → S3
Priority: -- → P3

A related upstream fix. The PDF surface was not propagating font subsetting failures to the surface when calling cairo_surface_finish().
https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/554

Depends on: 1901232

I've filed bug 1901232 for the low-level part of checking for a cairo error status on the surface. But it turns out that's not enough; even if we return a failure code from EndPage, the user doesn't get notified of the problem. So that's more of a printing UI issue that we'll still need to fix here.

I think the lack of notification to the user is more of a Toolkit:Printing issue; moving to that component.

Component: Printing: Output → Printing
Product: Core → Toolkit

The product::component has been changed since the backlog priority was decided, so we're resetting it.
For more information, please visit BugBot documentation.

Priority: P3 → --
You need to log in before you can comment on or make changes to this bug.