Compare commits

...

2 Commits

Author SHA1 Message Date
calixteman
2e10ff6dd4
Merge pull request #19855 from 1Jesper1/hotfix/useractivation-response
Add useractivation check for response function
2025-04-28 13:14:51 +02:00
Jesper
8af06a4c60 Add useractivation check for response function 2025-04-24 22:40:28 +02:00

View File

@ -607,6 +607,11 @@ class App extends PDFObject {
}
response(cQuestion, cTitle = "", cDefault = "", bPassword = "", cLabel = "") {
if (!this._document.obj._userActivation) {
return null;
}
this._document.obj._userActivation = false;
if (cQuestion && typeof cQuestion === "object") {
cDefault = cQuestion.cDefault;
cQuestion = cQuestion.cQuestion;