Bug 393459

Summary: text in file not shown in viewer
Product: [Applications] okular Reporter: Erik Quaeghebeur <bugs.kde.org>
Component: PDF backendAssignee: Okular developers <okular-devel>
Status: RESOLVED WORKSFORME    
Severity: normal CC: aacid
Priority: NOR Keywords: triaged
Version: 1.3.3   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: screenshot of file in viewer
screenshot of file in viewer with (invisible) text selected
screenshot of file fonts in viewer

Description Erik Quaeghebeur 2018-04-24 09:35:40 UTC
I have a pdf whose text is not shown in the viewer. However, when selecting text, the text can be selected. Also, in the print-preview the text is visible. When viewing the file with mupdf, the text is rendered.

It may be a bug in Okular, poppler, or a problem with the file. I cannot share the pdf here, but can send it to a developer upon request.
Comment 1 Albert Astals Cid 2018-04-24 17:29:59 UTC
Does pdftoppm have the same behaviour of not showing the text? If so it's defenitely not a bug in okular but may be a bug in poppler.
Comment 2 Erik Quaeghebeur 2018-04-24 19:04:19 UTC
(In reply to Albert Astals Cid from comment #1)
> Does pdftoppm have the same behaviour of not showing the text?
No, the ppm file do show the text.
Comment 3 Albert Astals Cid 2018-04-24 22:15:24 UTC
that is very strange, we'll need the file (though that doesn't mean we're going to work on a fix now or in the future, but without no file, that's a definite no, so let's have the file)
Comment 4 Erik Quaeghebeur 2018-04-25 06:53:54 UTC
Created attachment 112228 [details]
screenshot of file in viewer
Comment 5 Erik Quaeghebeur 2018-04-25 06:54:39 UTC
Created attachment 112229 [details]
screenshot of file in viewer with (invisible) text selected
Comment 6 Albert Astals Cid 2018-04-25 20:08:03 UTC
You probably have a wrong Helvetica font substitution configured on your system, please attach a screenshot of Files->Properties->Fonts
Comment 7 Erik Quaeghebeur 2018-04-25 20:16:40 UTC
Created attachment 112245 [details]
screenshot of file fonts in viewer
Comment 8 Albert Astals Cid 2018-04-25 20:25:10 UTC
it works for with with Nimbus provided by gsfonts, give it a try and make sure you tweak your fontconfig
Comment 9 Christoph Feck 2018-05-16 22:05:07 UTC
Erik, did comment #8 help to resolve the issue?
Comment 10 Erik Quaeghebeur 2018-05-17 07:36:48 UTC
(In reply to Christoph Feck from comment #9)
> Erik, did comment #8 help to resolve the issue?
I have not managed to try it out. My initial attempts stranded because I do not know how to get Nimbus to be selected for substitution. I inquired on the Gentoo forums, but did not get a response that helped me understand what I needed to do. Currently, I do not have the time to try further.
Comment 11 Erik Quaeghebeur 2018-07-19 13:11:59 UTC
(In reply to Albert Astals Cid from comment #6)
> You probably have a wrong Helvetica font substitution configured on your
> system, […]
When I open the file in inkscape, it appears that the text that is missing for me uses Arial and so the embedded font should be used, I would think.

(In reply to Albert Astals Cid from comment #8)
> it works for with with Nimbus provided by gsfonts, give it a try and make
> sure you tweak your fontconfig
I can't seem to get my fontconfig to choose Nimbus, even though it is installed. But perhaps that is another issue. I did manage to get TeX Gyre and Linux Libertine instead of Liberation Sans as replacements for Helvetica, but neither gave a difference, possibly because the Helvetica substitution is not the problem here.
Comment 12 Christoph Feck 2018-08-02 20:38:07 UTC
Maybe it's too obvious, but did you check if file '/usr/share/fonts/liberation-fonts/LiberationSans-Regular.ttf' exists? On my system, fonts are in '/usr/share/fonts/truetype/', but the actual font directories might be distribution-specific.
Comment 13 Erik Quaeghebeur 2018-08-02 22:23:06 UTC
(In reply to Christoph Feck from comment #12)
> […], but did you check if file
> '/usr/share/fonts/liberation-fonts/LiberationSans-Regular.ttf' exists?
Yes, and it does exist.

Also, I think that font is not the problem, as per my comment 11.
Comment 14 Andrew Crouthamel 2018-09-28 03:33:37 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 15 Erik Quaeghebeur 2018-09-28 07:09:28 UTC
I need further assistance in testing the proposed fontconfig-related modifications.
Comment 16 Justin Zobel 2022-12-01 04:34:35 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!