diff --git a/src/core/fonts.js b/src/core/fonts.js index d9bf1d6f0..0f457bcb7 100644 --- a/src/core/fonts.js +++ b/src/core/fonts.js @@ -3390,7 +3390,13 @@ var Font = (function FontClosure() { }); } } else { - error('cmap table has unsupported format: ' + format); + warn('cmap table has unsupported format: ' + format); + return { + platformId: -1, + encodingId: -1, + mappings: [], + hasShortCmap: false + }; } // removing duplicate entries diff --git a/test/pdfs/.gitignore b/test/pdfs/.gitignore index b1905194f..fba469f6b 100644 --- a/test/pdfs/.gitignore +++ b/test/pdfs/.gitignore @@ -15,6 +15,7 @@ !arial_unicode_en_cidfont.pdf !asciihexdecode.pdf !bug1050040.pdf +!bug1200096.pdf !canvas.pdf !complex_ttf_font.pdf !extgstate.pdf diff --git a/test/pdfs/bug1200096.pdf b/test/pdfs/bug1200096.pdf new file mode 100644 index 000000000..140024bcc Binary files /dev/null and b/test/pdfs/bug1200096.pdf differ diff --git a/test/test_manifest.json b/test/test_manifest.json index f7c857bf2..a383cfd91 100644 --- a/test/test_manifest.json +++ b/test/test_manifest.json @@ -629,6 +629,13 @@ "link": false, "type": "eq" }, + { "id": "bug1200096", + "file": "pdfs/bug1200096.pdf", + "md5": "b6bd8df094b5d511c13ed095d2a07515", + "rounds": 1, + "link": false, + "type": "eq" + }, { "id": "hudsonsurvey", "file": "pdfs/hudsonsurvey.pdf", "md5": "bf0e6576a7b6c2fe7485bce1b78e006f",