Nitro PDF Professional: Create and change PDFs with the original Acrobat alternative.
Download Free Trial Buy
Overview
Features
Compare

Achieve substantial savings when you buy 11 or more Nitro PDF Professional licenses.

Volume licensing at a glance

Special offers and updates

Sign up to receive occasional email notifications of product updates and special offers.


Your email :

Color Object - PDF JavaScript



An object that can be used when setting a color in other JavaScript methods and properties.

Example: Sets the text color in the form field “First Name” to red.

this.getField("First Name").textColor = color.red;

Properties & Methods

The color object supports all properties and methods included in the Acrobat JavaScript specification.