Bug 92017 - Bug in rendering documents using okular
Summary: Bug in rendering documents using okular
Status: RESOLVED DUPLICATE of bug 92048
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-16 04:25 UTC by Rahul Midha
Modified: 2015-09-27 13:44 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Test document with password as rahu8152 (126.60 KB, application/pdf)
2015-09-16 04:25 UTC, Rahul Midha
Details
Google Chrome's rendered document snapshot (190.98 KB, image/png)
2015-09-16 04:26 UTC, Rahul Midha
Details

Description Rahul Midha 2015-09-16 04:25:34 UTC
Created attachment 118307 [details]
Test document with password as rahu8152

Hi,

While discussing a bug in Okular, it seems that the bug lies in poppler. I have a document which shows blank contents when rendered with Okular whereas is perfectly rendered using Google Chrome.

I have attached the document and the screenshot of the document as rendered by google chrome.

The bug discussion for Okular can be seen at

https://bugs.kde.org/show_bug.cgi?id=352697

Okular version : 0.20.0 
Poppler version: 0.26.5
Comment 1 Rahul Midha 2015-09-16 04:26:38 UTC
Created attachment 118308 [details]
Google Chrome's rendered document snapshot
Comment 2 Albert Astals Cid 2015-09-16 20:04:46 UTC
Freetype doesn't want to render one of the fonts attached, i've asked them if the file can be made to work or we should workaround it.
Comment 3 Albert Astals Cid 2015-09-21 17:50:23 UTC
The document is malformed, has an embedded font that is not valid.

i thought we had a "if freetype can not open font default to doing font substitution", but it seems not?

Probably a patch to fix this would also fix https://bugs.freedesktop.org/show_bug.cgi?id=92048
Comment 4 suzuki toshiya 2015-09-23 07:39:06 UTC
Hi all,
Please find the discussion from Albert's query to FreeType developers.
http://lists.gnu.org/archive/html/freetype-devel/2015-09/msg00025.html

The embedded font lacks "hmtx" table which TrueType and PDF
spec classified as required table, so it should not be loaded.
FreeType2 developers think such font is dealt as unusable.

In fact, Adobe Reader complains as some resources of the PDF
could not be loaded, and the most texts are not displayed.
I'm afraid that Chromium browser silently substitutes the
incompletely-embedded font and display the text by other fonts.

I will check how Chromium handles the incompletely-embedded fonts.
Comment 5 Thomas Freitag 2015-09-27 09:57:19 UTC
The patch for bug 92048 solves also this bug in the splash backend.
Comment 6 Albert Astals Cid 2015-09-27 13:44:18 UTC

*** This bug has been marked as a duplicate of bug 92048 ***


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.