Aller au contenu

Do you support HTMLDoc with PHP?

Ce contenu n’est pas encore disponible dans votre langue.

No. HTMLDoc is not available on Ruachost hosting.

HTMLDoc is a separate program that converts HTML pages into PDF files. It isn’t installed on our servers, so PHP scripts can’t call it.

You can turn HTML into PDF with free PHP libraries that run inside your own project. Install one with Composer over SSH:

  • Dompdf turns HTML and CSS into a PDF:

    Terminal window
    composer require dompdf/dompdf
  • TCPDF is good for detailed layouts and many languages:

    Terminal window
    composer require tecnickcom/tcpdf

If you use WordPress, many PDF plugins (for invoices or printable pages) already include one of these libraries.

Cette page vous a-t-elle aidé ?