Extend getGlyphMapForStandardFonts with some quote-entries (issue 15441)

This commit is contained in:
Jonas Jenwald 2022-09-15 11:35:21 +02:00
parent c21d00ef44
commit 2f2ecad8fd
4 changed files with 113 additions and 0 deletions

View File

@ -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;

View File

@ -489,6 +489,7 @@
!transparent.pdf
!issue13931.pdf
!xobject-image.pdf
!issue15441.pdf
!issue6605.pdf
!ccitt_EndOfBlock_false.pdf
!issue9972-1.pdf

102
test/pdfs/issue15441.pdf Normal file
View File

@ -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

View File

@ -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",