Javascript - creating text box and populating it with data from a CSV file
I'm fairly new to Acrobat and javascript. I was able to create a script to create a text box and stamp the PDF with its filename.
Now, I want to create a red text box and populate the box with data from an external CSV file. There are hundreds of PDF's, each with unique filenames. The CSV contains two columns, first is the name of each PDF and beside the name is a string of text. I was hoping to be able to create the text box, have the script read the name of the file that it's currently processing, then pull the text string that matches the name in the CSV file. If that's not possible, is there a way for it to just read the first line and apply it to the first document then read the next line and apply it to the second document etc etc. I realize I'll have to organize the CSV or the filenames to match if the second method is used.
Any help would be appreciated. Thanks.
