=== Document Embedder – Embed PDFs, Word, Excel, and Other Files ===
Contributors: bplugins, abuhayat, shehabulislam, taninrahman, farazi1, freemius
Tags: document embedder, embed pdf, embed any document, pdf embedder, document library
Requires at least: 6.5
Tested up to: 7.0
Stable tag: 2.2.0
Requires PHP: 7.1
Donate link: https://www.buymeacoffee.com/abuhayat/
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Document Embedder lets you display PDF, DOCX, PPTX, XLSX, and other files in WordPress sites with a responsive viewer and optional download button.

== Description ==
**Embed Any Document Instantly with the #1 No-Code Plugin – Trusted by 10,000+ WordPress Sites**


[**Document Embedder**](https://bplugins.com/products/document-embedder/) | [**Documentation**](https://bplugins.com/docs/document-embedder/getting-started/) | [**Pricing**](https://bplugins.com/products/document-embedder/pricing) | [**Support**](https://bplugins.com/support/) | [**Demo**](https://bplugins.com/products/document-embedder/#demos)

[**Document Embedder**](https://bplugins.com/products/document-embedder/) allows you to embed PDF, Word, Excel, PowerPoint, and other document formats directly into WordPress posts and pages. It supports local file uploads as well as files hosted on platforms like Google Drive and Dropbox. Files are displayed using the Google Drive viewer and can be configured to match your layout.

The new Document Library module adds a powerful way to organize and display multiple documents in a structured library. You can upload files from your device, WordPress Media Library, or via URL, rename or delete documents easily, and display them with customizable layouts. The library includes search, filter, and sorting options, a responsive design, and full control over view and download buttons. Shortcode and Gutenberg block support make it easy to add libraries anywhere on your site.

Want to capture leads before someone downloads? The **Email Gate** (Pro) requires visitors to submit their name and email before they can access a file. Every submission is logged to a built-in **Leads Dashboard** you can search, filter, and export as CSV.

This plugin is ideal for sharing reports, presentations, worksheets, guides, and other materials without requiring visitors to download them or leave your site.


### Key Features – Free Version

- **Embed Multiple File Types:** PDF, Word, Excel, PowerPoint, images, code, and more.

- **Responsive Viewer:** Adjust **width and height** to fit any layout — with independent controls for Desktop, Tablet, and Mobile.

- **Filename Display:** Show the document title at the top for clarity.

- **Download Button:** Easily allow users to download PDFs with a customizable button label (e.g., "Get Copy," "Save PDF").

- **Download Placement:** Position the download button in the **Toolbar** or **Below the Embed**.

- **Download Behavior:** Choose between **Force Save Dialog** (prompts users to save locally) or **Open in New Tab**.

- **Custom Download Filename:** Define the exact filename shown to users when they download the file.

- **Gutenberg Block Support:** Use the native **Document Embed block** in the WordPress Block Editor (Gutenberg) to insert, upload, and configure documents with a real-time live preview.

- **Simple Shortcode Embedding:** Prefer the Classic Editor or page builders? Use the `[embed_doc]` shortcode to place documents anywhere on your site.

- **Powered by Google Drive Viewer:** Reliable, fast rendering of your embedded files.

- **Dedicated Post Type:** Manage all your documents individually using the `ppt_viewer` custom post type.

**Document Library Module**

- **Display Multiple Documents**: Create a structured library of documents.

- **Support all File Types**: Works with PDFs, Word, Excel, PowerPoint, images, and more.

- **Flexible Upload Options**: Add documents from your device, WordPress Media Library, or via URL.

- **Quick Edit & Delete**: Rename or remove documents without hassle.

- **Shortcode and Block Support**: Add libraries anywhere using shortcode or Gutenberg block.

- **Customizable Layouts**: Style the library to match your design needs.

- **Search and Filter Controls**: Enable or hide search and filter options.

- **Sorting Options**: Sort by file size, name, or recent upload, with hide/show controls.

- **Responsive Design**: Optimized for desktops, tablets, and mobile devices.

- **Download & View Buttons**: Show view/download icons or text, with full control over display.

- **Visibility Settings**: Hide or show file icon, view button, download button, file size, and date.


### Pro Version – Unlock More Features
Upgrade to [**Document Embedder Pro**](https://bplugins.com/products/document-embedder/#pricing) for more flexibility, better user control, and advanced integrations.

**What's Included in Pro:**

- **Advanced Custom PDF Viewer Engine:** High-performance local PDF rendering using PDF.js.

- **Custom Toolbar Themes & Color Customizer:** Style your toolbar with Dark, Light, or fully Custom colors.

- **Disable Popout Option:** Prevent users from opening documents in a new window.

- **Lightbox Display:** Open documents in a modal window for smoother UX.

- **Loading Indicator:** Show a spinner until the document fully loads.

- **Google Drive API Integration:** Embed and manage docs directly from your Google Drive.

- **Dropbox Integration:** Access and embed files from Dropbox easily.

- **Download Access Control & Restrictions:** Limit downloads to Logged-in Users only, or restrict by specific User Roles.

- **Secure Email Gate for PDF Downloads:** Require visitors to submit Name and Email before they can download a document. Turn any file into a lead magnet.

- **Download Tracking & IP Limits:** Record total download counts and set per-IP download limits.

- **Premium Customer Support:** Priority help and expert assistance.

- **Fluid & Fast Document Rendering:** Optimized rendering engine for faster loading times.

**Document Library Module**

- **Extended Uploads:** Upload more than 5 documents (free version limited to 5).

### Upcoming Features ###

- **Multiple Themes**: Choose different styles for displaying document libraries.

- **File Size d=Display**: Show sizes in MB, KB, or other formats.

- **Flexible Date Formats**: Display upload dates in different formats.

### How to Use – Step-by-Step Guide

https://youtube.com/watch?v=mUlMpuPMP5Q


#### Quick setup in just a few steps:

- Install and activate the Document Embedder plugin.

- Navigate to Document Embedder > Add New Doc.

- Upload or link your document and configure the viewer settings.

- Copy the generated shortcode.

- Paste the shortcode into any post, page, or widget where you want the document to appear.


**Document Embed Block Support**
Prefer the WordPress Block Editor? Inserting documents has never been easier:

- Open the **Block Editor** (Gutenberg) on any post or page.

- Click **+** and search for the **Document Embed** block.

- Upload a new document, select one from your Media Library, or input a cloud URL.

- Configure advanced styling, custom toolbar themes, viewer types (Default vs Custom PDF), and download permissions directly from the editor sidebar.

- Publish your page to display a beautiful, responsive document preview.

[**Live Demo**](https://bplugins.com/products/document-embedder/#demos) | [**Try The Pro**](https://bplugins.com/products/document-embedder/#pricing)


### Supported File Types (16+ Formats)

- **Documents:** .PDF, .DOC, .DOCX, .PAGES, .TXT, .XPS

- **Spreadsheets:** .XLS, .XLSX

- **Presentations:** .PPT, .PPTX

- **Google Docs & Drive Files**

- **Images:** .JPEG, .PNG, .GIF, .TIFF, .BMP

- **Code Files:** .HTML, .CSS, .JS, .PHP, .C, .CPP, .H, .HPP

- **Adobe Files:** .AI, .PSD

- **3D & Vector:** .SVG, .EPS, .DXF

- **Videos:** WebM, MPEG4, MOV, AVI, FLV, WMV

- **Fonts:** .TTF

- **Archives:** .ZIP, .RAR

[**Live Demo**](https://bplugins.com/products/document-embedder/#demos) | [**Try The Pro**](https://bplugins.com/products/document-embedder/pricing)


### User Feedback

#### ⭐⭐⭐⭐⭐ [nice plugin](https://wordpress.org/support/topic/nice-plugin-4757/)

❛❛***it also works with the TutorLMS Plugin***❜❜

***-[testexperten](https://wordpress.org/support/users/testexperten/)***


#### ⭐⭐⭐⭐⭐ [Excellent plug-in with easy management](https://wordpress.org/support/topic/excellent-plug-in-with-easy-management/)

❛❛***Many thanks to the developers for such a wonderful plugin. It really facilitates the administration of projects and optimizes the submission of content from external files. A great solution.***❜❜

***-[o544r2987k](https://wordpress.org/support/users/o544r2987k/)***


#### ⭐⭐⭐⭐⭐ [Great](https://wordpress.org/support/topic/great-14919/)

❛❛***A great plugin. I use it on every page.***❜❜

***-[molomoro](https://wordpress.org/support/users/molomoro/)***


Liked this plugin? Hate it? Want a new feature? [**Send your feedback**](https://bplugins.com/support)


### Check out our other WordPress Plugins-

[**Html5 Video Player**](https://bplugins.com/products/html5-video-player/) – Display videos as single and playlist in multiple skins.

[**PDF Poster**](https://bplugins.com/products/pdf-poster/) – Display/Embed PDF files with different styles.

[**Html5 Audio Player**](https://bplugins.com/products/html5-audio-player/) – Listen audios with awesome visuals.

[**StreamCast**](https://bplugins.com/products/streamcast-radio-player/) – Customizable radio player with different skins.

[**3D Viewer**](https://bplugins.com/products/3d-viewer/) – Embed 3D models and 3D products with interaction.

[**Advanced Post Block**](https://bplugins.com/products/advanced-post-block/) – Show posts and custom posts in different layouts.


== Installation ==

You can install the Document Embedder plugin in three ways.

= From the WordPress Dashboard =
1. Log in to your WordPress admin dashboard.
2. Go to Plugins > Add New.
3. Search for "Document Embedder" (developed by **bPlugins**).
4. Click Install Now.
5. After installation, click Activate.

= Download & Upload =
1. Download the Document Embedder plugin (document-emberdder.zip).
2. Log in to your WordPress admin dashboard.
3. Go to Plugins > Add New.
4. Click Upload Plugin.
5. Select the document-emberdder.zip file and click Install Now.
6. Activate the plugin after installation.

= Manual Installation =
1. Download the Document Embedder plugin.
2. Extract the zip file.
3. Upload the document-emberdder folder to the /wp-content/plugins/ directory using FTP or File Manager.
4. Log in to your WordPress admin dashboard.
5. Go to Plugins > Installed Plugins.
6. Activate Document Embedder from the plugins list.

Enjoy


== Frequently Asked Questions ==

= What is the max file size i can embed? =

You can embed any supported document within 20 Mb of size. 

= Is the embeded doc work in every browser? =

Yes, In Most of the popular Browser such as Chrome, Safari, Firefox, IE And Microsoft Edge 

= How many doc Can i embed? =

There is no Limit, you can embed thousands of doc if you want.

= How does the Email Gate work? =

With Pro, you can require visitors to enter their Name and Email before downloading a document. All submissions are saved to the Leads Dashboard, where you can search, filter by date or document, and export as CSV.

= Can I limit how many times someone can download a file? =

Yes. With Pro you can set a maximum download count per IP address — for example, allowing each visitor to download a file no more than 3 times.

= Can I restrict downloads to logged-in users only? =

Yes. Pro lets you restrict downloads to logged-in users only, or limit access to specific user roles.

= Does it work with page builders like Elementor or Divi? =

Yes. Use the `[embed_doc]` shortcode in any page builder that supports shortcodes.

= Does it work with TutorLMS? =

Yes, Document Embedder is confirmed compatible with TutorLMS.

= Where do I report security bugs found in this plugin? =

Please report security bugs found in the source code of the Document Embedder plugin through the [Patchstack Vulnerability Disclosure Program](https://patchstack.com/database/vdp/9e5fb69e-e0a3-42b6-8c77-41cd43842317). The Patchstack team will assist you with verification, CVE assignment, and notify the developers of this plugin.


== Screenshots ==

1. Add New Document
2. Configure Document
3. Document Library Module
4. Preview
5. Preview with Download Button
6. Lightbox Preview
7. Add New Library
8. Preview Document Library
9. Preview Library Without Filter Options
10. View Documents In Document Library


== Changelog ==

= 2.2.0 - 21 June 2026 =
* **New:** Added brand new Custom PDF.js Viewer option, enabling high-performance local rendering for PDF files.
* **New:** Fully redesigned responsive document block architecture, engineered with modular layout blocks and premium modern aesthetics.
* **Update:** Unified shortcode rendering engine under the block's reactive component system, optimizing memory usage and ensuring 100% style and behavior alignment.
* **Update:** Restructured admin dashboard and metadata options into intuitive, clean functional categories for a seamless management experience.
* **Improved:** Automated cloud integration workflows with adaptive viewer modes (Default vs Custom PDF) based on document file types and origin.
* **Improved:** Cleaned up deprecated PHP functions and decoupled legacy controller layers for cleaner, safer, and faster processing.

= 2.1.2 - 1 June 2026 =
* **Improved:** Removed legacy and unused DocumentEmbedder files to optimize codebase and performance.
* **Improved:** Regenerated Composer autoloader files to remove obsolete class definitions.

= 2.1.1 - 23 May 2026 =
* **Improved:** Refactored the entire plugin codebase for better organization and maintainability.
* **Improved:** Removed unused code and optimized plugin structure for cleaner performance.
* **Fix:** Resolved existing bugs and stability issues across the plugin.
* **Security:** Enhanced overall security and improved code quality for a safer document embedding experience.

= 2.1.0 - 16 April 2026 =
* **New:** Complete download feature with a lot of options like access, email gate etc.
* **New:** Email Gate – require visitors to submit Name and Email before downloading; all leads saved to a searchable Leads Dashboard with CSV export and bulk delete.
* **New:** Download Tracking – record total download count per document.
* **New:** Per-IP Download Limits – restrict how many times a single IP address can download a file.
* **New:** Access Restrictions – limit downloads to logged-in users or specific user roles.
* **Update:** Update filename in a toolbar for standard view.
* **Update:** Update Shortcode generated UI for Easy to use.

= 2.0.6 - 2 March 2026 =
* **Update:** Improved overall user experience with a cleaner, more intuitive interface.
* **Update:** Refactored internal codebase for better readability, maintainability, and performance.
* **Fix:** Resolved all known UI and functionality issues across the plugin.
* **Fix:** Removed unused and legacy code to reduce clutter and improve stability.

= 2.0.4 - 24 January 2026 = 
* Fixed Issues - download button and view button styles issue, Vulnerability issue.

= 2.0.2 - 11 November 2025 = 
* Update dashboard and freemius sdk

= 2.0.0 - 4 November 2025 = 
* Fixed Vulnerability Issues

= 2.0.0 - 11 September, 2025 =
* Add Document Library
* Fixed Document Embedder Issues
* Move Document Embedder to Freemius

= 1.8.9 - 14 May, 2025 =
* Improved: Security
* Fixed: Function _load_textdomain_just_in_time was called incorrectly

= 1.8.8 - 25 Jan, 2025 =
* Fixed: Redirect to rest_no_route

= 1.8.7 - 1 July, 2024 =
* Added: Loader until PDF load

= 1.8.6 - 9 March, 2024 =
* Fixed: Blinking always


= 1.8.5 - 25 Feb, 2024 =
* Fixed: Deprecated  error messages


= 1.8.3 - 20/11/2022 =
* add 'Help' page
* remove 'Developer' and 'How to use' page

= 1.8.3 - 02/11/2022 =
* remove metabox

= 1.8.2 =
* generated pot file

= 1.8.1 =
* Solved Document load issue (Document will always load)
* Option to disable download button

=1.7.1 =
* Fixed security issue

= 1.4 =
* Fix Ooops... You forgot to Select a document Warning
* Fixed Block Editor issue

= 1.3 =
* Fix Js issue and make compatible with WordPress 5.5

= 1.2 =
* Gutenberg Block Support

= 1.1 =
* Fix Position issue
* Improved Performance


= 1.0 =
* Initial Release