Newsletters

Adobe Doc Cloud new update or Acrobat's new update.

To Install
    • Launch Adobe Reader or Acrobat.
    • Choose Help > Check for Updates

For Enterprises:
 Go to ETK Guide:


Check the what's new page for newly added features:


Hotfix for JavaScript Engine Issue.


Link: https://helpx.adobe.com/acrobat/release-note/acrobat-dc-august-06-2015.html

Issue: With the update to Acrobat or Reader DC, any scripting that is present in a script object that follows a function definition called validate (), isContainer, exceptionHandler, etc will fail to be recognized as valid script.

For example if we have script like the following in a script object:

function helloworld1 () {
    xfa.host.messageBox("Hello World 1");
}

function validate() {
    xfa.host.messageBox("Validate()");
}

function helloworld2 () {
    xfa.host.messageBox("Hello World 2");
}

Calling “helloworld1()” will work, but calling “helloworld2()” will fail in DC and will produce the following error:

TypeError: oTest.helloworld2 is not a function
3:XFA:form1[0]:#subform[0]:Button1[1]:click

In pre-DC clients, it will function.
The bug is clearly demonstrated in the 2 attached PDF files. Use these files and perform the steps below to reproduce the errant behavior.

1.       In Acrobat or Reader DC opens ShowBug_fails.pdf from the link below.
2.       Click button 1.
3.       The dialog is displayed “Hello World 1”.
4.       Click button 2.
5.       No dialog is displayed because a script error is generated.
6.       If using Acrobat CTRL-J to display Script Debugger window and note the error (text is listed above).
7.       Repeat steps 1-6 in Reader/Acrobat 11 or earlier and “Hello World 2” will display.

Sample File: https://www.dropbox.com/s/4f910i5p4g7bmdc/ShowBug_fails.pdf?dl=0

No comments:

Post a Comment