Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Add a PDF Download for Posts in WordPress (Easy Method)

Sometimes, it’s more convenient to download an article as a PDF rather than bookmarking it or printing it out. This allows users to save content for offline reading or future reference.

While many devices offer a “Save as PDF” option when printing, not all visitors are aware of this feature. We’ve seen that making a dedicated PDF download button is a simple way to offer this functionality to your audience.

In this guide, we will show you how to easily add a PDF download option to your WordPress posts. This will make it easier for your users to access your content in a format that suits them best.

Adding a PDF download option to your WordPress posts and pages

Why Add a PDF Download Option for Posts in WordPress?

PDFs are widely used because they allow users to share documents across different devices and operating systems without any compatibility issues. We offer PDF downloads as content upgrades and have received overwhelmingly positive feedback from readers.

A PDF download ensures that the document’s content is printed exactly the same way on various platforms. This consistency makes it ideal for sharing and printing documents, and many users appreciate the ease it provides.

By offering a PDF download option for your posts, you give users the flexibility to save your content on their devices and print it whenever needed. We’ve seen this become a popular feature for those who prefer offline access.

Here are some types of content users often prefer to save and print:

  • Long-form articles
  • Recipes
  • How-to and DIY tutorials
  • Mathematical equations
  • Educational material like homework guides, worksheets, and more.

Additionally, you can use the PDF download feature to offer content upgrades that can help grow your email list. Some users even monetize this feature by offering PDF downloads as part of a subscription service.

Let’s walk through how to add a PDF download option for your WordPress posts.

Adding PDF Download Option for WordPress Posts

You first need to install and activate the free PDF & Print by BestWebSoft plugin. For more details, see our step-by-step guide on installing a WordPress plugin.

Upon activation, you need to visit the PDF & Print » Settings page to configure the plugin settings.

PDF and Print settings

From here, you can choose the post types where you want to show PDF and Print buttons and the position of the buttons.

Below that, you can pick the button icon, title, and which user roles can see the button.

PDF button settings

Don’t forget to click on the ‘Save Changes’ button to store your settings.

You can now visit a blog post or page on your WordPress website to see the button in action.

Download PDF or Print a post button

Troubleshooting PDF Download Issue

The plugin relies on a code library to generate PDF files. However, older versions of that library are not compatible with newer versions of PHP.

If your site is using a newer version of PHP, then trying to download the PDF may trigger a critical error.

Critical error in WordPress

Luckily, the error does not prevent you from using the WordPress admin area.

In your WordPress admin area, go back to the PDF & Print » Settings page and switch to the ‘Misc’ tab.

Upgrade mPDF library

Click on the ‘Upgrade’ button next to the Upgrade the mPDF library option.

The plugin will download and upgrade the mPDF library that it ships with.

Download a few PDFs to ensure that everything is working. Here is how a PDF for a blog post looked on our test site.

PDF preview in browser

Bonus Tip 💡: Don’t forget to set up file download tracking in WordPress to see which posts your users download more frequently.

Using PDF Downloads as Content Upgrades

We use PDF downloads as content upgrades on our websites, including WPBeginner. We have noticed that it works really well. You can read about the methods we use to grow our email list in our case study.

When we say content upgrade, this marketing term refers to the extra content perks you can offer your users in exchange for their email addresses.

This approach works well because the bonus content adds value to the user experience, and you also get leads in return. Think of it as a content bribe.

Instead of giving PDF downloads right away, you can download and upload PDF files to your website.

Next, you will need OptinMonster. It is the best conversion optimization software that helps you create beautiful marketing campaigns that convert visitors into customers and subscribers.

OptinMonster popup plugin

After signing up with OptinMonster, you will reach your account dashboard.

From here, you need to create a new campaign.

Creating a new campaign in OptinMonster

It comes with several campaign types, but for the sake of this tutorial, you need to select an inline campaign.

Choose a template. There are dozens of them. Don’t worry, you can customize them later.

Campaign templates

After that, use the campaign builder to design your campaign.

It is an intuitive design tool. You can simply point and click to edit an item or drag and drop blocks from the left column.

OptinMonster campaign builder

You can add a default view, a yes/no view, a signup form or optin view, and a Success view to your campaign using the options at the bottom of the campaign builder.

In the Success view, click on the button within the campaign and add the PDF download link in the ‘New Window URL’ field.

Add download link to the Success view

Make sure that you have published your campaign.

Next, switch to your WordPress website and install and activate the OptinMonster plugin.

You’ll be asked to connect your WordPress site to OptinMonster.

Connect OptinMonster to WordPress

After that, go to the OptinMonster » Campaigns page and publish the inline campaign you created earlier.

This makes the campaign available on your website.

OptinMonster publish campaign

Next, edit the post or page where you want to add the content upgrade offer.

You need to add the OptinMonster block where you want to display the offer and choose your campaign from the dropdown menu.

Choose OptinMonster campaign

Finally, you can now visit your post and page to see the campaign in action.

Don’t forget to fill out the email form and test the download link.

Download PDF content upgrade

OptinMonster works with all popular email marketing services. It also comes with power display rules, allowing you to show users personalized messages.

For more details, you can see our guide on how to show personalized content to different users in WordPress.

How to Monetize PDF Content in WordPress

There are many ways to monetize PDF content in WordPress. Depending on your business, you can choose one that fits your goals.

1. Create a Subscription Platform

