Immediately I ask you not to send to google, mainly online services are offered there, only a couple have seen with api, which requires money for full functionality.

Online is of little interest to me, since my page is collected during the execution of the js-script, a link to it will give the desired display.

It is advisable to hear the opinions of people who actually solved such a problem. js or php.

    6 answers 6

    HTMLDOC

    HTMLDOC converts Hyper-Text Markup Language ("HTML") files, HTML, Adobe® PostScript®, or Adobe Portable Document Format (“PDF”) files.

    TCPDF

    TCPDF is a FLOSS PHP class for PDF PDF documents.

      HTML2PDF Pilot Software

      PHP script is called fpdf

      • Please read the question carefully - I'm not interested in the application, especially under Windows. Script, only script! - deivan_
      • one
        I wrote the same:> The PHP script is called fpdf - FreeMast
      • fpdf.org - Maksym Prus
      • not that. the developer himself writes about this: 19. Can I convert an HTML page to PDF with FPDF? Not real-world pages. But a GPL C utility does exist exist, htmldoc, which allows you to do it and gives good results: htmldoc.org (I am already on this link ...) - deivan_
      • 2
        All the better, look for fpdf.org/en/tutorial/index.php And then he writes why he created and how to use - Maksym Prus

      mpdf Normally supports Cyrillic

        Of all the libraries that I tried, I could not find wkhtmltopdf better. This library uses qtwebkit for PDF rendering. And this means that you can use the latest CSS3 (gradients, shadows) and JavaScript to generate PDF (i.e. pages dynamically assembled will also be generated correctly)

          PHP solution. Using the Dompdf library

          Convert HTML to PDF

            Dompdf is not supported for a long time. We, if the HTML was a little more than necessary, immediately generated a generation error. And so many, judging by the forums, failed to solve it. Now we use HTML generation in PDF by API pdf4b.ru We use for free, just refer to everything on the site.