skip navigation

PDF Document Management Software, Services & Support

Server Desktop Services Support Why Us? About Us

The Latest

SecurSign 5 Now Available! Includes Signature Validation to Detect Tampering.
Lansdowne, PA (July 13, 2011)
Encrypt, digitally sign and verify digital signatures on PDF documents.

I get the message "Expected a number object" when running FDFMerge on my PDF file which contains JavaScripts.

ANSWER: Your JavaScript most likely sets the field's background or border color to a grayscale color, such as lt gray. Workarounds:

1. Use the RGB color when setting the color from JavaScript. You may refer to page 86 of the Acrobat JavaScript Object Specification for more information. Example:

light gray: f.fillColor = [ "RGB", .75, .75, .75 ]; white: f.fillColor = [ "RGB", 1, 1, 1 ];

2. Set the color through the Field Properties Dialog as follows: Choose the field tool, select all the fields in the document (cntrl+"A"), double click on one of the fields, and select gray as the fill color. You must also remove the line from the JavaScript that sets the field's background or border color.

 

Would you like the support team to address a specific point related to this topic?  Email the support team and ask for a clarification.

Last updated: Friday, February 6, 2009