How to Automate "Prepare Form" w/Auto Detection on PDF?
I'm trying to help a client take a rich text file (.rtf) and turn it into a fillable PDF. Here are my steps thus far:
- Open .rtf in Word, save as Adobe PDF.
- Open PDF in Acrobat Pro DC and select "Prepare Form"
- Use Auto Detect to create fields (works flawlessly).
- Manually rename fields (need to map field names to my application).
I'm writing a web application in GO that will fill these PDFs with data from a PostgreSQL db. Problem is, my clients get these .rtf files from their clients all the time, so I need to automate as much of this as possible. In a perfect world, I'd be able to automate all 4 steps above. My biggest concern is steps 2-4.
I've been trying to research the Acrobat DC SDK to see what I can do, but the documentation isn't the easiest. Any ideas?
