Created
September 18, 2014 08:04
-
-
Save michaellouieloria/0ff4376475b68e1e78c2 to your computer and use it in GitHub Desktop.
PDFtk commands to create fdf and fill form
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create fdf | |
pdftk form.pdf generate_fdf output data.fdf | |
fill form | |
pdftk form.pdf fill_form data.fdf output form_with_data.pdf |
you can probably just loop the command
filenames.each do |filename|
pdftk form.pdf fill_form data.fdf "#{filename}.pdf"
end
Awesome, just add the "flatten" word at the end of the fill-form command to make it not editable.
Like:
# fill form
pdftk form.pdf fill_form data.fdf output form_with_data.pdf flatten
Thanks for sharing.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
fill_form working excellent but only one pdf not multiple pdf.
how to solve this