These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Insert field and put external data in that field

Tim Klahr
Registered: Feb 7 2011
Posts: 12

Hello all,
 
A couple months ago I figured out how to automate inserting fields. But for the life of me, I cannot remember what I did, or find it through searching.
 
It was something like insert.field, then I would specify that it was a text field and the x and y coordinates for its location. I'd like it to be a hidden field. Do any of you know what I'm talking about?
 
After I figure that out, I want to read a csv file and put data in this new field, so I can generate a nice email for a user.
 
Any help would be greatly appreciated!
 
Tim

My Product Information:
Acrobat Pro 10.0, Windows
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1875
You can find the documentation for the addField method here: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.435.php
Tim Klahr
Registered: Feb 7 2011
Posts: 12
Thank you! If anyone has any links or info on reading data from a csv file, please throw it my way. Thanks.
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1875
It's easier to read from a tab-delimited file, using the importTextData method: page: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.502.php

The return code numbers in the documentation have the incorrect sign.