pdftk and the
fill_form function to populate several .pdf files from two .fdf files. The issue is that whichever .fdf file is applied last overwrites blanks over all the data that it doesn’t have.
One .fdf has personalized data for each unique .pdf and the other is global data that’s common on all the .pdf files. So there are many personalized .fdf files generated on an as needed basis and one global .fdf. Since the .pdf files are all the same layout, the .fdf files are all the same layout as well. Hence why they are overwriting each other.
Is there a simple way to replace specific lines of one document with the exact same lines from another document?
My thought is to just use
sed to brute force the data into one .fdf file and then fill each .pdf from that. But that would require all these lines of
sed in my script multiplied by the number of .pdf files I need to create. Seems really clunky to me.