Bug 92048 - PDF rendered incompletely
Summary: PDF rendered incompletely
Status: NEW
Alias: None
Product: poppler
Classification: Unclassified
Component: cairo backend (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: poppler-bugs
QA Contact:
: 92017 (view as bug list)
Depends on:
Reported: 2015-09-19 15:22 UTC by Pastafarianist
Modified: 2015-09-27 13:45 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:

File with broken rendering (2.67 MB, text/plain)
2015-09-19 15:22 UTC, Pastafarianist
Screenshot of Chrome rendering (620.62 KB, image/png)
2015-09-19 17:45 UTC, Pastafarianist
Invalidates an embedded font and use an external font (3.38 KB, patch)
2015-09-27 09:55 UTC, Thomas Freitag
Details | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Pastafarianist 2015-09-19 15:22:39 UTC
Created attachment 118361 [details]
File with broken rendering

See the attachment. The summary block isn't rendered, unlike in Chrome.
Comment 1 Pastafarianist 2015-09-19 15:24:15 UTC
I note that the bug shows up in Okular under Kubuntu 15.04, so I'm not sure that I've chosen the frontend correctly.
Comment 2 Albert Astals Cid 2015-09-19 16:08:41 UTC
Since i don't have Chrome, please provide a rendering of how you think this should look like.
Comment 3 Pastafarianist 2015-09-19 17:45:51 UTC
Created attachment 118363 [details]
Screenshot of Chrome rendering
Comment 4 Thomas Freitag 2015-09-21 07:39:10 UTC
Adobe reader, either unix or windows, tells:
Cannot extract the embedded font 'Arial,Bold'. Some characters may not display or print correctly.
So I would guess the PDF is not welformed!
Comment 5 Albert Astals Cid 2015-09-21 17:48:45 UTC
Yeah the font stream is empty so the file is defenitely malformed.

Doesn't mean we could try actally rendering it, i thought we had a "if freetype can not open font default to doing font substitution", but it seems not?
Comment 6 Albert Astals Cid 2015-09-21 17:49:33 UTC
Probably a patch to fix this would also fix https://bugs.freedesktop.org/show_bug.cgi?id=92017
Comment 7 Thomas Freitag 2015-09-27 09:55:34 UTC
Created attachment 118464 [details] [review]
Invalidates an embedded font and use an external font

This patch solves it in the splash backend: if it encounters a problem with an embedded font it invalidates it and tries to find a matching external file.

It's probably such easy to solve it in the cairo backend, too.
Comment 8 Albert Astals Cid 2015-09-27 13:44:18 UTC
*** Bug 92017 has been marked as a duplicate of this bug. ***
Comment 9 Albert Astals Cid 2015-09-27 13:45:18 UTC
Pushed Thomas' patch + a leak fix from me.

Reassigning to cairo.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct.