I would like to programmatically fill out and flatten pdf's (and then serve to the user). I am coding in php. I wanted to use PDFtk, but after contacting my hosting provider (godaddy), I was told it's not possible to install it on my shared hosting account.
I found FPDF, which looks great for filling out the forms, but then how can I flatten them? I didn't see that FPDF can do that, is there a different php library that can? Or a tool that does not need sudo privilege to install? Something either free or with a small price tag. Thanks.
I'm using MPDF, which I think is based on FPDF, and I had to use PDFTK, a command-line tool. https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/
Works great, really fast and you have a lot a useful functions (merge PDFs, remove password protection, add a watermak stamp...)