mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-24 09:08:07 +02:00
[Annotations] Show buttons even if they've no actions
- it's a regression from PR #14247: - before the PR, the button was rendered on the canvas whatever its status was; - after the PR, the button image has been moved in an other canvas so when the button is not renderable (because it has no actions) then the image is not added the HTML element. - the buttons in the pdf in bug 1737260 or in the pdf in #14308 were not visible - make the button always renderable but don't add the link element if it's useless.
This commit is contained in:
parent
9bdf27e8e0
commit
66b513fc00
3 changed files with 26 additions and 17 deletions
1
test/pdfs/bug1737260.pdf.link
Normal file
1
test/pdfs/bug1737260.pdf.link
Normal file
|
@ -0,0 +1 @@
|
|||
https://bugzilla.mozilla.org/attachment.cgi?id=9247258
|
|
@ -6528,5 +6528,13 @@
|
|||
"value": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
{ "id": "bug1737260",
|
||||
"file": "pdfs/bug1737260.pdf",
|
||||
"md5": "8bd4f810d30972764b07ae141a4afbc4",
|
||||
"rounds": 1,
|
||||
"link": true,
|
||||
"type": "eq",
|
||||
"annotations": true
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue