HTML to PDF Converter


The «HTML to PDF Converter» WordPress plugin created by, provides an easy way to convert any WordPress page or post to a PDF file. Simply install the plugin, configure your API key and conversion settings, and use the shortcode [html2pdf text="Save as PDF"] to add a PDF conversion link to any page or post on your site.

Plugin Settings

To configure the plugin, go to the «Settings -> HTML to PDF» page and enter your API key. You can get the API key by registering an account on

You can also customize the PDF conversion settings, including the format, orientation (portrait or landscape), margins, and custom page size.


To display the PDF conversion link using the shortcode, simply add the following shortcode to any page or post: [html2pdf text="Save as PDF"]


Use «media» parameter to activate special styles for printing: [html2pdf text="Save as PDF" media="print"].

CSS example to show only relevant part of the web page:

@media print {
  /* Hide everything */
  * {
      visibility: hidden;
      margin: 0;
      padding: 0;

  /* Make only your desired content visible */
  .your-visible-content * {
      visibility: visible;

  /* Optionally hide the conversion link from the PDF */
  .html2pdf_button {
      visibility: hidden!important;


  1. Upload the plugin files to the /wp-content/plugins/html-to-pdf-converter directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the «Plugins» screen in WordPress.
  3. Configure plugin going to the configuration page: «Settings -> HTML to PDF».
  4. Use the [html2pdf text="Save as PDF"] shortcode to display the PDF conversion link on your site.


Нет отзывов об этом плагине.

Участники и разработчики

«HTML to PDF Converter» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:


Перевести «HTML to PDF Converter» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений


  • Update readme file with examples


  • Add possibility to pass media parameter through the shortcode


  • Improve error reporting


  • Icon, author URI and support email added


  • Initial version

Initial release of the plugin.