diff --git a/src/core/standard_fonts.js b/src/core/standard_fonts.js index 024941685..63fe68e6b 100644 --- a/src/core/standard_fonts.js +++ b/src/core/standard_fonts.js @@ -482,6 +482,10 @@ const getGlyphMapForStandardFonts = getLookupTableFactory(function (t) { t[169] = 171; t[170] = 187; t[171] = 8230; + t[179] = 8220; + t[180] = 8221; + t[181] = 8216; + t[182] = 8217; t[200] = 193; t[203] = 205; t[210] = 218; diff --git a/test/pdfs/.gitignore b/test/pdfs/.gitignore index d8859cf1d..69d37a951 100644 --- a/test/pdfs/.gitignore +++ b/test/pdfs/.gitignore @@ -489,6 +489,7 @@ !transparent.pdf !issue13931.pdf !xobject-image.pdf +!issue15441.pdf !issue6605.pdf !ccitt_EndOfBlock_false.pdf !issue9972-1.pdf diff --git a/test/pdfs/issue15441.pdf b/test/pdfs/issue15441.pdf new file mode 100644 index 000000000..b56451889 --- /dev/null +++ b/test/pdfs/issue15441.pdf @@ -0,0 +1,102 @@ +%PDF-1.7 +13 0 obj +<< +/Type /Catalog +/Pages 14 0 R +>> +endobj +14 0 obj +<< +/Type /Pages +/MediaBox [ 0 0 225 50 ] +/Count 1 +/Kids [ 15 0 R ] +>> +endobj +15 0 obj +<< +/Type /Page +/Parent 14 0 R +/Resources << +/Font << +/F1 16 0 R +>> +>> +/Contents 17 0 R +>> +endobj +16 0 obj +<< +/Type /Font +/Subtype /Type0 +/BaseFont /Arial,Bold +/Encoding /Identity-H +/DescendantFonts [ 9 0 R ] +>> +endobj +17 0 obj +<< +/Length 75 +>> +stream +BT +10 20 TD +/F1 20 Tf +<00b300240025002600b4000300b500440045004600b6> Tj +ET + +endstream + +endobj +9 0 obj +<< +/Type /Font +/Subtype /CIDFontType2 +/BaseFont /Arial,Bold +/CIDSystemInfo << +/Registry (Adobe) +/Ordering (Identity) +/Supplement 0 +>> +/W [ 182 [ 277.832 ] ] +/FontDescriptor 10 0 R +>> +endobj +10 0 obj +<< +/Type /FontDescriptor +/Ascent 728 +/CapHeight 0 +/Descent -210 +/Flags 32 +/FontBBox [ -628 -376 2000 1056 ] +/FontName /Arial,Bold +/ItalicAngle 0 +/StemV 0 +>> +endobj +xref +0 1 +0000000000 65535 f +9 1 +0000000500 00000 n +10 1 +0000000698 00000 n +13 1 +0000000009 00000 n +14 1 +0000000060 00000 n +15 1 +0000000146 00000 n +16 1 +0000000252 00000 n +17 1 +0000000373 00000 n +trailer +<< +/Size 7 +/Root 13 0 R +>> +startxref +871 +%%EOF \ No newline at end of file diff --git a/test/test_manifest.json b/test/test_manifest.json index f577e88a7..0342eb23d 100644 --- a/test/test_manifest.json +++ b/test/test_manifest.json @@ -441,6 +441,12 @@ "rounds": 1, "type": "eq" }, + { "id": "issue15441", + "file": "pdfs/issue15441.pdf", + "md5": "4a30ea4c8d32fc7dee2a26f78b24966e", + "rounds": 1, + "type": "eq" + }, { "id": "bug1027533", "file": "pdfs/bug1027533.pdf", "md5": "07235b2bb0e03f8d727072d48fae3b0a",