Chromium print preview failed

Chromium seems to be broken in print functionalities in the last version.

  • Print preview fails (with the print preview failed message)
  • Option --print-to-pdf that is meant to go from html to pdf directly hangs forever

Anyone else experiencing this? Any fix known?

cups-pdf
(install it - it’ll add an additional virtual pdf printer)
might be what you are looking for

I have never not had it - so I don’t know how things used to behave with Chromium without it.

I’m not - but I’m not even using Arch/Manjaro at this time.

No, but i have cups pdf installed. No idea if it makes a difference.

I was relying on --print-to-pdf to use chromium as a way to programmatically convert webpages to pdf (not plain ones, but pages with matjax javascript rendered stuff).

So the preview works for you. In my case it does not even on my regular printer.

Just noticed that the problem is just when opening local html files (and maybe only certain files)

… and I never was - I was always “relying” on cups to print

Nothing specific to Chrome.

… yes but you cannot rely on cups only to print an html file with embedded javascript. You need something to render it first. And chromium was super nice, because in headless mode it renders and saves as pdf.

In any case, google-chrome-stable from the aur works just fine. Which is curious, because the version is almost the same.

no offence but I really would not know
I have cups-pdf installed and will not remove it to test whether Chromium
(or any other program)
would be able to print to pdf without it.

You might find this extension useful. It doesn’t save as PDF, but it does allow you to ‘filter out’ content (such as javascript) before saving.

Printing the resulting html file (to PDF) might be enhanced by this extension, allowing you to use cups-pdf.

Good luck.

This is issue Print preview render process crashes when printing some pages (#13) · Issues · Arch Linux / Packaging / Packages / chromium · GitLab

From my understaning of that report it is ultimately an issue with skia.

Fixed already downstream in arch. Please push the updated package to manjaro stable too soon.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.