|
|
|
|
Home |
Copy-n-Paste Scripts
| |
Copy-n-Paste Script Library
Thom Parker
This is a collection of JavaScripts available for use in your PDF documents and forms. We have included a broad range of scripts to reflect most of the functions and methods available for use in Acrobat JavaScript, as well as frequently asked for scripts. This area is under constant development and new scripts will be added on a regular basis.How to use the Copy-n-Paste scripts
1. Scripts are grouped into broad categories , which are further divided into general scripting topics. Clicking on a category link below will take you to a page listing the general topics within the category.
(Example. Click on the "Document and Form Scripts" category below, then select a Topic on that page.
2. Each Topic page contains a general discussion of these types of scripts and ways they can be used, how the scripts work, and related resources on the site for learning more about how to use them.
3. Each individual script includes an information bar. The information bar contains very important usage information for each script including what field type it works best with, where to place the code, what version of Acrobat is applicable, and whether or not the script will work in Adobe Reader.
4. Each script has a set of 'orange" Show buttons labeled "How it Works" and "Code." The "How it Works" button describes how to use and modify the code, and the "Code" button displays a text box with the script for easy copy/paste into your own PDFs.
|
Common Scripting Elements (Colors, Paths, and Coordinates)
Thom Parker
There are a number of scripting elements that are unique to AcroForm scripting and used consistently throughout the Document Object Model. These include Colors, File Paths, and Coordinates. Understanding how these elements are defined and used is a necessary Acrobat scripting skill. . . . keep reading
|
Form Data Validation
Thom Parker
Form data validation is a standard part of creating any electronic form. It comes in two different flavors. Validation at the field level where the data is checked for proper formatting, and validation at the form level where the completeness of the form is tested before data submission. A good form design uses a combination of these two methods. . . . keep reading
|
Calculation Scripts in AcroForms
Everything about calculations for regular PDF forms (AcroForms). Entering Calculations, writing calculation scripts, samples, and some alternate uses for the Calculation Event. . . . keep reading
|
Document Navigation Scripts
Scripts for navigating to a specific document location. Several different techniques are presented. Use navigation buttons, links, and menus to enhance the usability of your documents. . . . keep reading
|
Date Handling Scripts
Thom Parker
This article explains basic date handling and provides scripts for a wide variety of date uses, from parsing and formatting dates, to complex date calculations. . . . keep reading
|
|
|