7

Advanced Automation - Extreme Conference 2013

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Advanced Automation - Extreme Conference 2013
Page 2: Advanced Automation - Extreme Conference 2013

Advanced Automation in Revu

PRESENTERS:Peter Noyes, Senior Software EngineerBrian Fong, Product Manager

Page 3: Advanced Automation - Extreme Conference 2013

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

Page 4: Advanced Automation - Extreme Conference 2013

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

Page 5: Advanced Automation - Extreme Conference 2013

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

Page 6: Advanced Automation - Extreme Conference 2013

Revu Scripting• Unrelated to JavaScript• Chain multiple Revu features together to automate tedious processes• Pin to toolbar button• Run from the command line

JavaScript

Page 7: Advanced Automation - Extreme Conference 2013

Q & A

PRESENTERS:Peter Noyes, Senior Software EngineerBrian Fong, Product Manager