1

我想问用户一个问题,如果他们点击按钮,那么他们应该被重定向到另一个页面。

Adobe Acrobat 允许我们在 pdf 中插入 JS:

if (app.alert("Do you want to go on page X?", 2, 3) === 4) {
    // Make the direct somehow.
}

我认为我们不能在location那里使用该对象。

4

1 回答 1

1

请试试

if (app.alert("Do you want to go on page X?", 2, 3) === 4) {
    app.launchURL("http://example.com", true);
}

在新的true浏览器窗口中打开,默认是false在 Reader 中加载它。

于 2016-10-27T17:34:42.553 回答