How to generate pdf file?

There is a form with questions, and filling out all the fields have to be generated a pdf file with the answers, with the option to download it. How it can be implemented?
June 14th 19 at 19:19
2 answers
June 14th 19 at 19:21
Generate the report in the form of a piece of html and feed it into the type library FPDF (there are others, Google "php pdf generator").

Be prepared for the fact that the styles have to dopilivat a file.
June 14th 19 at 19:23
For different purposes different code generators, is here to help Google, some do not know how to do a normal transfer required pages when printing documents, some do not know the Cyrillic alphabet, and someone the size of a file with three words up to several megabytes, it all depends on goals. Well, the styles of this file and pain-pain-pain.

Find more questions by tags PHP