Quote from blog: From time to time, I need to dynamically generate a pdf with personalized content. Rather than writing code in something like Prawn to create the pdf from scratch, I usually get a pdf from my client which can be used as a template. By using a pdf Acroform and the insanely useful pdftk tool, you can easily generate a personalized pdf based on a template file, similar to how word processors handle a mail merge.