Austen.Thompson53 answered on 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.
Maiya.Mosciski36 answered on 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.