# Do you support HTMLDoc with PHP?

> No. HTMLDoc isn't available on Ruachost hosting. To turn HTML into PDF from PHP, use a library such as Dompdf or TCPDF installed with Composer.

Source: https://helpcenter.ruachost.com/faq/guides/do-you-support-htmldoc-with-php/

**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.

## Alternatives

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:

  ```bash
  composer require dompdf/dompdf
  ```

- **TCPDF** is good for detailed layouts and many languages:

  ```bash
  composer require tecnickcom/tcpdf
  ```

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

## Related articles

- [Installing Composer](https://helpcenter.ruachost.com/developers/php/installing-composer/)
- [Do you support PDFlib with PHP?](https://helpcenter.ruachost.com/faq/guides/do-you-support-pdflib-with-php/)
