=== Embed Any Document - Embed PDF, Word, PowerPoint and Excel Files  ===
Contributors: awsmin
Tags: embed documents, embed ppt, document viewer, pdf viewer, word ppt
Author URI: http://awsm.in
Requires at least: 6.0
Tested up to: 7.0.3
Stable tag: 2.7.14
License: GPLv2

Embed PDF, DOC, PPT and XLS documents easily on your WordPress website with the help of Google Docs Viewer or Microsoft Office Online. 

== Summary ==

Seamlessly embed and display PDF, Word, Excel and PowerPoint documents on your WordPress website.

== Description ==

Embed Any Document WordPress plugin lets you embed your PDF, Word, PowerPoint and Excel documents easily in your WordPress website. The plugin integrates Google Docs Viewer and Microsoft Office Online to display your documents on your website. 

Embed Any Document works just perfectly with Gutenberg as well as the classic editor. Support for more site builders are on its way!  It also lets you add a Download link below your embed optionally. 

<h3>🆕 NEW IN VERSION 2.7.0</h3>
* Embedding documents is now easier than ever in the block editor! The whole new <strong>Document block</strong> lets you embed the documents quicker than ever 

* The EAD-Exclusive <strong>document pre-loader</strong> helps you with better performance and better User Experince

<a href="https://dev.awsm.in/innovations/embed-any-document-plugin-demo/">Live Demo</a> 

<h3>📂 Supported file types</h3>

* Microsoft Word (<strong>DOC</strong>, DOCX, DOCM, DOTM, DOTX)
* Microsoft Excel (<strong>XLS</strong>, XLSX, XLSB, XLSM)
* Microsoft PowerPoint (<strong>PPT</strong>, PPTX, PPSX, PPS, PPTM, POTM, PPAM, POTX, PPSM)
* Adobe Portable Document Format (<strong>PDF</strong>)

<h3>📋 Supported Viewers</h3>

* Google Docs Viewer (PDF & Office Documents)
* Microsoft Office Online (Office Documents Only)
* Browser Native (PDF Only)
* [PLUS VERSION] Google Drive Viewer (Stable and high performance viewer for documents hosted with Google Drive)
* [PLUS VERSION] One Drive Viewer (Document viewer for documents hosted in OneDrive)
* [PLUS VERSION] Box.com Viewer (Viewer for all documents hosted in Box.com with advanced security options to disable download button, add password, etc)

<h3>🔥 Key Benefits of Embed Any Document WordPress plugin </h3>

1. <strong>Easy to Upload and Embed.</strong> Embed Any Document is integrated seamlessly into the Classic Editor and the Block Editor. With a click of ‘Add Document’ button it lets you upload documents and embed them.

2. <strong>No 3rd party plugin needed.</strong> The plugin uses Google Docs Viewer and Microsoft Office Online’s services to display the documents in your website. You will not require any additional browser plugins to view the documents and you can expect maximum compatibility for your documents.

3. <strong>Option to choose the viewer.</strong> You can choose between Google Docs Viewer and Microsoft Office Online to display your document. If one service is down, you can switch to another easily. EAD also supports browser-based viewer for PDF files. 

4. <strong>Cross-browser compatibility.</strong> The viewers are mobile-ready and cross-browser compatible. 

5. <strong>Clean and Minimal UI.</strong> Embed Any Document comes with a clean and clutter-free UI.


<h3>🚀 Embed Any Document PLUS</h3>
The plugin comes with a premium version which allows you embed documents from Google Drive, Dropbox and Box.com. 

By using <strong><a href="http://embedanydocument.com/plus-cc"> Embed Any Document PLUS </a></strong> you can make use of the privacy options the cloud services (<strong>OneDrive, Google Drive, Dropbox and Box.com</strong>) offering you. You can remove download options, embed larger files, put passwords and even restrict the views. 

<h3>⛔️ Limitations of the plugin</h3>

Being entirely depending on third-party cloud services (Google Docs Viewer and Microsoft Office Online), Embed Any Document has its own limitations.

* The embedded display <strong>does not support video/audio playback and animations/transitions</strong> in the embedded documents

* Your document has to be available online for the embed views to work. The <strong>viewers do not support local host, intranet</strong> and files hosted in any password protected environment

* The <strong>viewers can handle files of a limited size only</strong> (Maximum 8MB for Google Docs Viewer and 10MB for Microsoft Office Online)

* The <strong>download and pop-out buttons cannot be removed</strong> - Any feature that comes by default with the viewers cannot be removed or altered
 

Please read our <a href="http://awsm.in/ead-plus-documentation/#faqs" target=“_blank”>FAQs</a> for details.


*This is an <a href="http://awsm.in" target=“_blank”>AWSM</a> Project.*

<strong>Disclaimer:</strong> This plugin is not authorized by, endorsed by or sponsored by Google or Microsoft. The plugin is just making use of the cloud services the respective companies provide to preview your documents. 


== Installation ==

1. Upload the entire `embed-any-documents` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Done.

Upload or link the documents to your site using the ‘Add Document’ button in the Visual editor. 

== Screenshots ==

1. Embed Any Document Working
2. Embed Any Document Gutenberg Block
3. Block editor view and block options
4 ‘Add Document’ button in the Classic Editor
5. Add document popup for the Classic Editor
6. Insert Document options for the Classic Editor
7. Add from URL option for the Classic Editor 
8. Embedded Document Preloader 

== Frequently Asked Questions ==

= How do I add documents? =
Once the plugin is activated you can find ‘Add Document’ button in your WordPress visual editor. Just click on that and follow your heart.

= File not found error in my localhost site! =
The viewers (Google Docs Viewer and Microsoft Office Online) do not support locally hosted files. Your document has to be available online for the viewers to access.

= I have another question that you must add in your FAQ. =
Great. Send it to ead@awsm.in. We will answer it as soon as we can.

== Changelog ==
= V 2.7.14 - 2026-08-07 =
* FIX: Stored XSS vulnerability in the bundled PDFObject library.

= V 2.7.13 - 2026-07-15 =
* IMPROVED: Updated Block API version to 3.
* FIX: Google Drive upload issue with new API keys.
* Code improvements.

= V 2.7.12 - 2025-12-04 =
* Code improvements.

= V 2.7.11 - 2025-11-28 =
* FIX: Enhanced sanitization of document embed attributes to prevent XSS.
* Code improvements.

= V 2.7.8 - 2025-09-30 =
* FIX: Security vulnerability in PDF embed sanitized.

= V 2.7.7 - 2025-05-02 =
* Vulnerability fix.
* Corrected load_plugin_textdomain() for compatibility with WP 6.8+.
* Code improvements.

= V 2.7.6 - 2025-02-14 =
* Improved security.
* Code improvements.

[See changelog of previous versions](https://raw.githubusercontent.com/awsmin/Embed-Any-Documents/master/CHANGELOG.md)

== Upgrade Notice ==

= 2.7.14 =
Security fix: patches a stored XSS vulnerability in the bundled PDFObject library. Update recommended.


