When it comes to WordPress media types, the lion’s share of attention goes to images and video. This does make sense, but misses out a valuable and helpful file type that you might want to reconsider – the Portable Document Format (PDF). The good news is that it’s simple to upload PDF files to WordPress and display them.
Now the Block Editor is commonplace for lots of WordPress websites, you have an easier time with regards to uploading and displaying PDFs. In fact, the process is more in line with other media types, when it didn’t used to be the case. However, plugins can still carry out the functionality for you, often with a greater feature set and implementation.
Over the course of this tutorial, we’re going to show you how to upload PDF files to WordPress. If this is a new concept for you, check out our first section, which talks about the benefits of using PDFs on your site.
In lots of cases, a PDF file is already a complete document. It uses rich text and media to encapsulate a subject, so you’ll often want to preserve the way the PDF looks and reads.
However, the file is no good if it sits on your computer. In order to present it to site visitors, there’s a temptation to recreate that PDF as a native post on your site. It’s understandable, but comes with some drawbacks. For starters, it can eat up your time and capacity, and you might not ever replicate the document fully.
Instead, WordPress lets you upload and show PDF files with minimal fuss. There are a few benefits to consider:
If you work in fields where you produce physical or digital documents – graphic designers, writers, and more – you can offer a sample of your work as a PDF for download. However, you’ll want to optimize that file just as you would other forms of media.
PDF files can be ten or 20 times the size of the total webpage, which makes sense given how rich those documents are. As such, there are a few tips we can give to make your file optimal before you upload the PDF to WordPress:
As a final step, you should run the PDF file itself through an optimization tool. There are a few on the market – for example, ShortPixel (use our exclusive ShortPixel coupon to get 50% extra credit) makes a fantastic one:
Once you have a file that’s ready and lean, you can upload it to WordPress – and it won’t take more than a minute.
Over the rest of this post, we’re going to show you how to upload PDF files to WordPress. There are two ways to consider, and we’ll cover both:
First though, we can show you the native approach. Let’s start within the WordPress Block Editor.
We’d argue that the native WordPress functionality is good enough for most users who want to upload PDF files. There are a few ways to get your PDF into WordPress though. For example, you can upload to the Media Library as you would for images and video:
However, if you use the File Block, you can skip this step and upload direct from the Block Editor:
The process goes as you might expect:
This is all you need – the file should display within your content, at which point you can continue writing or work with the options to customize its look. We’ll have more on this later.
Of course, WordPress lets you extend its functionality using plugins, and this is true if you want to upload PDF files. The native functionality is good, but suffers in some areas:
Instead, you might want to consider a plugin. There are a few on the market – EmbedPress is one that’s popular:
Some users will also look to the Embed Any Document plugin:
However, we like PDF Embedder:
This is because has regular updates, a huge number of active installations, and comes with hundreds of rave reviews from other users. What’s more, it offers as much as the native WordPress option, while filling the gaps it misses.
To start, you’ll install and activate the plugin in the same way as any other. From there, you can head to your post or page, and locate a PDF Embedder Block:
Next, open the Media Library from the interface and upload your PDF file:
This is all you need to do, although you’ll notice that PDF Embedder doesn’t offer a representation of the viewer within the Block Editor. However, if you check out a preview, you’ll see the viewer in place:
At this point, you can carry on with your other tasks as the upload process is complete! However, there’s more you can do to present your PDFs in a greater light. We’ll look at this next.
Depending on your preferred solution, there will be options available to customize the look and feel of your PDF viewer. For example, WordPress’ native solution offers a smattering of Block Options:
Here, you have a toggle to show the inline embed in its entirety. This is helpful for consistency between screen sizes, as most smaller screens won’t show the PDF viewer. You’ll also be able to change the height of the viewer to match your content and requirements.
However, other than a Download button, there won’t be much more you can do with your file. The WordPress solution is functional, but a plugin such as PDF Embedder can take this functionality and run with it.
The options within the Block Editor won’t show too much – just some dimension and toolbar settings. However, the Settings > PDF Embedder screen will offer you more options depending on whether you purchase a premium version of the plugin:
This (admittedly) gives you some functionality the native WordPress solution offers for free, such as a download button. However, you get some further ‘quality of life’ features for your users. For example, you can let them open PDFs in new tabs, provide continuous page scrolling, and even track the views your files get.
If you have lots of PDF files and want a robust way to display and manage them, a premium plugin could make for a viable option.
When you think of WordPress media, images and video will be the first to mind. However, PDF files can offer rich interactivity – as much as a native web page. If you already have PDF files to hand, they can be a great way to offer fresh content without much work. Even better, WordPress offers full support for PDF files, and can let you display them inline with your other content.
Over this post, we’ve looked at how to upload PDF files to WordPress. While the native solution is good, you c an also install a plugin such as EmbedPress or PDF Embedder to give you more options. We like the latter plugin because of its approach to security and the wealth of positive user feedback. However, regardless of your choice, uploading PDF files and displaying them can be a good way to utilize these documents on your site.
Do you want to upload PDF files to WordPress, and will this article help? Let us know in the comments section below!
Trying to figure out how to start an online course so that you can share…
Considering using LearnDash to create online course content with WordPress? LearnDash is a popular WordPress…
WordPress XML files see a lot of use for me as a content creator, and…
If you’re looking for a way to deliver an online course, complete with all the…
Search Engine Optimization (SEO) is crucial for any website that wants to maximize its traffic…
Kinsta is a notable brand in the WordPress hosting space. The standout aspect of the…