1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Annotation - Some checkboxes have an empty N dictionary

- it aims to fix #14021;
  - the N dict is empty here so just create a default one;
  - it implies that the checked checkbox has no appearance so create a default one too in order to print it;
  - in the pdf in the issue, a checked box is not printed because it has no default appearance so we need to guess its appearance from its state.
This commit is contained in:
Calixte Denizet 2021-09-17 15:31:22 +02:00
parent cc110b8542
commit c0e9108d00
4 changed files with 162 additions and 47 deletions

View file

@ -0,0 +1 @@
https://github.com/mozilla/pdf.js/files/7159923/docOficialPDF.php.pdf

View file

@ -5944,5 +5944,36 @@
"rounds": 1,
"type": "eq",
"annotations": true
},
{ "id": "issue14021",
"file": "pdfs/issue14021.pdf",
"md5": "d18aa84135ce985c70a8f56306ecb95f",
"link": true,
"rounds": 1,
"firstPage": 2,
"lastPage": 2,
"type": "eq",
"forms": true
},
{ "id": "issue14021-storage",
"file": "pdfs/issue14021.pdf",
"md5": "d18aa84135ce985c70a8f56306ecb95f",
"link": true,
"rounds": 1,
"firstPage": 2,
"lastPage": 3,
"type": "eq",
"print": true,
"annotationStorage": {
"148R": {
"value": true
},
"138R": {
"value": true
},
"139R": {
"value": true
}
}
}
]