Bug 693931 - PDF that MuPdf can't display correctly
Summary: PDF that MuPdf can't display correctly
Status: RESOLVED FIXED
Alias: None
Product: MuPDF
Classification: Unclassified
Component: mupdf (show other bugs)
Version: 1.1
Hardware: PC Windows 7
: P4 normal
Assignee: Tor Andersson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-22 17:05 UTC by OLCC
Modified: 2014-02-17 04:41 UTC (History)
1 user (show)

See Also:
Customer:
Word Size: ---


Attachments
PDF file that MuPdf can't read (55.38 KB, application/pdf)
2013-04-22 17:05 UTC, OLCC
Details
Screenshot of the problem (135.09 KB, image/png)
2013-04-22 17:08 UTC, OLCC
Details

Note You need to log in before you can comment on or make changes to this bug.
Description OLCC 2013-04-22 17:05:51 UTC
Created attachment 9584 [details]
PDF file that MuPdf can't read

Hello,

The attached file can not be displayed correctly with MuPdf, whereas it is displayed correctly with Adobe Reader.
Comment 1 OLCC 2013-04-22 17:08:25 UTC
Created attachment 9585 [details]
Screenshot of the problem
Comment 2 Tor Andersson 2013-05-02 13:04:26 UTC
The input file is broken!

It uses Arial.ttf and accesses the internal glyph ordering (using an /Identity-H encoding) but has NOT embedded the font file. We use a substitute font for non-embedded fonts, but a substitute font can have a completely different internal glyph ordering. All bets are off! As you can see here it results in garbage.

I've implemented a workaround for this case (identity encoding and missing font) by using the ToUnicode mapping if it is available.

The ToUnicode mapping is used to to get search and copy & paste to work. It is not supposed to be used when drawing the page.
Comment 3 OLCC 2013-05-02 17:40:34 UTC
Thank you for the explanation. Adobe Reader displays the file correctly, though. Now, I shall tell the firm ThorLabs that they send broken PDFs to their customers :-)