Linux 软件免费装
Banner图

Document Viewer - let visitors view files right in the browser

开发者 abuhayat
shehabulislam
freemius
bplugins
taninrahman
更新时间 2026年10月24日 11:33
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.1.1
版权: GPLv3 or later
版权网址: 版权信息

标签

document viewer embed document embed word office viewer embed powerpoint

下载

2.2.6 2.3.2 2.4.0 2.4.1 1.0 1.1 2.0.1 2.2.4 2.2.8 2.3.0 2.3.3 2.2.9 1.0.1 2.2.10 2.3.1 2.4.2

详情介绍:

Embed Word, Excel and PowerPoint files that look exactly like the original. Document Viewer lets you embed a Word document, Excel spreadsheet, PowerPoint presentation or PDF file on any WordPress page or post. Your visitors read it right in the browser. They do not download anything, they do not need Microsoft Office, and you do not convert anything. The difference is who renders the file. Many embed plugins push your .docx or .xlsx through a third-party converter, and complex layouts come out broken: tables collapse, fonts change, slides lose their layout. Document Viewer uses Microsoft's own Office Web Viewer, the same engine behind Office Online. A .docx looks like a .docx. An .xlsx keeps its columns. A .pptx keeps its slides. Live Demo | Pricing | Support Two viewer engines, both free Switch between them with a dropdown. No account and no API key needed for either. Supported file types Add files from your Media Library or paste a direct URL. Why people choose Document Viewer Who uses it, and for what Add a document in under a minute With the Gutenberg block
  1. Open any post or page in the Block Editor.
  2. Add the Document Viewer block.
  3. Upload a file or paste a URL, choose the viewer, set the size.
Block settings are grouped into four clear panels: Document Source, Viewer Engine, Display Dimensions and Security Restrictions. No hunting through one long sidebar. With the shortcode Use [office_doc] anywhere shortcodes run, including the Classic Editor, widgets, Elementor, Divi, Bricks, WPBakery, Beaver Builder and Oxygen. Generate the shortcode from the document's edit screen and paste it in. Free features Document Viewer Pro Need more control over how your files are shared? Pro adds: See the Pro features What users say ⭐⭐⭐⭐⭐ Exactly What I Need "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 ⭐⭐⭐⭐⭐ Impressively Stable "Nice wp plugin ever. I've use it for 4 years." - aircess ⭐⭐⭐⭐⭐ Does the job well. "This plugin works fine" - muhammadarooj Using Document Viewer on your site? A short review on WordPress.org helps other people find it. Want a feature or found a problem? Tell us here. Privacy in plain words Your document's public URL is sent to Microsoft or Google so they can render it. Files must be publicly reachable, and confidential files should not be embedded this way. The External Services section below has the full detail. Help translate this plugin Document Viewer runs on sites around the world. If you speak another language, you can help. No coding needed: https://translate.wordpress.org/projects/wp-plugins/embed-office-viewer/ New to translating? Start here: https://make.wordpress.org/polyglots/handbook/translating/first-steps/ Other plugins by bPlugins

安装:

From your dashboard
  1. Go to Plugins → Add New.
  2. Search for Document Viewer by bPlugins.
  3. Click Install Now, then Activate.
By upload
  1. Download the plugin zip from WordPress.org.
  2. Go to Plugins → Add New → Upload Plugin.
  3. Choose the zip, click Install Now, then Activate.
Adding your first document
  1. Go to Document Viewer → Add New in the admin menu.
  2. Upload a Word, Excel, PowerPoint or PDF file, or paste a direct URL.
  3. Choose the viewer engine and set the width and height.
  4. Copy the [office_doc] shortcode and paste it into any post or page. Or add the Document Viewer block in the Block Editor instead.

屏幕截图:

  • An Excel spreadsheet embedded in a post, with columns and formatting intact.
  • The Document Viewer block: upload a file or paste a URL, pick a viewer and set the size, all in the sidebar.
  • Block settings grouped into four panels: Document Source, Viewer Engine, Display Dimensions and Security Restrictions.
  • Copy the shortcode from the document screen and paste it into any post, page or page builder.

升级注意事项:

2.4.2 Security update. The bundled Freemius SDK has been updated to patch known vulnerabilities. All users are encouraged to update. 2.4.0 Rebuilt block settings, a unified rendering engine for the block and shortcode, and fixes for content protection bypasses. Your existing documents and shortcodes are unchanged.

