Is it possible to programatically fill out a fillable ADOBE PDF form?

Posted on 2016-11-18
Medium Priority
Last Modified: 2016-11-21
If so then is it with an application or programming of some sort.    I have PDF forms that users are currently using by just opening them Adobe Reader and filling in the fillable fields.      I would like to have a Web App or program, or something similar, for them to enter the data in and then to post it to the pdf form fields.     Is there a way to do it?
Question by:patrickmiller
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
LVL 55

Accepted Solution

Joe Winograd, EE MVE 2015&2016 earned 2000 total points
ID: 41893220
Hi Patrick,
I'm a big fan of the PDF Toolkit (PDFtk) from PDF Labs. PDFtk comes in both command line and GUI versions. The command line version is called PDFtk Server and may be downloaded here:

Don't be misled by "Server" in the name. I don't know why they called it that, but it's just an executable (pdftk.exe, with a supporting DLL, libiconv2.dll) that runs on "standard" Windows — it does not have to run on a "server" Windows.

As you can see at its documentation, one of its operations is fill_form. I have written many programs that modify an FDF file with values, thereby creating a new PDF file with those values. Here's a sample call:

pdftk.exe InputFile.pdf fill_form InputValues.fdf output OutputFile.pdf

Open in new window

You can use it with any programming/scripting language that is able to call a command line executable. This seems to be exactly what you want to do. Regards, Joe
LVL 15

Expert Comment

by:Edwin Hoffer
ID: 41893927
Dear patrick,

Hello. My friend working in accounts department always prefer to use SysTools PDF Form Filler. He has to deal with thousands of forms daily. So to save time he simply load the PDF in the tools and fill PDF form easily.  The provided is the procedures to fill the form. Hope this can be helpful.

Thanks & Regards
Edwin Hoffer
LVL 55

Expert Comment

by:Joe Winograd, EE MVE 2015&2016
ID: 41894232
Hi Edwin,
Your comment says that PDF Form Filler can fill PDF forms "easily", but Patrick said that he wants to fill them "programmatically", not merely "easily". I checked the link you posted and, as far as I can tell, PDF Form Filler has an easy-to-use GUI, but no way to call it programmatically, i.e., no command line interface, application programming interface, software development kit, etc. If I missed it, please provide a link to its CLI, API, SDK, etc. Thanks, Joe
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI


Author Comment

ID: 41896557
Will it allow for any type of fields, for example, Signatures, Check boxes, text fields and numeric fields?
LVL 55

Expert Comment

by:Joe Winograd, EE MVE 2015&2016
ID: 41896622
Will it allow for any type of fields, for example, Signatures, Check boxes, text fields and numeric fields?
What is "it" in that question?

Author Comment

ID: 41896632
Sorry, I was speaking about the FDF file that would be used to populate the form.
LVL 55

Expert Comment

by:Joe Winograd, EE MVE 2015&2016
ID: 41896651
A field's Value (the V param in an FDF file) may be the following Field Types (copied here from the PDF specification under "Fair Use"):
Button fields represent interactive controls on the screen that the user can manipulate with the mouse. They include pushbuttons, check boxes, and radio buttons.

Text fields are boxes or spaces in which the user can enter text from the keyboard.

Choice fields contain several text items, at most one of which may be selected as the field value. They include scrollable list boxes and combo boxes.

Signature fields represent digital signatures and optional data for authenticating the name of the signer and the document’s contents.
Regards, Joe

Author Closing Comment

ID: 41896670
Thanks Joe.    This should work for us.
LVL 55

Expert Comment

by:Joe Winograd, EE MVE 2015&2016
ID: 41896689
You're welcome, Patrick. Good luck with the project! Regards, Joe

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Simple Linear Regression
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question