With the February 2019 release of Adobe Acrobat DC, the JavaScript variables used in global namespace are marked as constants and cannot be used as variable names in the global namespace in your scripts. However, you can use the variable names in your local namespace.
- color
- font
- border
- style
- highlight
- zoomtype
- cursor
- trans
- position
- scaleWhen
- scaleHow
- display
- permission
- submitFormUsageRights
- fileSystem
- encoding
function position() { //Perform some action
}
|
The error message: TypeError: can't redefine non-configurable property 'color'
Example 2:
If the following code is executed in global namespace, it won't work:
var position = 10; |
If you try to access position again, it won't be modified to 10; it's still pointing to the original object as used by Acrobat.