HACKER Q&A
📣 michaelmarkell

Tools for Writing to PDFs?


I have a large number of PDF forms (think government applications) that I need to write data into. Right now we are doing it by hand, but I would love to find a tool that allows us to 1. Map some sort of schema to a PDF 2. On a POST request, generate a new PDF via the POST data and the mapping

Any recommendations for how to solve this?


  👤 celias Accepted Answer ✓
This article http://www.blog.pythonlibrary.org/2018/05/22/filling-pdf-for... mentions pdfforms https://pypi.org/project/pdfforms/ which uses pdftk to fill forms.

👤 santa_boy
I used this a while back (https://github.com/galkahana/HummusJS) and it worked quite well. While the support has ended, I think it should still work.

Worth a try. HTH