1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-21 23:58:07 +02:00

Ignore color-operators in Type3 glyphs beginning with a d1 operator (issue 12705)

Please refer to the PDF specification at https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/PDF32000_2008.pdf#G8.1977497 and https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/PDF32000_2008.pdf#G7.3998470

This patch removes the color-operators in the evaluator, since that should be more efficient than doing it repeatedly in the main-thread when rendering the Type3 glyphs.
This commit is contained in:
Jonas Jenwald 2020-12-10 14:22:05 +01:00
parent 00b4f86db3
commit 67e5db75d8
4 changed files with 81 additions and 3 deletions

View file

@ -222,6 +222,7 @@
!issue5734.pdf
!issue4875.pdf
!issue11740_reduced.pdf
!issue12705.pdf
!issue4881.pdf
!issue5994.pdf
!issue6151.pdf

BIN
test/pdfs/issue12705.pdf Normal file

Binary file not shown.

View file

@ -4531,6 +4531,12 @@
"annotations": true,
"type": "eq"
},
{ "id": "issue12705",
"file": "pdfs/issue12705.pdf",
"md5": "d8725b9dcfef72fd4fa4a39cab711624",
"rounds": 1,
"type": "eq"
},
{ "id": "annotation-strikeout",
"file": "pdfs/annotation-strikeout.pdf",
"md5": "6624e6b5bedd2f2855b6ab12bbf93c57",
@ -4894,5 +4900,5 @@
"rounds": 1,
"type": "eq",
"annotations": true
}
}
]