Chapter 18. Creating Advanced JavaScripts
We hope this book provides you an exposure to scripting in Acrobat and LiveCycle Designer. To be completely thorough, we would have to write a book equal to this size covering just Acrobat JavaScript and a separate book for JavaScript and FormCalc in LiveCycle Designer.
This book is not a JavaScript book; as such, we offer you only some samples that we hope guide you into looking at more opportunities for adding scripts to your forms.
In this chapter, we provide some different examples of JavaScript routines to demonstrate how JavaScript is used for adding content to forms, calculating data, formatting fields, working with functions, working with dialog boxes, and changing views. In essence, we use examples for a variety of conditions that can be used on your forms.
Scripting for conditions more specific to your forms will require you to understand what we cover in this chapter and use additional JavaScript objects you learn from the manuals and resources you can find on Adobe's Web site.
All the scripts we talk about in this chapter work with Adobe Reader and Acrobat. We leave scripts unique to working with Acrobat to Chapter 19.
Adding Annotations
A variety of JavaScripts can be used to add new content to a form. You can add fields using JavaScript, add new pages using JavaScript, add bookmarks using JavaScript, ...
Get PDF Forms Using Acrobat® and LiveCycle® Designer Bible now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.