| Subject: | Javascript Size Limitations in Acrobat X? |
Am building a smart form with a validation script for a ZIPCODE field, that has a 1200-element array where each element is itself a 5-element array. In essence, an internal database in the form array[i][j] which is populated via pushes like so....
region.push(["92284","B","Yucca Valley","San Bernadino County","High Desert"]);
region.push(["92286","B","Yucca Valley","San Bernadino County","High Desert"]);
region.push(["92292","B","Palm Springs","Riverside County","Low Desert"]);
..
..
.. for 1197 more records.
However, after testing my code on a small subset of data, when I go to paste the full 1200 dataset, I get an error from Acrobat X's Javascript editor "Text is too large to be displayed in this dialog"
My data is less than 50k in characters.
Given PDF files can be very large and contain all kinds of other files, media, etc. there must be a way to get my JavaScript data into my PDF form, I just can't seem to find it. Am rather anxious that Acrobat Forms may have some hard-limits to the size of internal Javascript programs and/or JavaScript arrays.
Does anyone have a solution for this problem or perhaps a direction to find one?
| Posted: 08 May 2011 11:36 PM |
|