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

Can a PDF accept parameters to auto-fill fields?

loweride
Registered: Jun 23 2008
Posts: 2

Let's say I have a PDF document that everyone uses. When they open it up, I want it to automatically put their name in a field. I'm imagining some sort of parameter in their desktop shortcut being passed in and a field on the form that accepts this parameter.

Is there such a thing?

The reason I'm asking is because I need to auto-fill some editable PDF forms. I don't have a web server and everything I've found in my research points to using PHP, ASP, JavaScript, or some other web scripting. I have Oracle forms that could dynamically change the command that opens the PDF. So if it could accept data that way, then I'm thinking I could make it work.

My Product Information:
Acrobat Pro 8.1.2, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
Acrobat has an "identity" object that has as standard "corporation", "email", loginname", and "name'. The "loginName" is acauired from the OS, and all others are filled in through the Acrobat's Preferences and is unique to each user, or could be initialized by a folder level JavaScript in the individual user's application data folder. One coulc also add custom or other properties not provided by Acrobat. It should be noted that the "identity" object are only accessable during batch, console, menu, and application initialization events, so you will also need to create an application inization JavaScript to trap this data or provide a trusted function to return one of the "identity" values.

See [url=http://www.acrobatusers.com/forums/aucbb/viewtopic.php?pid=30444]use windows login name in textfield[/url] for some example code.

George Kaiser