A
A
Anya Ivanova2019-10-24 14:51:57
PHP
Anya Ivanova, 2019-10-24 14:51:57

How data from a PHP form fill a ready-made template in pdf?

A person fills out a form on the site and this information should be generated into a ready-made pdf, word template, so that the user does not manually fill out 10 forms with most of the same data. As I understand it, there are PHP libraries for this, but they create a new pdf template, and I need it to be ready-made, in which everything is already there. Most likely, you need to designate fields in pdf or word with variables, for example $ {name} But I don't know how to do this. Help, google can't help me with my situation

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikita, 2019-10-24
@iFunction

For word there is PHPWord Templates processing
https://phpword.readthedocs.io/en/latest/templates...

I
index0h, 2019-10-24
@index0h

Pdf is easiest to render from html: https://wkhtmltopdf.org/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question