mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Ensure that Annotation appearance
-entries are actually Streams
Note how all over the `src/core/annotation.js`-code we're assuming that if an `appearance`-entry exists it's also a Stream. However, we're not actually checking that thoroughly enough which causes issues in some badly generated PDF documents.
This commit is contained in:
parent
e9c8aa63e3
commit
cefaecc2e8
4 changed files with 22 additions and 5 deletions
1
test/pdfs/.gitignore
vendored
1
test/pdfs/.gitignore
vendored
|
@ -21,6 +21,7 @@
|
|||
!issue14881.pdf
|
||||
!issue3214.pdf
|
||||
!issue4665.pdf
|
||||
!checkbox-bad-appearance.pdf
|
||||
!issue4684.pdf
|
||||
!issue8092.pdf
|
||||
!issue5256.pdf
|
||||
|
|
BIN
test/pdfs/checkbox-bad-appearance.pdf
Normal file
BIN
test/pdfs/checkbox-bad-appearance.pdf
Normal file
Binary file not shown.
|
@ -785,6 +785,13 @@
|
|||
"rounds": 1,
|
||||
"type": "eq"
|
||||
},
|
||||
{ "id": "checkbox-bad-appearance",
|
||||
"file": "pdfs/checkbox-bad-appearance.pdf",
|
||||
"md5": "acdac655911cb3d33c3fb1462cf2ad56",
|
||||
"rounds": 1,
|
||||
"type": "eq",
|
||||
"forms": true
|
||||
},
|
||||
{ "id": "artofwar",
|
||||
"file": "pdfs/artofwar.pdf",
|
||||
"md5": "7bdd51c327b74f1f7abdd90eedb2f912",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue