Bug 414678 - Okular does not render PDF version 1.2 or 1.3 documents correctly
Summary: Okular does not render PDF version 1.2 or 1.3 documents correctly
Status: RESOLVED WORKSFORME
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 1.8.3
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-30 04:49 UTC by Jim Sanderson
Modified: 2019-12-02 00:21 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Two files in this archive (210.21 KB, application/pdf)
2019-11-30 08:18 UTC, Jim Sanderson
Details
The file that "doesn't work" in Mageia 7 (60.94 KB, image/png)
2019-12-01 07:24 UTC, Yuri Chornoivan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Sanderson 2019-11-30 04:49:04 UTC
SUMMARY
PDF documents only show images and no text.  The text is there

STEPS TO REPRODUCE
1. Open PDF document where the format is version 1.2 or 1.3.

OBSERVED RESULT
Only images are displayed.  Text is invisible but still there.  It can be copied.

EXPECTED RESULT
Display PDF document.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.17.3
KDE Frameworks Version: 5.64.0
Qt Version: 5.12.4

ADDITIONAL INFORMATION
PDF Backend version 0.6.5
Poppler version 0.80.0
xcb windowing system
Kernel version: 5.3.0-23-generic

PDF versions 1.4 and above display properly.
I have loaded multiple documents with versions 1.2 and 1.3 into LibreOffice Draw and then exported them to PDF, which results in a version 1.5 PDF and the documents display properly.  This is my current workaround.

Anything initially created as version 1.4 or above are fine.

This happened after the upgrade to Kubuntu 19.10.

The backport ppa has been enabled and an update done.   Synaptic and Muon both say the system is up-to-date.
Comment 1 Yuri Chornoivan 2019-11-30 07:09:28 UTC
Can you attach a test file?

Thanks in advance for your answer.
Comment 2 Jim Sanderson 2019-11-30 08:18:40 UTC
Created attachment 124201 [details]
Two files in this archive

Both files are labeled with the PDF version.
Comment 3 Yuri Chornoivan 2019-11-30 08:26:19 UTC
There is an external usage of Microsoft™ core fonts in both of the attached files (Arial and Times New Roman). Please install ttf-mscorefonts-installer to see the text.

Works as expected with MS core fonts installed here.
Comment 4 Jim Sanderson 2019-12-01 00:45:26 UTC
Interesting.  I've had the core fonts installed for years and did a reinstall before reporting this just to be sure.  I currently show version 3.7ubuntu6 installed.

I will try a complete removal and a reinstall to see if there's any change.

Thanks for looking at this.
Comment 5 Jim Sanderson 2019-12-01 01:51:13 UTC
Okay, there's something else going on here.  I removed the core fonts from Synaptic, removed the core fonts directory from the cl and then reinstalled them from the cl.  I watched them download and agreed to the license.  The fonts downloaded and installed.  I can see them in the font management and use them in LibreOffice Calligra Words but they still won't render in any PDF lower than version 1.4.

No change.

Installed or reinstalled:
gir1.2-poppler-0.18
libpoppler-cpp0v5
libpoppler-glib8
libpoppler-qt5-1
libpoppler90
libpopplerkit0

No change.
Comment 6 Yuri Chornoivan 2019-12-01 07:24:56 UTC
Created attachment 124226 [details]
The file that "doesn't work" in Mageia 7

That's how it looks in my system (poppler 0.82, Okluar 19.12 (self-compiled)). I hope that this can help in detecting the source of the problem.
Comment 7 Jim Sanderson 2019-12-02 00:21:52 UTC
Yuri,

That clue helped.  Something has installed a font called "Twitter Color Emoji [1]" on my system.  I do not use Twitter.  I disabled the font and re-opened the non-working files and they render correctly now.  I'm not sure why this only affects PDF versions 1.2 and 1.3, though.  That's something for further study.

Again, thanks for the help and I hope that this tiny bit of info can help others.