Title: Embed PDF with Smallpdf
Author: Smallpdf
Published: <strong>Novanm 14, 2024</strong>
Last modified: Novanm 14, 2024

---

Search plugins

![](https://ps.w.org/embed-pdf-by-smallpdf/assets/banner-772x250.png?rev=3188406)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/embed-pdf-by-smallpdf/assets/icon-256x256.png?rev=3188406)

# Embed PDF with Smallpdf

 By [Smallpdf](https://profiles.wordpress.org/smallpdf/)

[Download](https://downloads.wordpress.org/plugin/embed-pdf-by-smallpdf.zip)

 * [Details](https://hat.wordpress.org/plugins/embed-pdf-by-smallpdf/#description)
 * [Reviews](https://hat.wordpress.org/plugins/embed-pdf-by-smallpdf/#reviews)
 *  [Installation](https://hat.wordpress.org/plugins/embed-pdf-by-smallpdf/#installation)
 * [Development](https://hat.wordpress.org/plugins/embed-pdf-by-smallpdf/#developers)

 [Support](https://wordpress.org/support/plugin/embed-pdf-by-smallpdf/)

## Description

Embed PDF with Smallpdf makes it easy to add PDF documents to your WordPress posts
and pages. This plugin offers two convenient methods for embedding PDFs:

 1. **Gutenberg Block**:
 2.  * Add the block by clicking on the + button in the Gutenberg editor.
     * Search for “Embed PDF with Smallpdf”.
     * You can either upload a PDF from your media library or paste a PDF URL in the
       block details in the sidebar.
     * Adjust the height of the widget by specifying the size in pixels (px) from the
       sidebar.
 3. **Shortcode**:
 4.  * Use the shortcode `[pdf url='_ADD_PDF_URL_HERE_']` to embed a PDF.
     * Control the height of the widget by adding the `height` parameter to the shortcode,
       e.g., `[pdf url='' height='480']`. The height value, in px, must be integer.

This flexibility allows you to seamlessly integrate PDF files into your content,
ensuring they are easily accessible to your audience.

### Use of Third-Party Services

This plugin integrates the Embed PDF widget viewer from [Smallpdf](https://smallpdf.com/embed-pdf).
To display your PDF successfully, the file may be processed through Smallpdf’s servers.

By using this plugin, you agree to Smallpdf’s [Terms & Conditions](https://smallpdf.com/terms)
and [Privacy Policy](https://smallpdf.com/privacy)

### Development

The source code for this plugin is available on GitHub:
 [GitHub Repository](https://github.com/smallpdf/wordpress-plugin)

## Blocks

This plugin provides 1 block.

 *   Embed PDF with Smallpdf Insert a PDF viewer in your post and pages using Smallpdf's
   Embed PDF.

## Installation

#### From your WordPress Admin Dashboard (Recommended)

 1. Go to _Plugins_  _Add New Plugin_
 2. Search for _Embed PDF with Smallpdf_
 3. Click _Install_, then _Activate_

#### Manual installation

 1. Download the plugin as `.zip` file
 2. Unzip the downloaded archive
 3. Upload `embed-pdf-by-smallpdf` folder into your `/wp-content/plugins/` directory
 4. Go to _Plugins_  _Installed Plugins_
 5. _Activate_ Embed PDF with Smallpdf

## FAQ

### Can I embed multiple PDFs on the same page?

Yes, you can embed multiple PDFs on the same page using either the Gutenberg block
or the shortcode. Each block or shortcode will handle an individual PDF file.

### Can I adjust the dimensions of the embedded PDF viewer?

Yes, you can adjust the height of the embedded PDF viewer. In the Gutenberg block,
you can specify the height in the block’s sidebar settings. When using the shortcode,
add the height parameter with the desired value in pixels, e.g., `height='500'`.

### What types of PDF files can I embed?

You can embed any standard PDF file. Simply ensure that the URL you provide or the
file you upload is a valid PDF document.

### Can I use this plugin without an API key?

Yes, the Embed PDF with Smallpdf plugin does not require an API key to function.
You can embed PDFs without any additional setup

### Why does it say “Document unavaiable”?

The message `Document unavailable` typically means that the PDF is not reachable
or readable. To resolve this issue, please ensure that:

 * The URL points to a valid PDF file.
 * There are no typos in the URL.
 * Your internet connection is stable.

If the problem persists, verify that the PDF file is publicly accessible and not
restricted by permissions or behind a firewall.

## Reviews

![](https://secure.gravatar.com/avatar/9e69b8403d964c06612c6846c7e81af4958a7f034cacaa026ca7fe494341a45d?
s=60&d=retro&r=g)

### 󠀁[Optimizing PDFs for Seamless WordPress Embedding](https://wordpress.org/support/topic/optimizing-pdfs-for-seamless-wordpress-embedding/)󠁿

 [mirzabilalali10](https://profiles.wordpress.org/mirzabilalali10/) Jiyè 9, 2026

When you’re managing content on a WordPress site, embedding PDFs can be an effective
way to share detailed documents like whitepapers, product catalogs, or academic 
reports directly within your posts and pages. It offers a seamless user experience,
allowing visitors to view important information without leaving your site. However,
the convenience of embedding often comes with a significant challenge: the size 
of the PDF files themselves. – The Performance Impact of Unoptimized PDFs Large 
PDF documents, especially those rich in images or complex graphics, can be substantial.
If you embed these unoptimized files directly, they can dramatically increase your
page’s load time. This isn’t just an aesthetic issue; slow-loading pages lead to
higher bounce rates, frustrated users, and can negatively impact your search engine
rankings. Google and other search engines prioritize fast-loading websites, and 
a cumbersome PDF can easily undermine your site’s overall performance metrics. For
mobile users, a heavy PDF can be even more problematic, consuming data and delaying
access to critical content. – The Solution: Effective PDF Compression The key to
successful PDF embedding in WordPress lies in optimizing your documents before they
ever touch your server. This primarily involves compressing the PDF to reduce its
file size without noticeably degrading its visual quality or readability. Compression
algorithms work by removing redundant data, optimizing image resolution for web 
display, and streamlining internal document structures. The goal is to make the 
file as lightweight as possible while retaining all essential information and visual
integrity. – Streamlining PDF Optimization with Free Browser Tools For those looking
for a straightforward and efficient way to prepare their PDFs for web embedding,
there’s a powerful and completely free option available. If you frequently need 
to **quickly reduce the file size of your PDF documents before uploading them to
your WordPress media library, The Tools Kit offers an excellent Compress pdf utility.
This browser-based tool simplifies the entire process: you just upload your PDF,
and it handles the compression, providing you with an optimized version in mere 
seconds. One of the standout benefits of using a service like The Tools Kit for 
this task is its user-friendly approach. There’s absolutely no software to install,
no account registration or email required, and critically, the output files are 
always free of watermarks. Your privacy is also respected, as uploaded documents
are processed on their servers but not permanently stored. This makes it an ideal
solution for anyone managing a WordPress site, from individual bloggers to small
business owners, who needs quick, reliable, and secure PDF optimization without 
any hidden costs or complicated workflows. -Broader PDF Management for WordPress
Users Beyond initial compression for embedding, managing PDFs on a WordPress site
often involves a broader set of tasks. You might find yourself needing to merge 
several smaller PDF reports into one comprehensive document, or perhaps split a 
large user manual into individual chapters for easier navigation. Sometimes, you’ll
even need to convert a PDF into an editable format like Word for content updates,
or convert images to PDF for consistent document presentation. While compression
is vital for performance, having access to a suite of reliable PDF tools can streamline
your entire content management workflow.

 [ Read all 0 reviews ](https://wordpress.org/support/plugin/embed-pdf-by-smallpdf/reviews/)

## Contributors & Developers

“Embed PDF with Smallpdf” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Smallpdf ](https://profiles.wordpress.org/smallpdf/)

[Translate “Embed PDF with Smallpdf” into your language.](https://translate.wordpress.org/projects/wp-plugins/embed-pdf-by-smallpdf)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/embed-pdf-by-smallpdf/),
check out the [SVN repository](https://plugins.svn.wordpress.org/embed-pdf-by-smallpdf/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/embed-pdf-by-smallpdf/)
by [RSS](https://plugins.trac.wordpress.org/log/embed-pdf-by-smallpdf/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.0

 * Initial release of Embed PDF with Smallpdf

## Meta

 *  Version **1.0.1**
 *  Last updated **2 years ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.5 or higher **
 *  Tested up to **6.7.7**
 *  PHP version ** 7.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/embed-pdf-by-smallpdf/)
 * Tags
 * [document](https://hat.wordpress.org/plugins/tags/document/)[embed pdf](https://hat.wordpress.org/plugins/tags/embed-pdf/)
   [pdf](https://hat.wordpress.org/plugins/tags/pdf/)[pdf viewer](https://hat.wordpress.org/plugins/tags/pdf-viewer/)
 *  [Advanced View](https://hat.wordpress.org/plugins/embed-pdf-by-smallpdf/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/embed-pdf-by-smallpdf/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/embed-pdf-by-smallpdf/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/embed-pdf-by-smallpdf/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/embed-pdf-by-smallpdf/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/embed-pdf-by-smallpdf/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/embed-pdf-by-smallpdf/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/embed-pdf-by-smallpdf/reviews/)

## Contributors

 *   [ Smallpdf ](https://profiles.wordpress.org/smallpdf/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/embed-pdf-by-smallpdf/)