1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-23 16:48:08 +02:00

Check that CIDFontType0 fonts does not actually contain OpenType font files (issue 6782)

*This patch follows a similar idea as PR 5756.*

The patch is based on the nice debugging done by Brendan in the referenced issue 6782.
A better way to handle this, and similar issues, would probably be to completely ignore what the PDF file claims about font type/subtype, and just check the actual data. But until that kind of rewrite happens, this patch should help.

Fixes 6782.
This commit is contained in:
Jonas Jenwald 2016-01-06 02:07:21 +01:00
parent 4399d01169
commit 896e390285
4 changed files with 21 additions and 1 deletions

View file

@ -14,6 +14,7 @@
!issue5946.pdf
!issue5972.pdf
!issue5874.pdf
!issue6782.pdf
!filled-background.pdf
!ArabicCIDTrueType.pdf
!ThuluthFeatures.pdf

BIN
test/pdfs/issue6782.pdf Normal file

Binary file not shown.

View file

@ -1472,6 +1472,13 @@
"link": false,
"type": "eq"
},
{ "id": "issue6782",
"file": "pdfs/issue6782.pdf",
"md5": "b423f709600daa5745cc6d8234f7c608",
"rounds": 1,
"link": false,
"type": "eq"
},
{ "id": "bug867484",
"file": "pdfs/bug867484.pdf",
"md5": "347af7b0ef7279b1a7f43b03bfda4548",