When I either
a) export an odt. file to (“save as”) PDF or
b) print to file > PDF in Libreoffice Writer,
The result ist just the page header and images from the document end up in the pdf, the rest is blank - i.e. typed text from the .odt isn’'t rendered.
Exporting and .odg file from LO Draw to PDF works fine though.
Haven’t tried exporting other file formats to PDF or in other apps, but find it strange that Print To File is malfunctioning in the same way, because I thought that is a system wide feature provided by CUPS. Maybe LO Writer (but not Draw???) and CUPS both make use of the same library…?
EDIT: exporting .docx files from LO Writer has the same result. Exporting them from Onlyoffice yields a document full of weird glyphs (not what’s in the original)
I really don’t know what other information I could provide to make this a better question at the moment. I’m glad it works for you, but I’ve been doing this a lot too, it always used to work, but now, on my system it clearly is broken, inexplicably. I tried to explain the problem in all the detail that I can think of as relevant, but maybe you can think of other infos or things to try that haven’t come to my mind so far? Will it be better if I replace “broken” with “not working”?
Putting all the details in the title is probably not what we’re aiming for either…?
EDIT: I tried Libreoffice-Fresh. Now the resulting PDF contains the images, the page header (like before), plus all the words in bold - all the rest of the text is still missing.
Good question, thanks. I’ve tried several different files, and it works normally with some. The ones that have the same problem are all in Cantarell font (one of my favorites) - in LO fresh, only Cantarell bold words make it into the pdf, and in LO still, none at all (again, this used to work normally for me also with Cantarell, but not anymore)
Can you maybe try and reproduce it on your system?
Using libreoffice-still (7.4.6-1), I made a document with blocks of text in different fonts. Just like you, the block with Cantarell did not show in the exported PDF. The other text blocks appeared normally.
Interestingly, if I used the text selection tool in Okular, I could select the “blank” Cantarell lines and copy/paste the text back into LO Writer. So the text is there, but is not being rendered.
I can seconded the reproduced, exactly as you stated.
Using:
Version: 7.5.3.2 (X86_64) / LibreOffice Community
Build ID: 50(Build:2)
CPU threads: 8; OS: Linux 6.3; UI render: default; VCL: kf5 (cairo+xcb)
Locale: en-CA (en_CA.UTF-8); UI: en-US
7.5.3-2
Calc: threaded
Yes, it is the same for me. This font is not visible in a exported PDF.
The CUPS PDF printer (package: cups-pdf) which is not the same as print in file (which is the same as the export), produces an empty page and a GhostScript error
I don’t believe it is the same problem. Ghostscript (which is used by the CUPS PDF printer) can’t load the font.
Loading Cantarell-Regular font from /usr/share/fonts/cantarell/Cantarell-VF.otf... Error: /invalidfont in findfont
The main problem for Ghostscript seems to be that Cantarell is a OpenType variable font. I did not found out if Ghostscript should support a OpenType variable font. But I found older posts (2020), that indicates Ghostscript does not support this type of font.