We will be migrating from Ask to Discourse on the first week of August, read the details here

Ask Your Question

Cannot print anything, exporting to PDF produces blank PDF (Lubuntu 20.04)

asked 2020-05-03 15:57:47 +0200

nevertheless gravatar image

updated 2020-08-11 12:06:55 +0200

Alex Kemp gravatar image

I am using Lubuntu 20.04 and cannot get LibreOffice to print anything at all correctly. Either it prints blank pages, or some garbage (random [?] characters). Exporting to PDF usually the same; some PDF reader programs show errors. When opening the PDF document in a text editor, I found the following text:

% CreateFontSubset failed for font "Liberation Sans" weight=5

% CreateFontSubset failed for font "Liberation Sans" weight=8

The font names and wights vary, depending on which fonts are used in the document.

It seems that previously, someone else had the same issue - however, the link https://ask.libreoffice.org/en/questi... leads to an error page. :-(

I tried the version shipping with Lubuntu 20.04, I tried and directly from libreoffice.org - the issue remains the same.

Printing from any other software - including OpenOffice 4.1.7, which I installed despite preferring LibreOffice - works fine.

Any ideas?

Best, nevertheless

edit retag flag offensive close merge delete

4 Answers

Sort by » oldest newest most voted

answered 2020-05-03 16:19:52 +0200

Opaque gravatar image

updated 2020-05-03 16:29:55 +0200


I could fix that on my test system using the following procedure:

Completely remove anything related to LibreOffice

  • dpkg --list | awk '/ii/&&/libreoffice/||/libobasis/{print $2}' | sudo xargs apt purge -y ure
  • sudo apt autoremove -y
  • sudo rm -r /usr/lib/libreoffice/*

Note: Don't care about libobasis appearing here. I do use the command regularly to de-install TDF packages as well


  • sudo apt install libreoffice

May be this will help you as well.

edit flag offensive delete link more


Thank you very much! This works for me, too! I have no clue why as it was a fresh Lubuntu installation (no upgrade) that didn't work. OK, I kept my old user config files - but I still use them, and now it works...

nevertheless gravatar imagenevertheless ( 2020-05-03 22:56:03 +0200 )edit

If the answer helped to solve your problem, please click the check mark (✔) next to the answer.
[Update] Thanks for considering my comment(s) :-)

Opaque gravatar imageOpaque ( 2020-05-03 23:01:04 +0200 )edit

I had a similar problem. Install of LO under Lubuntu 20.04. Each time I printed all I got was:

PDF Error 118: Resource Not Found Resource not found:/F1

Problem seen on two separate systems

Above instructions worked a treat - all now working fine. Thanks for the solution! (wish I knew what had caused the problem though...)

Lister of Smeg gravatar imageLister of Smeg ( 2020-06-19 17:34:11 +0200 )edit

answered 2020-08-03 16:14:43 +0200

ralf3 gravatar image

updated 2021-02-10 16:21:13 +0200

this is completely enough:

sudo apt remove libreoffice-qt5

edit flag offensive delete link more


in Lubuntu 20.04.1 those 2 lines are completely enough:

sudo apt install libreoffice-kf5
sudo apt remove libreoffice-qt5

it works for me; so there is no need to remove and to reinstall LibreOffice;

In my LibreOffice, under Help > About LibreOffice dialog box: the VLC is now not qt5 any more, but gtk3

ralf3 gravatar imageralf3 ( 2020-10-28 13:49:51 +0200 )edit

Remove and reinstalling LibreOffice didn't solve the blank problem. Then I tried installing kf5 and uninstalling qt5 and it worked like magic. It also made the LibreOffice Writer look better.

Karunamayi gravatar imageKarunamayi ( 2020-10-31 10:56:10 +0200 )edit

Worked for me!

Hitendra gravatar imageHitendra ( 2020-11-23 08:29:13 +0200 )edit

The 2 sudo commands - sudo apt install libreoffice-kf5 sudo apt remove libreoffice-qt5 - from above worked for me also, but may I offer a warning to newbies from my experience. Make sure you exit from your current flawed LibreOffice write session, before you re-try to print. Details: When I issued the 2 sudo commands initially, I still observed my problem of a blank page only being emitted when I had attempted to print an entire .odt document. I made the mistake of not exiting from my LibreOffice write session from which could not print. I suspected my error and inspected with help > about LibreOffice dialog box and found the VLC was still connected to 'qt5'. I exited that session and launched Libre Office Write again, making no other changes. A second inspection of 'help > about LibreOffice showed the VLC pointed to the desired 'qtk43'. I issued another print in ...(plus)

snead_george@yahoo.com gravatar imagesnead_george@yahoo.com ( 2021-03-18 20:41:58 +0200 )edit

answered 2020-08-25 01:11:32 +0200

DanW58 gravatar image

updated 2020-08-25 02:51:59 +0200

I followed the given solutions and I still have the same problem. Lubuntu 20.10. The second time I uninstalled and reinstalled, I made sure to install the qt5 package of Libre Office first, but to no avail; I still get blank PDF's, and that is both in printing to a file and export PDF ways; same result. UPDATE: Also did the install kf5, remove qt5, and still getting same result; blank PDF. By the way, when I open the PDF, it shows me the blank PDF for a second, then the window closes. No error message or anything, just silently closes.

edit flag offensive delete link more


This is not a answer to the question but another comment, that a solution doesn't work for you. And please notice that the answer was related to Ubuntu 20.04 based systems and not to an daily build of upcoming 20.10 releases. Hence you applied a solution to a system, which wasn't targeted by the solution.

Opaque gravatar imageOpaque ( 2020-08-25 11:07:34 +0200 )edit

I'm sorry; it's my first time here, and when I tried to post my comment the interface read "Post Answer", for some reason, and there seemed to be no way of persuading the interface to switch to a comment. Regarding the version of Lubuntu, again I did not know it mattered so much; and it was actually 20.04 until yesterday, when after an autoupdate I saw "version 20.10" flash on the screen for a fraction of a second; I was never able to verify whether it is actually changed. I'm sure there's some arcane shell command to find out in unix, but I'm new to unix (or posix, or whatever). I can tell you for sure my version was 20.04 when this problem started; and I've already followed the solutions presented here 3 times with no success.

DanW58 gravatar imageDanW58 ( 2020-08-25 20:18:52 +0200 )edit

answered 2020-08-28 16:57:27 +0200

Make sure you have libreoffice-gtk3 installed, and libreoffice-qt5 uninstalled.

With the LUbuntu distribution 20.04.1 LTS (LXQt 0.14.1), if libreoffice-qt5 is installed, LibreOffice will use it. And this apparently kills printing and PDF exports. After I unistalled libreoffice-qt5, printing and PDF export from under LibreOffice started to work I think OK.

I did not have to reinstall the whole LibreOffice for that fix to work. My LUbuntu distribution 20.04.1 LTS was an upgrade from the previous 19 LUbuntu. No particular tweaks/tricks. After 20.04.1 LTS upgrade, LibreOffice, as others noted, stopped printing or exporting PDFs correctly.

edit flag offensive delete link more


This one works for me. The only thing I had to do was:

sudo apt purge -y libreoffice-qt5

Many thanks, J.

JacekC gravatar imageJacekC ( 2020-10-29 19:27:59 +0200 )edit

It's work! Thanks!

svv gravatar imagesvv ( 2020-12-02 21:19:51 +0200 )edit
Login/Signup to Answer

Question Tools



Asked: 2020-05-03 15:57:47 +0200

Seen: 3,980 times

Last updated: Feb 10