How to Create PDF Documents from WordPress Posts and Page HTML

How to Create PDF Documents from WordPress Posts and Page HTML

Do you want to know how to create downloadable PDF documents from your WordPress website's posts and page HTML?

There's a free WP plugin for that.

Aptly named, the plugin is called WordPress PDF Generator Plugin.

What the HTML to PDF Does

The WordPress PDF Generator plugin is simple, free, and built to do one thing. When you add the plugin's shortcode to your page or WP template, it renders a button (or link) that allows users to download the HTML page as a PDF document.

WordPress PDF Generator is light on frills and heavy on delivery.

Options include:

  • Choice between PDF Download Icon or Button Link
  • Choice of PDF Icon
  • Choice of Downloaded File Name
  • Choice of Portrait or Landscape
  • Choice of Paper Size (A3, A4, A5)

How to Use the Plugin

It's super easy to use this plugin on any post, page, or piece of WordPress custom content where you need to allow users to download the page as a PDF.

Option #1: You can paste the plugin's shortcode directly into your content ['wp_objects_pdf']

Option #2: You can use WordPress' do_shortcode() function to manually add the shortcode to a PHP template file

echo do_shortcode('[wp_objects_pdf]');

And, that's it. The plugin takes care of the rest.

Download the WP Plugin

Ready to create downloadable PDFs from your WordPress site's HTML?

Click here to download the WordPress PDF Generator plugin.