A subscription platform allows you to sell membership plans on your website. Users on a subscription platform can get access to pay-per-view content, bonus downloads, and PDF files.

The easiest way to create a subscription-based community is to use MemberPress. It is the best membership plugin for WordPress, and it allows you to restrict content to paid members easily.

MemberPress

MemberPress lets you create multiple subscription levels and then restrict access to file downloads and other content based on a user’s subscription plan.

You can accept payments online using Stripe or PayPal. More importantly, you can set up recurring payments to automatically charge users for their subscriptions.

For details, see our guide on how to add content locking in WordPress.

2. Sell PDF Downloads in WordPress

The most direct way to monetize PDF content is by selling it as a digital download.

Easy Digital Downloads is the most straightforward way to sell digital downloads. It is a WordPress eCommerce plugin for selling digital goods like file downloads, eBooks, software, music, and more.

Easy Digital Downloads Website

Easy Digital Downloads allows you to add your PDF files as products, which you can then add to your posts or pages.

Plus, each of your digital downloads can have its product page. Then, users can easily add the downloads to their carts and check out.

Easy Digital Downloads allows you to accept payments using Stripe, PayPal, Authorize.net, and more. For details, see our article on selling digital downloads in WordPress.

We hope this article helped you learn how to add a PDF download for posts in WordPress. You may also want to see our pick of the best PDF plugins for WordPress or learn how to grow your business online without spending a fortune.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

25 CommentsLeave a Reply

  1. Jiří Vaněk

    Thank you for the great and detailed guide. What I appreciate about the Optin Monster plugin is the fact that I can effectively measure the number of PDF downloads. All I need to do is set up conversion tracking and the plugin takes care of the rest. As a result, I have an excellent overview of the number of PDF file downloads, which is great for measuring the success of the file.

  2. Mrteesurez

    Fantastic, This is a real cool feature to enhance users experience, it make it easy for them to download post contents especially contents like worked examples, solved assignment, chart and so on.
    But my question is, will the downloaded document also include all the images contained in the content and featured image?

    • WPBeginner Comments

      Yes, the plugin should normally include the images from the post in the PDF.

  3. Dennis Muthomi

    I’ve been including PDF links within my blog post content, but the process felt a bit clunky.

    the OptinMonster tip for using PDFs as a content upgrade to grow my email list is genius – can’t wait to set that up.
    I’ll definitely give that a try.

    Thanks for sharing these valuable tips to improve the reader experience on my site!

  4. Džangir Kolar

    Is it possible to have this plugin enabled just for one post?

    • WPBeginner Support

      You would want to reach out to the plugin’s support for the current options available

      Admin

  5. Michael

    Your plug-in wrecked the css for 50% or more of my site and didn’t show any pdf button anywhere.

  6. Ted

    Hi, its printing only the title for a custom post, any ideas? Thanks in advance.

  7. Soumik Sadman Anwar

    Hi, I would like to use it for growing email list for my website in a way like website visitors will have to provide their name and email address to download a post in pdf.

    The download option would be attached to the subscription box (like “Download” in CTA instead of “Subscribe”).

    Is there any way of doing it?

  8. George

    Hello, thank you for this article.
    Is it work only for English language ? I tried it for Russian, Georgian and get “?” instead of letters. Can I fix it somehow ?
    Thank you

  9. Ray

    this plug-in only seems to want to send the PDF through email, it doesn’t actually offer to let the users download the content to their computer ?

    • WPBeginner Support

      Hi Ray,

      It does offer users to download PDF to their computers. Please review plugin settings.

      Admin

  10. Ellen

    Great article. I’m looking for a plugin that allows users to add a pdf generated from a web page to a portfolio/cart/book as they go through the website and then print just one file at the end. Do you know how this could be done or if there is a plugin that does what I need?

    thanks

  11. Katarina

    Can you please share how to do this for blogger? :)
    Please, please!
    Kat

  12. Noor Nisa

    Thanks for your support WP beginner. It’s really a helpful article for me. But I don’t want “Download PDF” button on every post. I’d like to choose some posts, on which I would like to help peoples with PDF.

  13. Anam

    This feature (WP advanced PDF settings) is not available in my dashboard. What can i do?
    how can i link my facebook page to my wordpress website?

  14. Nergis Parikh

    Thanks for this post. Is there a way to get someone to either give their email or to share on FB, Twitter etc before they are allowed to download a pdf version?

  15. ali

    unfortunately this plugin does not support RTL languages such as persian or arabic.
    I dont know what should I do :(

    • WPBeginner Support

      The plugin authors released a new version of the plugin with RTL support. You can select the RTL option from the body section on plugin’s settings page. Additionally, you can click on the Advanced tab to upload your own font to be used with the PDF. You can collaborate with plugin authors and help them troubleshoot any issues you may come across.

      Admin

  16. Rodwell Smith

    Eureka!

    Thank you! This article is wonderfully filled with wonder! And not a moment too soon either. Each time I needed the solution I did a quick search but had to do some other type workaround.

    Hate to be short, but this “how to” I do right away.

  17. Viraj Maheshwari

    Kindly Check properly before reposting old articles. This plugin has not been updated for last two years shows warning in wordpress repository. So please verify correct plugin updates and repost or provide link of latest stable plugin

    • WPBeginner Support

      Plugin mentioned in the article was updated just a month ago. You probably got a cached version of the old article.

      Admin

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.