How to Create PDF Documents from WordPress Posts and Page HTML

by | March 15, 2021 | Website Development

This page may contain affiliate links to recommended products or services. If you choose to purchase after clicking a link, I may receive a commission at no additional cost to you.

Last updated on: August 9, 2022

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.

Floyd Hartford is a website developer from southern Maine. He's focused on creating and building WordPress websites and loves spending time digging into code like HTML, CSS, scss, jQuery, PHP, and MySQL.


Submit a Comment

Your email address will not be published. Required fields are marked *

eight + three =

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Looking for WordPress Help?

I’m a freelance web developer specializing in small business and corporate marketing websites.

Pin It on Pinterest