How to get data like this...
Name | Age | Street Address | City | State | Zip |
---|---|---|---|---|---|
Tami | 23 | 123 Main St | Anytown | Anystate | 11111 |
John | 54 | 456 Second Ave | Anytown | Anystate | 22222 |
Troy | 39 | 789 Last Cir | Anytown | Anystate | 99999 |
into a set of PDFs like this...
All the files necessary to test this process are included below, except the empty form PDF which I don't think I can upload/include, even in a comment, so I'll at least show a picture of the PDF in Prepare Form mode:
You'll need some familiarity with running JavaScript in Acrobat. Search around for "Run Javascript in Acrobat debugger/console". This is a pretty good starting place, even for Mac, The Acrobat JavaScript Console (Your best friend for developing Acrobat JavaScript). It's pretty easy to open Debugger, copy-paste your code into View → Console, then Cmd/Ctrl-A to select-all, and finally Cmd/Ctrl-Enter to "run selected".
If you're running directly in the debugger, you'll be in a Privileged mode and that'll be that, but if you want to run from a button in a PDF, you'll need to read up on security, functions, automation, etc...:
- Using Trusted Functions
- Instructions for Installing Folder Level Scripts (Automation Tools) and Plug-ins
The documentation for Javascript in Acrobat:
From that Doc methods page, search for importTextData
which is the backbone of this script/automation.
The easiest way to make sure you have the correct fields in your data TSV/TXT file is just open your form in Prepare Form mode and export the form. This will give you an empty TXT file with the columns/header your input data file will need: