[Solved] Okular: font issue since update?

Everything about X, Gnome, KDE, ... and everything running on it

[Solved] Okular: font issue since update?

Postby linuxsat » 2018-01-09 09:02

Hello,

I am on debian 9.2 stretch with kde desktop on a laptop (DELL 5480),

I have a strange issue with okular: all was alright and now (maybe since the last security update) it doesn't read some of
my pdf files anymore especially those generated by Kile (even those generated a long time ago). Only mathematical symbol and pictures (if any) are displayed, not the text.

I tried with xpdf and also xournal and mupdf, xpdf produces the same result but xournal and mupdf read the files correctly.
Also okular print the files correctly.

I try also to change the fonts in okular back-end options without effect.

Now I edited a latex file with Kile and the problem disappears when the option
Code: Select all
\usepackage[T1]{fontenc}
(used for accents) is not used. Of course in that case the text is not properly displayed (accents are missing).

Kile seems not related to the problem because files are printed correctly and also other readers works properly.

So it seems that the problem comes from okular but I do not know how to solve it?
Last edited by linuxsat on 2018-01-30 15:37, edited 1 time in total.
linuxsat
 
Posts: 22
Joined: 2017-10-20 14:28

Re: Okular: font issue since update?

Postby dantefff » 2018-01-19 22:10

You are not alone. I'm also affected.
dantefff
 
Posts: 2
Joined: 2018-01-19 22:06

Re: Okular: font issue since update?

Postby bw123 » 2018-01-19 23:14

Can either of you provide a link to a sample .pdf that has the problem?

(small would be good, 2-3 pages under 100k if posssible)
User avatar
bw123
 
Posts: 2770
Joined: 2011-05-09 06:02
Location: TN_USA

Re: Okular: font issue since update?

Postby dantefff » 2018-01-20 20:50

Sure! Here you can download a very small example (single page) and its source in lyx and latex formats.

PDF: https://bugs.debian.org/cgi-bin/bugrepo ... pdf;msg=10
LaTeX: https://bugs.debian.org/cgi-bin/bugrepo ... tex;msg=10
LyX: https://bugs.debian.org/cgi-bin/bugrepo ... lyx;msg=10

And here the filled bug: https://bugs.debian.org/cgi-bin/bugrepo ... bug=887793

It seems that there are no text, but you can copy and paste it anywhere (in kate for example) and the text is there.
Evince displays it right but qpdfview has same issue, so I think it's related to poppler backend.
dantefff
 
Posts: 2
Joined: 2018-01-19 22:06

Re: Okular: font issue since update?

Postby bw123 » 2018-01-20 22:24

That's an unusual pdf on my system. xpdf doesn't like it, and throws a lot of syntax errors or some such.

It's a v1.5 pdf and I don't have any of those that I can find right away to see if it's an issue like that.

Looking at it with less, it thinks it's a binary, so maybe it is security related.

It's obviously not an okular bug, since it is an issue on several pdf progs. I don't think the qt/kde guys will pay any attention to the bug, but I guess we wait and see.
User avatar
bw123
 
Posts: 2770
Joined: 2011-05-09 06:02
Location: TN_USA

Re: Okular: font issue since update?

Postby linuxsat » 2018-01-25 07:08

Hi sorry for coming back to the thread so late I was very busy these past days.

As far as I understand the bug should come from the poppler backend, but poppler is also used by evince no?
https://en.wikipedia.org/wiki/Poppler_(software)

Did you know if there is a mean to convert a 1.5 pdf to some more recent version?
linuxsat
 
Posts: 22
Joined: 2017-10-20 14:28

Re: Okular: font issue since update?

Postby deborah-and-ian » 2018-01-25 08:19

This file loads fine without errors in Zathura.

FWIW, I've never had luck with T1. It always either omits special characters from certain languages or chokes during compile time. So I just use xetex to compile documents

Code: Select all
xelatex document.tex


and mostly use opentype/truetype fonts like this:

Code: Select all
\usepackage[utf8]{inputenc}
\usepackage{fontspec}
\setmainfont{Linux Libertine O}
\setsansfont{Liberation Sans}


EDIT: I've just checked. When LibreOffice creates an ISO compliant PDF that's supposed to be readable everywhere, it's actually still v1.4, so maybe 1.5 is not a good idea for every PDF viewer (especially bit rot quality 80s software like xpdf).
Debian GNU/Linux 9 Stretch w/Openbox

Acer Aspire E5-521G
AMD A8-6410 APU
4 GB RAM
integrated AMD Mullins
dedicated AMD Hainan Radeon R5 M240 2 GB
240 GB Toshiba Q300 SSD
Realtek RTL8111/8168/8411 ethernet
Qualcomm Atheros QCA9565 wireless
deborah-and-ian
 
Posts: 182
Joined: 2016-07-13 08:40

Re: Okular: font issue since update?

Postby linuxsat » 2018-01-25 13:01

Hi,
poppler and the related libraries have just been upgraded on my Stretch 9.2, and now okular works again :D so the problem
effectively cames from poppler as sugested by dantefff

@dantefff: is the problem solved for you?
@deborah-and-ian: Thanks for the "xelatex trick" I will use it if I have problem with T1 option.
linuxsat
 
Posts: 22
Joined: 2017-10-20 14:28

Re: Okular: font issue since update?

Postby roseway » 2018-01-25 17:40

I agree - the poppler libraries have been upgraded and I can see the test PDF in Okular now.
Eric
User avatar
roseway
 
Posts: 1485
Joined: 2007-12-31 22:50
Location: Kent, UK


Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable