Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Solved] Okular: font issue since update?

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
linuxsat
Posts: 50
Joined: 2017-10-20 14:28
Has thanked: 1 time

[Solved] Okular: font issue since update?

#1 Post by linuxsat »

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.

dantefff
Posts: 2
Joined: 2018-01-19 22:06

Re: Okular: font issue since update?

#2 Post by dantefff »

You are not alone. I'm also affected.

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Okular: font issue since update?

#3 Post by bw123 »

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)
resigned by AI ChatGPT

dantefff
Posts: 2
Joined: 2018-01-19 22:06

Re: Okular: font issue since update?

#4 Post by dantefff »

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.

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Okular: font issue since update?

#5 Post by bw123 »

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.
resigned by AI ChatGPT

linuxsat
Posts: 50
Joined: 2017-10-20 14:28
Has thanked: 1 time

Re: Okular: font issue since update?

#6 Post by linuxsat »

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?

deborah-and-ian
Posts: 182
Joined: 2016-07-13 08:40

Re: Okular: font issue since update?

#7 Post by deborah-and-ian »

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

linuxsat
Posts: 50
Joined: 2017-10-20 14:28
Has thanked: 1 time

Re: Okular: font issue since update?

#8 Post by linuxsat »

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.

User avatar
roseway
Posts: 1528
Joined: 2007-12-31 22:50
Location: Kent, UK
Has thanked: 3 times
Been thanked: 4 times

Re: Okular: font issue since update?

#9 Post by roseway »

I agree - the poppler libraries have been upgraded and I can see the test PDF in Okular now.
Eric

Post Reply