command-line tool that...
- ...extracts .pdf form fields using pdftk,
- ...interactively prompts the user for values, and..
- ...outputs a (hopefully) valid .fdf (Forms Data Format) file
- make
- C compiler
- pdftk (currently)
git clone https://github.com/slowptr/pdfdf
cd pdfdf
make
./pdfdf example.pdf > my_form_field_data.fdf
- answer your personalized form-field Q&A session
- make use of the .fdf output, by f.e. leveraging
pdftkto fill the form of the initial .pdf:
pdftk example.pdf fill_form my_form_field_data.fdf output my_example_but_filled.pdf
- poweroff
- take hit of MDPHP pipe