Ask Your Question
1

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 6.4.2.2 shipping with Lubuntu 20.04, I tried 6.3.6.2 and 6.4.3.2 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

5 Answers

Sort by » oldest newest most voted
1

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

Opaque gravatar image

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

Hello,

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

Reinstall

  • sudo apt install libreoffice

May be this will help you as well.

edit flag offensive delete link more

Comments

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 6.3.4.2 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
0

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

Comments

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
0

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

ralf3 gravatar image

updated 2020-08-03 16:19:53 +0200

First remove everything that is related to LibreOffice:

  • dpkg --list | awk '/ii/&&/libreoffice/{print $2}' | sudo xargs apt --yes purge
  • sudo apt --yes autoremove
  • sudo rm -r /usr/lib/libreoffice/*
  • (could be that the answer is something like "not found"; just ignore)

then reinstall libreoffice and its language and help-pages (if your language is not German: instead of "-de" change twice your language in the second line):

  • sudo apt update --yes
  • sudo apt install libreoffice libreoffice-l10n-de libreoffice-help-de --yes

-------------------------------------------------------

the disadvantages now:
- the window of Tools>Options... and its font-size are too small
- the symbols of the symbol bar are different
To solve this:

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

After those two lines the disadvantages disappear.

The reason: According to https://wiki.debian.org/LibreOffice under "Fixing Blank PDF Export":

This can be caused by using the wrong VCL (LibreOffice desktop integration module) for the desktop environment, such as "qt5" instead of "kf5".
...
The current VCL is shown in the Help > About LibreOffice dialog box.

In my libreoffice, under Help > About LibreOffice dialog box: the VLC is now gtk3

edit flag offensive delete link more
0

answered 2020-07-26 15:45:03 +0200

honku gravatar image

It worked really nice for me too. Great!!!

edit flag offensive delete link more

Comments

Is this spam?

ajlittoz gravatar imageajlittoz ( 2020-08-03 16:53:22 +0200 )edit
0

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
Login/Signup to Answer

Question Tools

2 followers

Stats

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

Seen: 1,530 times

Last updated: Aug 28