mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-24 09:08:07 +02:00
Set the text fields font size based on their height
- right now we're using the font size from the pdf itself but we use an other font in the annotation layer. So this size doesn't really make sense and leads to bad rendering (see pdf in #14928); - use a sans-serif font for the fields containing text (fix issue #14736); - remove useless padding in text-based fields (fix issue #14301); - text fields allow/disallow scrolling bars (see bit 24 in Ff entry), so use this value to hide/show scrollbars in annotation layer.
This commit is contained in:
parent
5b3fdee5f5
commit
9d82106d20
7 changed files with 104 additions and 47 deletions
|
@ -751,7 +751,9 @@ class Driver {
|
|||
transform,
|
||||
};
|
||||
if (renderForms) {
|
||||
renderContext.annotationMode = AnnotationMode.ENABLE_FORMS;
|
||||
renderContext.annotationMode = task.annotationStorage
|
||||
? AnnotationMode.ENABLE_STORAGE
|
||||
: AnnotationMode.ENABLE_FORMS;
|
||||
} else if (renderPrint) {
|
||||
if (task.annotationStorage) {
|
||||
renderContext.annotationMode = AnnotationMode.ENABLE_STORAGE;
|
||||
|
|
2
test/pdfs/issue14301.pdf.link
Normal file
2
test/pdfs/issue14301.pdf.link
Normal file
|
@ -0,0 +1,2 @@
|
|||
https://github.com/mozilla/pdf.js/files/7594316/formulairecerfa90nov00-1.pdf
|
||||
|
|
@ -6507,5 +6507,26 @@
|
|||
"rounds": 1,
|
||||
"link": true,
|
||||
"type": "other"
|
||||
},
|
||||
{ "id": "issue14301",
|
||||
"file": "pdfs/issue14301.pdf",
|
||||
"md5": "9973936dcf8dd41daa62c04a4eb621f0",
|
||||
"rounds": 1,
|
||||
"link": true,
|
||||
"firstPage": 2,
|
||||
"lastPage": 2,
|
||||
"type": "eq",
|
||||
"forms": true,
|
||||
"annotationStorage": {
|
||||
"1832R": {
|
||||
"value": "3"
|
||||
},
|
||||
"1827R": {
|
||||
"value": "2"
|
||||
},
|
||||
"1808R": {
|
||||
"value": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue