Ask Your Question
4

Export or print to PDF - no text

asked 2020-04-30 18:45:58 +0200

marcusadamski gravatar image

updated 2020-08-25 23:04:06 +0200

LeroyG gravatar image

Hello,

I've just installed a fresh operating system and LibreOffice. Using LibreOffice, the first issue I have is exporting to PDF, either by:

  • File-> print-> print to file
  • File -> Export As -> Export as PDF

Using both methods, no text is displayed in the resulting PDF. Through a little experimentation, I've also found the lines of a table are displayed in a PDF, but again any text is not.

I've attached an ODF with the phrase "The quick brown fox jumps over the lazy dog" inside a one cell table. I've also attached an image of the resulting PDF (forum will not allow a PDF to be uploaded) . On my system (and Google Docs), the cell borders are viewable, but the text is missing. If a document just contains text, the resulting PDF is blank.

Note: other applications on my system appear to "print to PDF" without an issue. So it's appears to be an issue with LibreOffice, rather than a system-wide issue.

System Details: Linux Lubuntu 20.04 LibreOffice 6.4.2.2

Any help / advice would be very welcome, as I use this feature a lot. Thanks, Marc

C:\fakepath\LO-test.odt C:\fakepath\lo-test.jpg

edit retag flag offensive close merge delete

Comments

No problem on my openSUSE 15.1 system with LibreOffice 6.4.3.2. Are you using Ubuntu's PPA for LibreOffice?

Opaque gravatar imageOpaque ( 2020-04-30 20:04:16 +0200 )edit

No - LibreOffice is preinstalled as part of the Lubuntu 20.04 distribution. Note immediately after installation, there was an update which was carried out (not sure if LO was updated as part of the update) - but again, this was from the Lubuntu update stream.

marcusadamski gravatar imagemarcusadamski ( 2020-04-30 22:14:45 +0200 )edit

Actually, just reloaded the Lubuntu 20.04 live disk, opened LO Write (pre-installed) , typed in some random text then exported to PDF. Had the same result - the text wasn't visible. So this issue can be reproduced on the live disk, without any changes

marcusadamski gravatar imagemarcusadamski ( 2020-04-30 22:21:14 +0200 )edit

Appears the issue has been raised in Lubuntu forums: https://discourse.lubuntu.me/t/libreo...

As PDF exports work with other system apps, unsure if the issue is with LibreOffice or the Lubuntu configuration.

marcusadamski gravatar imagemarcusadamski ( 2020-05-01 09:06:07 +0200 )edit
1

Could reproduce your problem, but it seems to be fixed now on Lubuntu 20.04 (not sure what action actually fixed it, but some minutes ago, I've performed a completely new install using sudo apt install libreoffie after having removed everything related to LibreOffice dpkg --list | awk '/ii/&&/libreoffice/{print $2}' | sudo xargs apt purge -y and sudo apt autoremove -y

Opaque gravatar imageOpaque ( 2020-05-01 13:29:47 +0200 )edit

Hello. I was dealing with the same problem, also. I recently also did a fresh install of Lubuntu 20.04 LTS... Thanks for reporting this problem, marcusadamski. However, I did exactly what Opaque suggest and I also don't know how but this solve the exporting PDF problem with LibreOffice. Thanks, Opaque!

Omar Bautista González gravatar imageOmar Bautista González ( 2020-05-01 21:35:24 +0200 )edit

I have the same problem with LibreOffice 6.4.3.2 that came with Lubuntu 20.04 Omar's (Opaque's) solution works.

holy-harp gravatar imageholy-harp ( 2020-06-02 14:00:37 +0200 )edit

I'm on Lubuntu 20.04 and Opaque's solution worked for me!

wankelrx8 gravatar imagewankelrx8 ( 2020-07-16 19:03:20 +0200 )edit

For me it didn't work (Lubuntu 20.04 LTS).

AndyLu gravatar imageAndyLu ( 2021-01-07 23:25:42 +0200 )edit

Found an answer that worked for me: SAL_USE_VCLPLUGIN=kf5 in LUBUNTU MENU: Preferences -> LXQt settings -> Session settings -> Environment variables. Previously, it was set to qt5. The change to kf5 did it for me, finally.

AndyLu gravatar imageAndyLu ( 2021-01-07 23:43:36 +0200 )edit

2 Answers

Sort by » oldest newest most voted
1

answered 2020-05-08 17:32:27 +0200

It seems that the problem is solved with the suggestion that Opaque wrote, with a few additions using the bash terminal:

sudo apt-get remove --purge libreoffice
dpkg --list | awk '/ii/&&/libreoffice/{print $2}' | sudo xargs apt purge -y
sudo apt autoremove -y
sudo apt install libreoffice

Regards,

edit flag offensive delete link more

Comments

This works for me on Lubuntu 20.04!

wankelrx8 gravatar imagewankelrx8 ( 2020-07-16 19:03:46 +0200 )edit

then if the window of Tools>Options... and its font-size are too small, and if the symbols of the symbol bar are different, just visit:
https://ask.libreoffice.org/en/questi...

ralf3 gravatar imageralf3 ( 2020-08-03 16:45:38 +0200 )edit

For me it didn't work, I still have that problem on Lubuntu 20.04 LTS even after trying this solution, or that one similar to this: https://ask.libreoffice.org/en/questi...

AndyLu gravatar imageAndyLu ( 2021-01-07 23:20:18 +0200 )edit

Found an answer that worked for me: SAL_USE_VCLPLUGIN=kf5 in LUBUNTU MENU: Preferences -> LXQt settings -> Session settings -> Environment variables. Previously, it was set to qt5. The change to kf5 did it for me, finally.

AndyLu gravatar imageAndyLu ( 2021-01-07 23:43:42 +0200 )edit
0

answered 2020-08-28 17:01:13 +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

Comments

This is amazing. It solved my problem. I followed the other advice and it took an hour or so to repair the damage done. Simply sudo apt remove libreoffice-qt5 solved my printing woes.

kim27 gravatar imagekim27 ( 2020-10-01 16:31:52 +0200 )edit

That worked without reinstalling the whole package!! Thanks a lot!!!

dimpapa gravatar imagedimpapa ( 2020-12-01 11:02:56 +0200 )edit

On my Lubuntu 20.04 LTS - system it doesn't work, no matter if libreoffice-qt5 is installed or not.

AndyLu gravatar imageAndyLu ( 2021-01-07 23:23:13 +0200 )edit

Found an answer that worked for me: SAL_USE_VCLPLUGIN=kf5 in LUBUNTU MENU: Preferences -> LXQt settings -> Session settings -> Environment variables. Previously, it was set to qt5. The change to kf5 did it for me, finally.

AndyLu gravatar imageAndyLu ( 2021-01-07 23:43:48 +0200 )edit
Login/Signup to Answer

Question Tools

4 followers

Stats

Asked: 2020-04-30 18:45:58 +0200

Seen: 4,637 times

Last updated: Aug 28 '20