Make Popup annotations always have noRotate flag set as true

Necessary because when there is no Popup annotation created along
with a Text annotation, the Popup annotation created by pdf.js
does not receive the noRotate flag
This commit is contained in:
Yuyang Liu 2025-07-02 18:12:37 +09:00
parent 85b67f19bc
commit d8ecfad8bd
4 changed files with 10 additions and 0 deletions

View File

@ -615,6 +615,7 @@ class AnnotationElement {
borderStyle: 0,
id: `popup_${data.id}`,
rotation: data.rotation,
noRotate: true,
},
parent: this.parent,
elements: [this],

View File

@ -611,6 +611,7 @@
!bug1802888.pdf
!issue15759.pdf
!issue18823.pdf
!pr20043.pdf
!issue15753.pdf
!issue15789.pdf
!fields_order.pdf

BIN
test/pdfs/pr20043.pdf Normal file

Binary file not shown.

View File

@ -3758,6 +3758,14 @@
"link": true,
"type": "eq"
},
{
"id": "pr20043",
"file": "pdfs/pr20043.pdf",
"md5": "cdeb98b3229cd44c893c0feaaa3e490f",
"rounds": 1,
"type": "eq",
"annotations": true
},
{
"id": "issue1709",
"file": "pdfs/issue1709.pdf",