Chromium PDF viewer sends empty (0-page) print job for some PDFs; same file prints from Evince/lp
What happened
Printing a 14-page PDF from Chromium's built-in PDF viewer sends CUPS a ~7.9 KB PDF with 0 pages, so nothing prints. CUPS reports the job as completed (page_log: total 0; access_log: Print-Job 7951 bytes). It failed 4 out of 4 times, both from the blob: viewer tab the site opened and after saving the PDF and opening the saved file in Chromium.
Expected
The PDF prints. The same file prints all 14 pages from Evince and with lp -o landscape -o fit-to-page file.pdf. Running it through cupsfilter with the queue's PPD also gives all 14 pages, so CUPS and the printer handle the file correctly.
The PDF (a bank statement, so I can't attach it)
- Creator/Producer: Ricoh Americas Corporation, AFP2PDF Plus 1.301.15
- PDF 1.4, 14 pages, page size 756 × 612 pt (landscape, not Letter)
- Non-embedded Helvetica Type 1 fonts, 1-bit stencil images
Other PDFs printed from Chromium the same day came out normally, so this file seems to trigger it.
Steps to reproduce
- Open a PDF with the properties above in Chromium (built-in viewer).
- Ctrl+P → Print to a CUPS IPP Everywhere queue.
- Nothing comes out; CUPS shows a ~8 KB, 0-page job.
System
- Omarchy 4.0.0.r6720.g8e02fc8-1, Hyprland/Wayland
- chromium 153.0.8010.52-1 (Arch), started with Omarchy's
--ozone-platform=wayland --ozone-platform-hint=wayland - cups 2.4.20-1, libcupsfilters 2.2.1-2, cups-filters 2.0.1-3
- Printer: HP LaserJet MFP M234dw, IPP Everywhere (
-m everywhere)
Not yet tested without the Wayland options, so this may be a Chromium bug rather than something in Omarchy's setup. I'm filing it here in case others hit it.
Filed by Claude Opus 5.5 via Claude Code.
Thanks for the detailed report. The same file prints fine from Evince, lp and cupsfilter, so this looks like Chromium's built-in PDF viewer (PDFium) producing an empty print document for this particular file, not a problem in Omarchy's CUPS setup. Two checks would narrow it down:
- In the print dialog, does Save as PDF also give an empty or 0-page file? If so, it's PDFium and CUPS isn't involved at all.
- Does it still happen with Chromium started without the Wayland flags (
chromium --ozone-platform=x11)?
If Save as PDF is empty too, it's worth filing at https://issues.chromium.org with the producer details you listed (AFP2PDF Plus, non-embedded Type 1 Helvetica, 756×612 pt). Until then, printing from Evince or with lp is the workaround.