I have a PDF-file which on page 2 looks as shown below. When I open it in Preview or Adobe Acrobat Reader DC (on a Mac), I don't get a chance to input text between the lines. It looks as if the PDF contained a bitmap.
What I would like to do is use this PDF file as a template and fill in names and addresses from a text file (or database). Essentially I would like to place one line of variable text (for the name) below the header "Name:" and three lines of variable text (for the address) below the header "Adresse:". The x/y offsets of these lines would not change, only the supplied information would per line in the textfile (or row in the database). Essentially I would like to produce as many PDF files from the template as there are lines in the textfile (or rows in the database).
Is it possible to script this in a reasonably simple way with (free) PDF tools or, say, Gimp (or among licensed tools, Word) on OS X, and if so, where can I find a good tutorial to get started?
UPDATE I will try this:
- export page 2 of PDF to JPEG with Gimp
- set JPEG as watermark in new Word document
- add border-less table with cells at suitable x/y offsets for variable text
- print pages 2 as serial letter with Word document as template
- combine variable pages 2 with constant surrounding pages (from PDF) after printout
... or perhaps reverse engineer page 2 in Word :-)