Upload
bluebeamslides
View
429
Download
1
Embed Size (px)
DESCRIPTION
Citation preview
Advanced Automation in Revu
PRESENTERS:Peter Noyes, Senior Software EngineerBrian Fong, Product Manager
History• Initially the scripting language to make the Web interactive• Can be embedded as a scripting language in stand-alone applications
Web DOM vs PDF DOM (Document Object Model)• Syntax is the same; object model is different• Web Sample:
- document.getElementById("main").innerHTML="Manipulated content!";• PDF Sample:
- this.info.Title = “New Title”;• PDF JavaScript Documentation is available as the “JavaScript for Acrobat API
reference”• Revu supports a subset of the DOM• Bluebeam publishes an Excel spreadsheet that specifies the supported functionality
JavaScript
JavaScript Use Cases for PDF• Primary use case is to make forms interactive• Interactive Stamps
Forms• Basic Forms
• For basic interactivity, JavaScript not required• Event examples:
• Formatting• Actions• Calculations• Validation
JavaScript
Anatomy of a JavaScript Stamp• Built around the app.execDialog function• The most complicated JavaScript function in the PDF DOM• Bluebeam created a sample that hides the complexity and accounts for primary
use case
Document JavaScript vs. Field Script• Field Level scripts are executed in response to field level events:
Ex. Formatting, Calculations, Validation• Stamp ID• Mapping between script and field names• Customizing
JavaScript
Revu Scripting• Unrelated to JavaScript• Chain multiple Revu features together to automate tedious processes• Pin to toolbar button• Run from the command line
JavaScript
Q & A
PRESENTERS:Peter Noyes, Senior Software EngineerBrian Fong, Product Manager