Skip to content

Commit 2e10ff6

Browse files
authored
Merge pull request #19855 from 1Jesper1/hotfix/useractivation-response
Add useractivation check for response function
2 parents b47b248 + 8af06a4 commit 2e10ff6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/scripting_api/app.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,11 @@ class App extends PDFObject {
607607
}
608608

609609
response(cQuestion, cTitle = "", cDefault = "", bPassword = "", cLabel = "") {
610+
if (!this._document.obj._userActivation) {
611+
return null;
612+
}
613+
this._document.obj._userActivation = false;
614+
610615
if (cQuestion && typeof cQuestion === "object") {
611616
cDefault = cQuestion.cDefault;
612617
cQuestion = cQuestion.cQuestion;

0 commit comments

Comments
 (0)