Home
 
The page you are viewing is part of our 160,000 page PDF discussion forum archive spanning 1999-2011.
Go to the new Planet PDF forum to join the PDF community.
 

Search
 Advanced   
Sign up for a WebBoard account Archive Forum Home


PLATINUM
SPONSOR

GOLD
SPONSORS



Topic  
Go to previous topicPrev TopicGo to next topicNext Topic
Author Message
dogmaster
dogmaster

Total Messages 3

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
Left Button SpacerView user's profile profileRight Button Spacer
 
 
jkitzy
jkitzy

Total Messages 94

Subject:Javascript Size Limitations in Acrobat X?

For scripts that large, you need to use a different script editor. In your preferences, change the default javascript editor to Notepad or some other editor.

I'm not sure why Acrobat doesn't natively handle such large javascripts, but I've run into this problem myself and if you use a different script editor, it works just fine.

In Acro 9 (which I'm using), go to Edit, Preferences, Javascript and change to Use external javascript editor...

Good luck.

---jak


Posted: 10 May 2011 07:14 AM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
gkaiseril
gkaiseril

Total Messages 3000

Subject:Javascript Size Limitations in Acrobat X?

You might want to look at using LiveCycle Designer and using a data connection to a database. This would allow you to update the Zip validation without having to edit the form.

George Kaiser


Posted: 10 May 2011 07:58 AM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
   
Go to previous topicPrev TopicGo to next topicNext Topic

go




Top | News | Developer | Find PDF Tools | Sponsorship | Tips | Home



Debenu's Planet PDF - a comprehensive site exclusively focused on Adobe Acrobat/PDF users and uses. Debenu's Planet PDF - Resources for Adobe Acrobat and PDF users

Please post PDF-related questions to our Planet PDF Forum forums.planetpdf.com. To send comments about this site please visit our contact page.
Planet PDF, Planet PDF Forum, PDF SDK - Debenu Quick PDF Library and Debenu are all copyright
© 2011 Debenu Pty Ltd.. All Rights Reserved. Privacy policy.