1 person found this helpful
The PDF file standard does not use the Windows disk drive mapping policy within the PDF. Check the PDF Reference Manual.
Unless you want to parse a text file, look at using a tab delimited file and use the 'importTextData" method.
From the Acrobat JS API Reference:
In this example, there are text fields named "First", "Middle", and "Last", and a data file whose first row consists of the three strings, "First", "Middle", and "Last", separated by tabs, along with four additional rows of tab-separated name data.
First Middle Last
A. C. Robat
T. A. Croba
A. T. Acrob
B. A. Tacro
// Import the first row of data from "myData.txt".
The following code is a mouse-up action for a button. Clicking on the button cycles through the text file and populates the three fields "First", "Middle", and "Last" with the name data.
if (typeof cnt == "undefined") cnt = 0;
this.importTextData("/c/data/textdata.txt", cnt++ % 4)
Thanks for your suggestion.
I had tried the same code from the API reference book but was using it in LiveCycle not Acrobat which was the problem.
They sent me a LiveCycle specific document "LiveCycle® Designer ES Scripting Reference" which I am going thru.