Title: Document Viewer &#8211; let visitors view files right in the browser
Author: bPlugins
Published: <strong>13 ਨਵੰਬਰ 2019</strong>
Last modified: 30 ਅਗਸਤ 2026

---

ਪਲੱਗਇਨਾਂ ਖੋਜੋ

![](https://ps.w.org/embed-office-viewer/assets/banner-772x250.png?rev=3623277)

![](https://ps.w.org/embed-office-viewer/assets/icon.svg?rev=3623277)

# Document Viewer – let visitors view files right in the browser

 [bPlugins](https://profiles.wordpress.org/bplugins/) ਵੱਲੋਂ

[ਡਾਊਨਲੋਡ ਕਰੋ](https://downloads.wordpress.org/plugin/embed-office-viewer.2.4.2.zip)

 * [ਵੇਰਵਾ](https://pan.wordpress.org/plugins/embed-office-viewer/#description)
 * [ਸਮੀਖਿਆਵਾਂ](https://pan.wordpress.org/plugins/embed-office-viewer/#reviews)
 *  [ਸਥਾਪਤੀਕਰਨ](https://pan.wordpress.org/plugins/embed-office-viewer/#installation)
 * [ਵਿਕਾਸ](https://pan.wordpress.org/plugins/embed-office-viewer/#developers)

 [ਸਹਿਯੋਗ](https://wordpress.org/support/plugin/embed-office-viewer/)

## ਵੇਰਵਾ

If you have Office documents on your website or blog that you want your readers 
to view even if they don’t have Office installed? Would you rather view a document
before downloading it? To give your audience a better experience, try the Office
Web Viewer.

Document Viewer embeds Word, Excel, PowerPoint, PDF and HTML files directly into
your posts and pages. Visitors read the file where it sits — no download, no Microsoft
Office, no browser plugin.

The free version gives you a native **Gutenberg block** and a **shortcode generator**,
two rendering engines (Google Doc Viewer and Microsoft Online Viewer) that you can
switch per document, and full control over width and height in px or %.

The pro version adds cloud sources — pick a file straight out of **Google Drive,
Dropbox or OneDrive** — a **self-hosted Custom PDF Viewer** built on PDF.js so your
PDFs never leave your server, and a full **content protection** layer: block right-
click, copy, save and print shortcuts, hide the download and full-screen buttons,
and stop the document being popped out into a new tab.

**[See Live Demo](https://bplugins.com/products/document-viewer/#demos)**
 **[Buy The Pro](https://bplugins.com/products/document-viewer/pricing)**

#### Some Benefits

 * Works perfectly in computers, tablets, and mobile phones.
 * You don’t need to convert Office files for the web (e.g., PDF, HTML).
 * Anyone can view Office files from your website or blog, even if they don’t have
   Office.

### Document Viewer Free Features

**Build & embed**

 * Native **Document Viewer** Gutenberg block, with wide and full-width alignment
   support
 * **Shortcode generator** — build a document once under _Office Viewer › Add New_
   and paste `[office_doc id="128"]` into the Classic Editor, widgets, page builders
   or a theme template with `do_shortcode()`
 * Embed any file from the **WordPress Media Library**
 * Supported formats: Word (.doc, .docx), Excel (.xls, .xlsx), PowerPoint (.ppt,.
   pptx), PDF (.pdf) and HTML (.html)

**Viewer engines**

 * **Google Doc Viewer** — the best all-rounder, strong with PDFs
 * **Microsoft Online Viewer** — pixel-true Word, Excel and PowerPoint rendering
 * Choose the engine per document; no global lock-in and no re-uploading

**Layout**

 * Custom **width and height** in px or %
 * Responsive on desktop, tablet and mobile
 * Four grouped block settings panels: Document Source, Viewer Engine, Display &
   Dimensions, Security & Restrictions

**Admin experience**

 * **Help & Demos** dashboard with a quick-start guide, live demos and the changelog
 * Built-in **help assistant** on every plugin screen — works offline, no account
   required
 * Legacy documents and shortcodes from older versions are migrated automatically
 * Translation ready (.pot file included)

### Document Viewer Pro Features

**Cloud document sources**

 * Choose a document from **Google Drive** with the native Drive picker
 * Choose a document from **Dropbox** with the Dropbox chooser
 * Choose a document from **OneDrive**
 * **Cloud API Settings** page to store your Dropbox App Key and Google API key,
   Client ID and Project Number once for the whole site

**Custom PDF Viewer**

 * **Self-hosted PDF.js viewer** — your PDF is rendered on your own server and never
   sent to a third-party service
 * Full PDF toolbar: zoom, page navigation, thumbnails and search inside the document

**Content protection**

 * **Protect Content** — disable right-click and block the Ctrl/Cmd + C, A, S and
   P shortcuts
 * **Disable Pop-out** — stop the document being opened in a new tab
 * **Disable Full Screen** — remove the full-screen expand control
 * **Hide the download button** inside the Microsoft viewer toolbar
 * **Hide the full-screen button** inside the Microsoft viewer toolbar

**Viewer chrome**

 * Show or hide the **file name** at the top of the viewer
 * Show or hide a **download button** at the top of the viewer

**Support**

 * Priority email support and a 7-day free trial on every Pro plan

### User Feedback

#### ⭐⭐⭐⭐⭐ 󠀁[Impressively Stable](https://wordpress.org/support/topic/impressively-stable/)󠁿

❛❛**_Nice wp plugin ever. I’ve use it for 4 years._**❜❜

**_–[aircess](https://wordpress.org/support/users/aircess/)_**

#### ⭐⭐⭐⭐⭐ 󠀁[Does the job well.](https://wordpress.org/support/topic/does-the-job-well-131/)󠁿

❛❛**_This plugin works fine_**❜❜

**_–[muhammadarooj](https://wordpress.org/support/users/muhammadarooj/)_**

#### ⭐⭐⭐⭐⭐ 󠀁[Exactly What I Need](https://wordpress.org/support/topic/exactly-what-i-need-161/)󠁿

❛❛***I am a theatre director and I use my website to communicate with my performers
and technical crews.

I wanted to SHOW them documents in situ as well as enable them to easily download
them and, after looking at other solutions, this plugin is PERFECT for this.

I am delighted with it and cannot recommend it highly enough.***❜❜

**_–[jfortune](https://wordpress.org/support/users/jfortune/)_**

#### – Did you like this plugin? Dislike it? Have a feature request? 󠀁[Please share your feedback with us](https://pan.wordpress.org/plugins/embed-office-viewer/support@bplugins.com?output_format=md)󠁿

#### How It Works

 * Your Document will be embed in your site, blog via a iframe which is service 
   of Office Web Viewer
 * This plugin use Office Web Viewer service of Microsoft [Read More About Office Web viewer](http://officewebviewer.com)
 * Terms Of Service : [Microsoft’s Terms of service ](https://go.microsoft.com/fwlink/?LinkID=206977)
 * Privacy Policy: [Microsoft’s Privacy Policy ](https://go.microsoft.com/fwlink/?LinkId=521839)

## ਸਕਰੀਨਸ਼ਾਟ

[⌊Word, Excel, PowerPoint and PDF files read inline on your page — no download, 
no Office install.⌉⌊Word, Excel, PowerPoint and PDF files read inline on your page—
no download, no Office install.⌉[

Word, Excel, PowerPoint and PDF files read inline on your page — no download, no
Office install.

[⌊Native Gutenberg block with four grouped settings panels: Document Source, Viewer
Engine, Display & Dimensions, and Security & Restrictions.⌉⌊Native Gutenberg block
with four grouped settings panels: Document Source, Viewer Engine, Display & Dimensions,
and Security & Restrictions.⌉[

Native Gutenberg block with four grouped settings panels: Document Source, Viewer
Engine, Display & Dimensions, and Security & Restrictions.

[⌊Three rendering engines — Google Doc Viewer and Microsoft Online Viewer are free,
the self-hosted Custom PDF Viewer is pro.⌉⌊Three rendering engines — Google Doc 
Viewer and Microsoft Online Viewer are free, the self-hosted Custom PDF Viewer is
pro.⌉[

Three rendering engines — Google Doc Viewer and Microsoft Online Viewer are free,
the self-hosted Custom PDF Viewer is pro.

[⌊Pro: embed straight from Google Drive, Dropbox or OneDrive after a one-time Cloud
API Settings setup.⌉⌊Pro: embed straight from Google Drive, Dropbox or OneDrive 
after a one-time Cloud API Settings setup.⌉[

Pro: embed straight from Google Drive, Dropbox or OneDrive after a one-time Cloud
API Settings setup.

[⌊Pro: Security & Restrictions — block right-click, copy, save, print, pop-out, 
full screen and the Microsoft viewer toolbar buttons.⌉⌊Pro: Security & Restrictions—
block right-click, copy, save, print, pop-out, full screen and the Microsoft viewer
toolbar buttons.⌉[

Pro: Security & Restrictions — block right-click, copy, save, print, pop-out, full
screen and the Microsoft viewer toolbar buttons.

[⌊Set width and height in px or %, use wide and full alignment, and stay readable
on desktop, tablet and phone.⌉⌊Set width and height in px or %, use wide and full
alignment, and stay readable on desktop, tablet and phone.⌉[

Set width and height in px or %, use wide and full alignment, and stay readable 
on desktop, tablet and phone.

[⌊Shortcode generator — build the document once under Office Viewer, then paste [
office_doc id="128"] anywhere.⌉⌊Shortcode generator — build the document once under
Office Viewer, then paste [office_doc id="128"] anywhere.⌉[

Shortcode generator — build the document once under Office Viewer, then paste [office_doc
id=”128″] anywhere.

[⌊Frontend output for .docx, .xlsx, .pptx and .pdf — fonts, tables, charts and slide
layouts are preserved.⌉⌊Frontend output for .docx, .xlsx, .pptx and .pdf — fonts,
tables, charts and slide layouts are preserved.⌉[

Frontend output for .docx, .xlsx, .pptx and .pdf — fonts, tables, charts and slide
layouts are preserved.

[⌊The Help & Demos dashboard — quick-start steps for the block and the shortcode,
supported formats at a glance, and the built-in help assistant answering right inside
wp-admin.⌉⌊The Help & Demos dashboard — quick-start steps for the block and the 
shortcode, supported formats at a glance, and the built-in help assistant answering
right inside wp-admin.⌉[

The Help & Demos dashboard — quick-start steps for the block and the shortcode, 
supported formats at a glance, and the built-in help assistant answering right inside
wp-admin.

[⌊Free vs Pro at a glance — exactly what ships in the free plugin and what the Pro
upgrade unlocks.⌉⌊Free vs Pro at a glance — exactly what ships in the free plugin
and what the Pro upgrade unlocks.⌉[

Free vs Pro at a glance — exactly what ships in the free plugin and what the Pro
upgrade unlocks.

## ਬਲਾਕ

This plugin provides 1 block.

 *   Document Viewer You can Embed Microsoft Word, Excel And Powerpodint File in
   wordpress Using 'Document Viewer for Office' Plugin.

## ਸਥਾਪਤੀਕਰਨ

This section describes how to install the plugin and get it working.

e.g.

 1. Upload `plugin-directory` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Use shortcode in page, post or in widgets.
 4. ` in your templates

## ਅਕਸਰ ਪੁੱਛੇ ਜਾਂਦੇ ਸਵਾਲ

### Which type of document can I embed using that plugin?

Microsoft Word, Excel and PowerPoint documents, plus PDF and HTML files.

### What should be the file extension to work perfectly with that plugin?

‘.doc’, ‘.docx’, ‘.xls’, ‘.xlsx’, ‘.ppt’, ‘.pptx’, ‘.pdf’ and ‘.html’

### Which viewer engine should I choose?

Use **Microsoft Online Viewer** for Word, Excel and PowerPoint — it keeps the original
fonts, tables and slide layouts. Use **Google Doc Viewer** for PDFs and mixed libraries.
The pro-only **Custom PDF Viewer** is for PDFs you do not want sent to any third-
party service; it renders on your own server with PDF.js.

### Do I need an API key?

Not for the free version — the Media Library, Google Doc Viewer and Microsoft Online
Viewer all work out of the box. API keys are only needed for the pro cloud sources(
Dropbox App Key for Dropbox, and a Google API key, Client ID and Project Number 
for Google Drive). You enter them once under _Office Viewer › Cloud API Settings_.

### Can I stop visitors downloading or copying the document?

Yes, in the pro version. Turn on **Protect Content** to disable right-click and 
the Ctrl/Cmd + C, A, S and P shortcuts, **Disable Pop-out** to stop the file opening
in a new tab, **Disable Full Screen** to remove the expand control, and hide the
download and full-screen buttons inside the Microsoft viewer toolbar.

### I Would like to support Your Project what is the best way to support?

Thanks for your interest. You can donate any amount by visiting [Here](https://gum.co/wpdonate)

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

Please report security bugs found in the source code of the Document Viewer for 
Office plugin through the [Patchstack Vulnerability Disclosure Program](https://patchstack.com/database/vdp/9e5fb774-c5c5-4253-bec9-fd5a4210d09b).
The Patchstack team will assist you with verification, CVE assignment, and notify
the developers of this plugin.

## ਸਮੀਖਿਆਵਾਂ

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

### 󠀁[The full version uses subscription charges](https://wordpress.org/support/topic/the-full-version-uses-subscription-charges/)󠁿

 [Polaris](https://profiles.wordpress.org/namrur/) 9 ਮਾਰਚ 2026 1 reply

Beware, this pluging uses a very common marketing methode for WordPress plugins.
The paiid version loses all the Premium feature at the moment you are not having
an active subscription. I.e, you are not just stopped from receiving updates, you
just thrown back to the basic version. Additionally, there are many non constant
display issues related to scrolling the document inside the infrare, tool bar changes
it’s look spontaneously, and there is no document preview ahown on mobile, but just
a button to open the file in new window.

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

### 󠀁[Impressively Stable](https://wordpress.org/support/topic/impressively-stable/)󠁿

 [aircess](https://profiles.wordpress.org/aircess/) 4 ਅਪ੍ਰੈਲ 2023

Nice wp plugin ever. I’ve use it for 4 years.

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

### 󠀁[Does the job well.](https://wordpress.org/support/topic/does-the-job-well-131/)󠁿

 [muhammadarooj](https://profiles.wordpress.org/muhammadarooj/) 24 ਨਵੰਬਰ 2022

This plugin works fine and s

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

### 󠀁[Exactly What I Need](https://wordpress.org/support/topic/exactly-what-i-need-161/)󠁿

 [jfortune](https://profiles.wordpress.org/jfortune/) 9 ਅਕਤੂਬਰ 2022

I am a theatre director and I use my website to communicate with my performers and
technical crews. I wanted to SHOW them documents in situ as well as enable them 
to easily download them and, after looking at other solutions, this plugin is PERFECT
for this. I am delighted with it and cannot recommend it highly enough.

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

### 󠀁[NIce Plugin](https://wordpress.org/support/topic/nice-plugin-4720/)󠁿

 [meshcreation](https://profiles.wordpress.org/meshcreation/) 5 ਸਤੰਬਰ 2022

Nice plugin, does the job well, recommended

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

### 󠀁[Does What I Need](https://wordpress.org/support/topic/does-what-i-need-85/)󠁿

 [theinfamousj](https://profiles.wordpress.org/theinfamousj/) 26 ਅਗਸਤ 2022

I needed to be able to embed externally hosted PDF documents into my wordpress posts
and pages while preserving the embedded clickable links in those documents. This
plugin does what I need, including offering viewers the ability to download the 
document. five stars

 [ Read all 52 reviews ](https://wordpress.org/support/plugin/embed-office-viewer/reviews/)

## ਯੋਗਦਾਨੀ ਤੇ ਵਿਕਾਸਕਾਰ

“Document Viewer – let visitors view files right in the browser” is open source 
software. The following people have contributed to this plugin.

ਯੋਗਦਾਨੀ

 *   [ bPlugins ](https://profiles.wordpress.org/bplugins/)
 *   [ shehabulislam ](https://profiles.wordpress.org/shehabulislam/)
 *   [ Tanin Rahman ](https://profiles.wordpress.org/taninrahman/)
 *   [ Freemius ](https://profiles.wordpress.org/freemius/)

[“Document Viewer – let visitors view files right in the browser” ਦਾ ਆਪਣੀ ਭਾਸ਼ਾ ਵਿੱਚ ਅਨੁਵਾਦ ਕਰੋ।](https://translate.wordpress.org/projects/wp-plugins/embed-office-viewer)

### ਵਿਕਾਸ ਕਾਰਜ ਵਿੱਚ ਰੁਚੀ ਰੱਖਦੇ ਹੋ?

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

## ਤਬਦੀਲੀ-ਚਿੱਠਾ

#### 2.4.2 – 11 August, 2026

 * Security: Updated Freemius SDK dependency to the latest version to patch identified
   vulnerabilities and ensure robust plugin security.

#### 2.4.1 – 15 June, 2026

 * Update: Redesigned and integrated the new standardized help & demos admin dashboard.

#### 2.4.0 – 3 June, 2026

 * New: Added 4 dedicated, modular settings panels (DocumentSource, ViewerEngine,
   DisplayDimensions, SecurityRestrictions) to group Gutenberg settings.
 * New: Added custom SVG icons inside the titles of the block settings panels.
 * Update: Redesigned Gutenberg block settings field titles to use friendly, concise
   terms for non-technical users.
 * Update: Consolidated admin assets enqueuing into a single class loader.
 * Update: Standardized core classes under `includes/core/` and helper files under
   lowercase `includes/helper/` to ensure namespace consistency.
 * Improvement: Integrated Composer autoloading to boot and resolve PHP dependencies
   dynamically.
 * Improvement: Unified the legacy shortcode rendering pipeline to run through the
   Gutenberg block rendering engine via the native `render_block()` API.
 * Improvement: Replaced the block settings TabPanel with separate, sequential settings
   panels.
 * Improvement: Applied a premium aesthetic theme color (#f1fdfe) for settings panel
   backgrounds and matching blue (#226df5) for panel header icons.
 * Improvement: Added detailed file format descriptions to simplify the document
   selector experience.
 * Improvement: Added a fixed height and smooth fade-in transition for the Upload
   Documents editor UI to prevent layout jumping on tab change.
 * Improvement: Reorganized metabox fields into two clean tabbed sections: “Document
   Settings” and “Security & Restrictions”.
 * Fix: Resolved fatal error during plugins_loaded hook by replacing query loops
   with safe get_posts() in ImportMeta class.
 * Fix: Resolved cross-origin iframe console errors in block editor under content
   protection mode.
 * Fix: Resolved pop-out overlay alignment and responsiveness by using CSS container
   queries.
 * Fix: Resolved “Protect Content” text selection and keyboard shortcuts bypasses(
   Ctrl/Cmd + C, A, S, P).
 * Fix: Resolved “Disable Full Screen” and pop-out overlay styles targeting mismatches.
 * Fix: Resolved missing i18n translation wrappers on “Protect Content” toggle labels.

#### 2.3.3 – 8 November, 2025

 * Updated Block – Editor upload options

#### 2.3.2 – 10 October, 2025

 * Add Modern Dashboard and improved.

#### 2.3.1 – 12 July, 2025

 * Fixed issues

#### 2.3.0 – 10 May, 2025

 * Fixed textdomain issue & add powerfull Gutenberg block

#### 2.2.10 – 29 Jan, 2025

 * Update: WordPress SDK

#### 2.2.9 – 04/07/2024

 * Update: WordPress SDK

#### 2.2.7

 * Update Freemius WordPress SDK

#### 2.2.5

 * Update Freemius WordPress SDK

#### 2.2.4

 * Fixed Height issue

#### 2.2.3

 * Fixed Security issue
 * Imporved Performance

#### 2.0.9

 * PDF viewer support
 * Improved performance

#### 1.1

 * Added doc management screen
 * Improved performance.
 * Gutenberg block support

#### 1.0

 * Initial Release

## ਮੈਟਾ

 *  Version **2.4.2**
 *  Last updated **4 ਦਿਨ ਪਹਿਲਾਂ**
 *  Active installations **2,000+**
 *  WordPress version ** 6.5 ਜਾਂ ਇਸ ਤੋਂ ਉੱਚਾ **
 *  Tested up to **7.1**
 *  PHP version ** 7.4 ਜਾਂ ਇਸ ਤੋਂ ਉੱਚਾ **
 *  Language
 * [English (US)](https://wordpress.org/plugins/embed-office-viewer/)
 * Tags
 * [document viewer](https://pan.wordpress.org/plugins/tags/document-viewer/)[embed document](https://pan.wordpress.org/plugins/tags/embed-document/)
   [pdf embedder](https://pan.wordpress.org/plugins/tags/pdf-embedder/)
 *  [Advanced View](https://pan.wordpress.org/plugins/embed-office-viewer/advanced/)

## ਦਰਜਾਬੰਦੀ

 4.7 out of 5 stars.

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

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

[See all reviews](https://wordpress.org/support/plugin/embed-office-viewer/reviews/)

## ਯੋਗਦਾਨੀ

 *   [ bPlugins ](https://profiles.wordpress.org/bplugins/)
 *   [ shehabulislam ](https://profiles.wordpress.org/shehabulislam/)
 *   [ Tanin Rahman ](https://profiles.wordpress.org/taninrahman/)
 *   [ Freemius ](https://profiles.wordpress.org/freemius/)

## ਸਹਿਯੋਗ

ਕੁਝ ਕਹਿਣਾ ਹੈ? ਮਦਦ ਚਾਹੀਦੀ ਹੈ?

 [ਸਹਿਯੋਗ ਫੋਰਮ ਦੇਖੋ](https://wordpress.org/support/plugin/embed-office-viewer/)

## ਦਾਨ ਦਿਉ

Would you like to support the advancement of this plugin?

 [ ਇਸ ਪਲੱਗਇਨ ਨੂੰ ਦਾਨ ਦਿਉ ](https://www.buymeacoffee.com/abuhayat)