常见问题:

How do I embed a Word document in WordPress?

Install Document Viewer, add the Document Viewer block (or the [office_doc] shortcode), upload your .doc or .docx file and choose the Microsoft Office Web Viewer. The document appears on the page with its original formatting.

How do I embed an Excel spreadsheet in WordPress?

The same way: upload your .xls or .xlsx file in the block or the document screen and choose the Microsoft viewer. Columns, cell formatting and charts stay as you saved them.

How do I embed a PowerPoint presentation in WordPress?

Upload your .ppt or .pptx file and choose the Microsoft viewer. Visitors can click through the slides on the page.

Can I embed a PDF?

Yes. For PDF files the Google Docs Viewer is usually the better choice.

What is the shortcode?

[office_doc]. Generate the exact shortcode for a document from its edit screen, then paste it into any post, page, widget or page builder that supports shortcodes.

Which file types can I embed?

Word (.doc, .docx), Excel (.xls, .xlsx), PowerPoint (.ppt, .pptx) and PDF. If you need images, code files, archives, 3D formats or a document library, use Document Embedder instead.

Is Document Viewer free?

Yes. Both viewer engines, the Gutenberg block, the shortcode and custom sizing are free. Pro adds cloud sources, a download button and display and protection controls.

Do I need to convert my files first?

No. Upload the .docx, .xlsx or .pptx you already have. There is no conversion to PDF or HTML.

Do my visitors need Microsoft Office installed?

No. The file is rendered in the browser. Visitors need nothing installed, on desktop or mobile.

Does it work on mobile?

Yes. The document opens in the mobile browser. Set the width and height to suit your layout.

Which viewer should I choose?

For Word, Excel and PowerPoint, use the Microsoft Office Web Viewer. It keeps the original formatting because it is Microsoft's own renderer. For PDF, the Google Docs Viewer is usually the better choice.

My document is not showing. What should I check?

Most often the file is not publicly reachable. Microsoft and Google fetch the file over the internet, so a file behind a login, on a password-protected site or on a local development site will not render. Very large files can also take a long time to load. If it still does not work, contact support.

Is my document sent to a third party?

Yes, and you should know exactly how. Both viewers work by passing your document's public URL to an external service, Microsoft's Office Web Viewer or Google Docs Viewer, which renders it in an iframe. See the External Services section below for the full detail. If your documents are confidential, this plugin is not the right choice; use a plugin that renders locally instead.

Does the document need to be publicly reachable?

Yes. Microsoft and Google fetch the file over the internet, so a file behind a login or on a local development site will not render.

Does it work with Elementor, Divi or another page builder?

Yes. Use the [office_doc] shortcode in any builder with a shortcode widget: Elementor, Divi, Bricks, WPBakery, Beaver Builder, Oxygen and others.

Does it work with the Classic Editor?

Yes. Paste the [office_doc] shortcode into the Classic Editor.

Can I show a download button?

The download button, along with filename display, pop-out control and content protection, is part of the Pro version.

Can I stop people copying the text?

Pro includes content protection. It disables right-click, text selection and the Ctrl/Cmd + C, A, S and P shortcuts. Treat it as a deterrent rather than real security: anything a browser can display can ultimately be copied.

Is there a file size limit?

There is no limit in the plugin itself, but very large files take longer for the external viewer to fetch and render. Files under about 20 MB are the most reliable.

What is the difference between Document Viewer and Document Embedder?

Document Viewer is small and focused on Office files and PDF, rendered by Microsoft or Google. Document Embedder supports 16+ file types, four viewers, a 3D FlipBook and a searchable document library.

Where do I report security bugs found in this plugin?

Please report security bugs found in the source code of the Document Viewer plugin through the Patchstack Vulnerability Disclosure Program. The Patchstack team will assist you with verification, CVE assignment, and notify the developers of this plugin.

更新日志:

2.4.2 - 11 August 2026 2.4.1 - 27 June 2026 2.4.0 - 3 June 2026 2.3.3 - 8 November 2025 2.3.2 - 10 October 2025 2.3.1 - 12 July 2025 2.3.0 - 10 May 2025 2.2.10 - 29 January 2025 2.2.9 - 4 July 2024 2.2.7 2.2.5 2.2.4 2.2.3 2.0.9 1.1