Tutorials, tools, scripts and samples for scripting Acrobat and PDF
Home | Video Tutorials | Copy-n-Paste Scripts | Download Library | Free Content | Search | MEMBERS AREA


 About this Site
About Us
Contact Us
Privacy Policy
Refund Policy
Terms of Use
Testimonials
 DEPARTMENTS
Articles
Video Tutorials
Copy-n-Paste Scripts
Download Library
Free Content
Free Videos
Most Popular
 RESOURCES

Let me know when new content is available.

Home | DocNFormScripts
 

Document and Form Scripts

Select a Scripting area below to display content.

All of the scripts listed here are for use in a Document scripting location. These locations include the Form Field scripts as well as Document Level scripts, Page scripts, and Bookmark scripts.

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
Defining and Using Colors in AcroForm Scripting
(Resources, Effects)
The Acrobat JavaScript model can be used to describe a wide variety of colors in three different color spaces. Colors are used for backgrounds, borders and text in both form fields and markup annotations. They are important for both automating the creation of these elements and adding highlighting and other visual effects to a PDF. . . . 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
Field Validation Script Basics
Validate, Event
Eight examples that demonstrate the basics of using the Validation Event Script for a field on an AcroForm PDF. Six standard examples for Text Fields. All use Regular Expressions to analyze field data. Two Alternate Use examples, one of which uses a ComboBox Field. . . . keep reading
Counting Text items: Characters, Words and Lines
Thom Parker
There are many commercial applications (press releases, product descriptions, ad text, etc.) as well as others where counting text elements like characters and words is important. The scripts on this page provide several different techniques for finding this information, including filtering text for specific characters and words. . . . keep reading
Counting Fields: CheckBoxes, RadioButtons, Filled/Empty Fields, and Others.
Thom Parker
It's often important to count data entries on a form. For example, for an average calculation the number of filled fields needs to be counted. Or, to score a test the number of checked Radio Buttons may need to be counted. This short article covers different techniques for building calculation scripts that count stuff. . . . keep reading
AcroForm Calculation Examples
Thom Parker
This page is a listing of sample PDFs that use the calculation event. The samples are collected from different areas of this site. They are not necessarily "Calculation" examples, but they all u . . . 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
Parsing and Formatting Dates and Times
Thom Parker
Dates and times aren't like other kinds of values, because they can be represented in so many different ways. For example, the representation of a date or time used for a calculation is very different from the human readable form. These scripts show how to parse and format dates from any format into any other format so they can be used for both calculations and display. . . . keep reading
Simple Document Navigation
WindJack Solutions, Inc.
Basic and easy to implement document navigation scripts. These scripts use the legacy navigation parameters (page number, zoom, and scroll), existing Acrobat menu items, and an URL query string to perform both document navigation tasks. . . . keep reading
Field Format Script Basics
Format, Event
Four example scripts that demonstrate the basics of using the Format Event Script on an AcroForm document. All examples are for Text Fields, but can also be used on a ComboBox (drop-down list). . . . keep reading
The Alert Popup Box (UI Controls)
Thom Parker
Popup boxes are used for two purposes- to give the user a message and to collect immediate input from the user. In Acrobat JavaScript there are several types of popup boxes . . . keep reading
Using Mouse and Focus Event Scripts
Effects, Events
Five example scripts demonstrating basic usage of the Field Widget Event Scripts. There are 3 pairs of Widget Events, Mouse Down/Up, Mouse Enter/Exit, and On Focus/Blur. All examples modify the Field's appearance, field highlighting and push button effects. . . . keep reading
Basic Document Level (Document Open) Scripts
Open, Event, Global
Nine common uses for a Document Level script. Includes warning the user about a viewer condition, such as an incorrect viewer version or type, automatically closing the document, expiring a PDF, and performing various document setup tasks. . . . keep reading
List Item/Population Scripts
Thom Parker
Eight Scripts that demonstrate different techniques for manipulating items in a List Field. Includes list population, inserting list items, and replacing list items. . . . keep reading
Getting/Finding List Field Entries
Thom Parker
These scripts demonstrate various methods for getting at the properties of the items in a List Field. Finding the item name, index, and export value for one or more items based on the current selection or having at least one of these values already. . . . keep reading
List Handling Scripts
Thom Parker
Several scripts and variations for handling basic List Field operations. Includes selecting, moving, deleting, and getting List Field items. . . . keep reading
Advanced List Handling
Thom Parker
These scripts add advanced features to List Fields, including sorting list items, simulating a double click event, simulating "Commit Selected Immediately" for a Multi-Select Field, and getting and using all of the selected items on a Multi-Select Field while the user is making selections. . . . keep reading
Specialty List Items
Scripts for populating List Fields with common items like lists of state names, country names, month names, and day of week names. . . . keep reading
Using the "WillCommit" Keystroke Event
Event, Keystroke
These scripts demonstrate the basics of using a WillCommit Keystroke Event script in an AcroForm Field. The WillCommit Keystroke Event is a variation on the regular Keystroke Event that is triggered any time data is committed to a form field . . . keep reading
The "Proper" KeyStroke Event Script
Event, Keystroke
5 examples. These scripts demonstrate the basics of using a Proper Keystroke Event script in an AcroForm Text Field. The Proper Keystroke Event is a type of Keystroke Event that catches interactive user input. . . . 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