Thanks! (I can't upload a sample file, btw)
What does you see when you use Tools > Prepare Form?
What do you mean by "undefined field" ? A blank field???
If possible please share an example.
Do you mean that they do not respond in the Form editor, so they aren't form fields at all? Or are you using "field" to just mean "text on page"?
I'll try to explain what I am seeing - the form I am using has too much PHI on it to share.
Ok, I probably misunderstand, but if I am right, you are trying to use Prepare Form to get the information on the page organised so you can extract the text as form fields? I'd say that's a complete non-starter. Prepare Form is wild guesswork looking at where the text is on the page and what lines are drawn. Only things that it decides (somehow) are form fields become fields; the rest is considered background and left alone.
I was afraid of that, but not surprised. I have used getPageNthWord, as you suggested, but I need a bit more functionality than that. The layout is fixed, but there is variability in the length of recognized fields, etc. I am having some luck using the "M" ETL language which now comes with Excel - on the XML data I pull from the pdf. Not great, but workable. Having the orginal doc would be best....so it goes! Thanks....