HTML to PDF Converter

A WordPress plugin that allows you to convert any WordPress page or post to a PDF file using the html2pdf.app API.

Author:html2pdf.app (profile at wordpress.org)
WordPress version required:5.0
WordPress version tested:6.3.3
Plugin version:1.0.6
Added to WordPress repository:22-09-2023
Last updated:12-03-2024
Rating, %:0
Rated by:0
Plugin URI:https://html2pdf.app
Total downloads:972
Active installs:60+
plugin download
Click to start download

The “HTML to PDF Converter” WordPress plugin created by html2pdf.app, 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 html2pdf.app API key. You can get the API key by registering an account on https://dash.html2pdf.app/registration.

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

Usage

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

Examples

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;
  }
}

ChangeLog