{"id":112696,"date":"2019-11-13T11:11:38","date_gmt":"2019-11-13T11:11:38","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/office-viewer\/"},"modified":"2026-06-03T09:42:28","modified_gmt":"2026-06-03T09:42:28","slug":"embed-office-viewer","status":"publish","type":"plugin","link":"https:\/\/cn.wordpress.org\/plugins\/embed-office-viewer\/","author":22028296,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"2.4.0","stable_tag":"2.4.0","tested":"7.0","requires":"6.2","requires_php":"7.4","requires_plugins":null,"header_name":"Document Viewer for Office","header_author":"bPlugins","header_description":"You can Embed Microsoft Word, Excel And Powerpodint File in wordpress Using Office Viewer Plugin.","assets_banners_color":"d4d3d8","last_updated":"2026-06-03 09:42:28","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.buymeacoffee.com\/abuhayat","header_plugin_uri":"http:\/\/bplugins.com","header_author_uri":"http:\/\/bPlugins.com","rating":4.7,"author_block_rating":4.2222222222222,"active_installs":2000,"downloads":52563,"num_ratings":52,"support_threads":0,"support_threads_resolved":0,"author_block_count":65,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"abuhayat","date":"2019-12-06 06:29:45"},"1.0.1":{"tag":"1.0.1","author":"abuhayat","date":"2020-10-31 20:17:45"},"1.1":{"tag":"1.1","author":"shehabulislam","date":"2024-04-08 11:09:32"},"2.0.1":{"tag":"2.0.1","author":"shehabulislam","date":"2024-04-08 11:09:32"},"2.2.10":{"tag":"2.2.10","author":"taninrahman","date":"2025-05-10 04:45:49"},"2.2.4":{"tag":"2.2.4","author":"shehabulislam","date":"2024-04-08 11:09:32"},"2.2.6":{"tag":"2.2.6","author":"shehabulislam","date":"2024-04-08 11:09:32"},"2.2.8":{"tag":"2.2.8","author":"shehabulislam","date":"2024-07-04 05:39:28"},"2.2.9":{"tag":"2.2.9","author":"shehabulislam","date":"2025-01-12 14:52:14"},"2.3.0":{"tag":"2.3.0","author":"taninrahman","date":"2025-05-18 06:53:31"},"2.3.1":{"tag":"2.3.1","author":"taninrahman","date":"2025-09-21 10:24:35"},"2.3.2":{"tag":"2.3.2","author":"taninrahman","date":"2025-10-30 04:42:34"},"2.3.3":{"tag":"2.3.3","author":"taninrahman","date":"2026-05-13 03:45:25"},"2.4.0":{"tag":"2.4.0","author":"taninrahman","date":"2026-06-03 09:42:28"}},"upgrade_notice":[],"ratings":{"1":4,"2":0,"3":0,"4":1,"5":47},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2580463,"resolution":"128x128","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":3398675,"resolution":"772x250","location":"assets","locale":"","width":1444,"height":500}},"assets_blueprints":{},"all_blocks":{"eov\/embed-office-viewer":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"eov\/embed-office-viewer","version":"2.4.0","title":"Document Viewer","category":"widgets","description":"You can Embed Microsoft Word, Excel And Powerpodint File in wordpress Using 'Document Viewer for Office' Plugin.","keywords":["embed document block","block","pdf viewer","display document","document","office file","any document viewer","Show document"],"textdomain":"eov","attributes":{"align":{"type":"string","default":""},"officeViewer":{"type":"object","default":{"docSource":"library","viewer":"google","dropboxURL":"","googleDriveURL":"","officeFile":"","height":"500px","width":"100%","disablePopout":false,"showFileNameOnTop":false,"showDownloadBtnOnTop":false,"disableRightClick":false,"disableFullScreen":false,"isRemoveDownloadBtn":false,"isRemoveFullScreen":false}}},"supports":{"align":["wide","full"],"html":false,"interactivity":true},"example":{"attributes":{}},"editorScript":["file:.\/index.js","wp-api"],"editorStyle":"file:.\/index.css","style":"file:.\/view.css","render":"file:.\/render.php","viewScript":["file:.\/view.js","react","react-dom"]}},"tagged_versions":["1.0","1.0.1","1.1","2.0.1","2.2.10","2.2.4","2.2.6","2.2.8","2.2.9","2.3.0","2.3.1","2.3.2","2.3.3","2.4.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3399587,"resolution":"1","location":"assets","locale":"","width":1880,"height":1410},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3399587,"resolution":"2","location":"assets","locale":"","width":1880,"height":1410},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3399587,"resolution":"3","location":"assets","locale":"","width":1880,"height":1410},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3399587,"resolution":"4","location":"assets","locale":"","width":1880,"height":1410},"screenshot-5.png":{"filename":"screenshot-5.png","revision":3399587,"resolution":"5","location":"assets","locale":"","width":1880,"height":1410}},"screenshots":{"1":"Sidebar menu","2":"Add new Doc \/ Configure Viewer","3":"ShortCode","4":"Output \/ Frontend preview","5":"Frontend preview of a excel File"}},"plugin_section":[],"plugin_tags":[2184,265608,125982,161841],"plugin_category":[50],"plugin_contributors":[226291,78154,192624,237436],"plugin_business_model":[],"class_list":["post-112696","plugin","type-plugin","status-publish","hentry","plugin_tags-document-viewer","plugin_tags-easy-document-embedder","plugin_tags-embed-document","plugin_tags-pdf-embedder","plugin_category-media","plugin_contributors-bplugins","plugin_contributors-freemius","plugin_contributors-shehabulislam","plugin_contributors-taninrahman","plugin_committers-abuhayat","plugin_committers-bplugins","plugin_committers-sakiladnan","plugin_committers-shehabulislam","plugin_committers-taninrahman","plugin_support_reps-shehabulislam"],"banners":{"banner":"https:\/\/ps.w.org\/embed-office-viewer\/assets\/banner-772x250.png?rev=3398675","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/embed-office-viewer\/assets\/icon-128x128.png?rev=2580463","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/embed-office-viewer\/assets\/screenshot-1.png?rev=3399587","caption":"Sidebar menu"},{"src":"https:\/\/ps.w.org\/embed-office-viewer\/assets\/screenshot-2.png?rev=3399587","caption":"Add new Doc \/ Configure Viewer"},{"src":"https:\/\/ps.w.org\/embed-office-viewer\/assets\/screenshot-3.png?rev=3399587","caption":"ShortCode"},{"src":"https:\/\/ps.w.org\/embed-office-viewer\/assets\/screenshot-4.png?rev=3399587","caption":"Output \/ Frontend preview"},{"src":"https:\/\/ps.w.org\/embed-office-viewer\/assets\/screenshot-5.png?rev=3399587","caption":"Frontend preview of a excel File"}],"raw_content":"<!--section=description-->\n<p>If you have Office documents on your website or blog that you want your readers to view even if they don\u2019t have Office installed? Would you rather view a document before downloading it? To give your audience a better experience, try the Office Web Viewer.<\/p>\n\n<p>This WordPress plugin offers seamless integration of document viewing using two popular viewer types: Google Doc Viewer and Microsoft Online Viewer. Easily customize the layout of your documents by adjusting width and height settings to match your desired design.<\/p>\n\n<p>Unlock additional features with the pro version, including the ability to select documents directly from Google Drive, OneDrive, or Dropbox. View documents using the Google Doc Viewer for enhanced compatibility and functionality.<\/p>\n\n<p>Control user experience by enabling or disabling pop-out options, displaying or hiding the file name at the top, and toggling the download button for easy access.<\/p>\n\n<p>Enhance document security by enabling or disabling right-click functionality as needed. With these advanced features, managing and presenting documents on your WordPress site becomes more efficient and user-friendly.<\/p>\n\n<p><strong><a href=\"https:\/\/bplugins.com\/products\/document-viewer\/#demos\" title=\"Demo\">See Live Demo<\/a><\/strong> \n<strong><a href=\"https:\/\/bplugins.com\/products\/document-viewer\/pricing\" title=\"Buy Pro version\">Buy The Pro<\/a><\/strong><\/p>\n\n<h4>Some Benefits<\/h4>\n\n<ul>\n<li>Works perfectly in computers, tablets, and mobile phones.<\/li>\n<li>You don\u2019t need to convert Office files for the web (e.g., PDF, HTML).<\/li>\n<li>Anyone can view Office files from your website or blog, even if they don\u2019t have Office.<\/li>\n<\/ul>\n\n<h3>Document Viewer Free Features:<\/h3>\n\n<ul>\n<li>2 viewer types such as Google Doc Viewer or Microsoft Online Viewer<\/li>\n<li>Add width and height to customize the layout of the Document.<\/li>\n<\/ul>\n\n<h3>Document Viewer Pro Features<\/h3>\n\n<ul>\n<li>Choose Document From Google Drive<\/li>\n<li>Choose Document From OneDrive<\/li>\n<li>Choose Document From Dropbox<\/li>\n<li>View Document by Google Doc Viewer<\/li>\n<li>Disable\/Enable Pop-out<\/li>\n<li>Show\/Hide File Name in Top<\/li>\n<li>Show\/Hide Download Button on Top<\/li>\n<li>Disable\/Enable Right Click<\/li>\n<\/ul>\n\n<h3>User Feedback<\/h3>\n\n<h4>\u2b50\u2b50\u2b50\u2b50\u2b50 <a href=\"https:\/\/wordpress.org\/support\/topic\/impressively-stable\/\">Impressively Stable<\/a><\/h4>\n\n<p>\u275b\u275b<strong><em>Nice wp plugin ever. I\u2019ve use it for 4 years.<\/em><\/strong>\u275c\u275c<\/p>\n\n<p><strong><em>-<a href=\"https:\/\/wordpress.org\/support\/users\/aircess\/\">aircess<\/a><\/em><\/strong><\/p>\n\n<h4>\u2b50\u2b50\u2b50\u2b50\u2b50 <a href=\"https:\/\/wordpress.org\/support\/topic\/does-the-job-well-131\/\">Does the job well.<\/a><\/h4>\n\n<p>\u275b\u275b<strong><em>This plugin works fine<\/em><\/strong>\u275c\u275c<\/p>\n\n<p><strong><em>-<a href=\"https:\/\/wordpress.org\/support\/users\/muhammadarooj\/\">muhammadarooj<\/a><\/em><\/strong><\/p>\n\n<h4>\u2b50\u2b50\u2b50\u2b50\u2b50 <a href=\"https:\/\/wordpress.org\/support\/topic\/exactly-what-i-need-161\/\">Exactly What I Need<\/a><\/h4>\n\n<p>\u275b\u275b***I am a theatre director and I use my website to communicate with my performers and technical crews.<\/p>\n\n<p>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.<\/p>\n\n<p>I am delighted with it and cannot recommend it highly enough.***\u275c\u275c<\/p>\n\n<p><strong><em>-<a href=\"https:\/\/wordpress.org\/support\/users\/jfortune\/\">jfortune<\/a><\/em><\/strong><\/p>\n\n<h4>- Did you like this plugin? Dislike it? Have a feature request? <a href=\"mailto:support@bplugins.com\" title=\"Send feedback\">Please share your feedback with us<\/a><\/h4>\n\n<h4>How It Works<\/h4>\n\n<ul>\n<li><p>Your Document will be embed in your site, blog via a iframe which is service of Office Web Viewer<\/p><\/li>\n<li><p>This plugin use Office Web Viewer service of Microsoft <a href=\"http:\/\/officewebviewer.com\" title=\"Read More\">Read More About Office Web viewer<\/a><\/p><\/li>\n<li>Terms Of Service : <a href=\"https:\/\/go.microsoft.com\/fwlink\/?LinkID=206977\" title=\"Terms\">Microsoft's Terms of service <\/a> <\/li>\n<li>Privacy Policy:  <a href=\"https:\/\/go.microsoft.com\/fwlink\/?LinkId=521839\" title=\"Privacy\">Microsoft's Privacy Policy <\/a><\/li>\n<\/ul>\n\n<h3>Source Code<\/h3>\n\n<p>You can find the source code, report bugs, and contribute to the development of this plugin on our GitHub repository:\n<a href=\"https:\/\/github.com\/bPlugins\/embed-office-viewer-wp\"><strong>Embed Office Viewer on GitHub<\/strong><\/a><\/p>\n\n<h3>Third-Party Libraries<\/h3>\n\n<p>This plugin bundles the following third-party JavaScript\/PHP libraries.<\/p>\n\n<h4>Codestar Framework<\/h4>\n\n<ul>\n<li><strong>Source:<\/strong> <a href=\"http:\/\/codestarframework.com\/\">http:\/\/codestarframework.com\/<\/a><\/li>\n<li><strong>GitHub:<\/strong> <a href=\"https:\/\/github.com\/Codestar\/codestar-framework\">https:\/\/github.com\/Codestar\/codestar-framework<\/a><\/li>\n<li><strong>License:<\/strong> GPLv2 or later \u2013 <a href=\"https:\/\/github.com\/Codestar\/codestar-framework\/blob\/master\/LICENSE.md\">https:\/\/github.com\/Codestar\/codestar-framework\/blob\/master\/LICENSE.md<\/a><\/li>\n<li><strong>Purpose:<\/strong> Provides the options framework for the plugin's settings and shortcode generator.<\/li>\n<\/ul>\n\n<h4>Freemius SDK<\/h4>\n\n<ul>\n<li><strong>Source:<\/strong> <a href=\"https:\/\/freemius.com\/\">https:\/\/freemius.com\/<\/a><\/li>\n<li><strong>GitHub:<\/strong> <a href=\"https:\/\/github.com\/Freemius\/wordpress-sdk\">https:\/\/github.com\/Freemius\/wordpress-sdk<\/a><\/li>\n<li><strong>License:<\/strong> GPLv3 \u2013 <a href=\"https:\/\/github.com\/Freemius\/wordpress-sdk\/blob\/master\/LICENSE.txt\">https:\/\/github.com\/Freemius\/wordpress-sdk\/blob\/master\/LICENSE.txt<\/a><\/li>\n<li><strong>Purpose:<\/strong> Provides opt-in usage tracking and analytics to help improve the plugin.<\/li>\n<\/ul>\n\n<h4>bpl-tools<\/h4>\n\n<ul>\n<li>Source \/ GitHub: https:\/\/github.com\/bPlugins\/bpl-tools<\/li>\n<li>License: GPL-2.0-or-later \u2013 https:\/\/www.gnu.org\/licenses\/gpl-2.0.html<\/li>\n<li>Purpose: Shared utility library providing admin dashboard components and common Gutenberg editor controls.<\/li>\n<li>External Services: The library may connect to bPlugins, WordPress.org, and Freemius services for product data and checkout functionality. See full details: https:\/\/github.com\/bPlugins\/bpl-tools#external-requests--why-they-are-made<\/li>\n<\/ul>\n\n<!--section=installation-->\n<p>This section describes how to install the plugin and get it working.<\/p>\n\n<p>e.g.<\/p>\n\n<ol>\n<li>Upload <code>plugin-directory<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Use shortcode in page, post or in widgets.<\/li>\n<li>` in your templates<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"which%20type%20of%20document%20can%20i%20embed%20using%20that%20plugin%3F\"><h3>Which type of document can I embed using that plugin?<\/h3><\/dt>\n<dd><p>Microsoft Word, Excel, And Powerpoint Document<\/p><\/dd>\n<dt id=\"what%20should%20be%20the%20file%20extension%20to%20work%20perfectly%20with%20that%20plugin%3F\"><h3>What should be the file extension to work perfectly with that plugin?<\/h3><\/dt>\n<dd><p>'.ppt' '.pptx' '.doc', '.docx', '.xls', '.xlsx'<\/p><\/dd>\n<dt id=\"i%20would%20like%20to%20support%20your%20project%20what%20is%20the%20best%20way%20to%20support%3F\"><h3>I Would like to support Your Project what is the best way to support?<\/h3><\/dt>\n<dd><p>Thanks for your interest. You can donate any amount by visiting  <a href=\"https:\/\/gum.co\/wpdonate\" title=\"Donate Now\">Here<\/a><\/p><\/dd>\n<dt id=\"where%20do%20i%20report%20security%20bugs%20found%20in%20this%20plugin%3F\"><h3>Where do I report security bugs found in this plugin?<\/h3><\/dt>\n<dd><p>Please report security bugs found in the source code of the Document Viewer for Office plugin through the <a href=\"https:\/\/patchstack.com\/database\/vdp\/9e5fb774-c5c5-4253-bec9-fd5a4210d09b\">Patchstack Vulnerability Disclosure Program<\/a>. The Patchstack team will assist you with verification, CVE assignment, and notify the developers of this plugin.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.4.0 - 3 June, 2026<\/h4>\n\n<ul>\n<li>New: Added 4 dedicated, modular settings panels (DocumentSource, ViewerEngine, DisplayDimensions, SecurityRestrictions) to group Gutenberg settings.<\/li>\n<li>New: Added custom SVG icons inside the titles of the block settings panels.<\/li>\n<li>Update: Redesigned Gutenberg block settings field titles to use friendly, concise terms for non-technical users.<\/li>\n<li>Update: Consolidated admin assets enqueuing into a single class loader.<\/li>\n<li>Update: Standardized core classes under <code>includes\/core\/<\/code> and helper files under lowercase <code>includes\/helper\/<\/code> to ensure namespace consistency.<\/li>\n<li>Improvement: Integrated Composer autoloading to boot and resolve PHP dependencies dynamically.<\/li>\n<li>Improvement: Unified the legacy shortcode rendering pipeline to run through the Gutenberg block rendering engine via the native <code>render_block()<\/code> API.<\/li>\n<li>Improvement: Replaced the block settings TabPanel with separate, sequential settings panels.<\/li>\n<li>Improvement: Applied a premium aesthetic theme color (#f1fdfe) for settings panel backgrounds and matching blue (#226df5) for panel header icons.<\/li>\n<li>Improvement: Added detailed file format descriptions to simplify the document selector experience.<\/li>\n<li>Improvement: Added a fixed height and smooth fade-in transition for the Upload Documents editor UI to prevent layout jumping on tab change.<\/li>\n<li>Improvement: Reorganized metabox fields into two clean tabbed sections: \"Document Settings\" and \"Security &amp; Restrictions\".<\/li>\n<li>Fix: Resolved fatal error during plugins_loaded hook by replacing query loops with safe get_posts() in ImportMeta class.<\/li>\n<li>Fix: Resolved cross-origin iframe console errors in block editor under content protection mode.<\/li>\n<li>Fix: Resolved pop-out overlay alignment and responsiveness by using CSS container queries.<\/li>\n<li>Fix: Resolved \"Protect Content\" text selection and keyboard shortcuts bypasses (Ctrl\/Cmd + C, A, S, P).<\/li>\n<li>Fix: Resolved \"Disable Full Screen\" and pop-out overlay styles targeting mismatches.<\/li>\n<li>Fix: Resolved missing i18n translation wrappers on \"Protect Content\" toggle labels.<\/li>\n<\/ul>\n\n<h4>2.3.3 - 8 November, 2025<\/h4>\n\n<ul>\n<li>Updated Block - Editor upload options <\/li>\n<\/ul>\n\n<h4>2.3.2 - 10 October, 2025<\/h4>\n\n<ul>\n<li>Add Modern Dashboard and improved. <\/li>\n<\/ul>\n\n<h4>2.3.1 - 12 July, 2025<\/h4>\n\n<ul>\n<li>Fixed issues<\/li>\n<\/ul>\n\n<h4>2.3.0 - 10 May, 2025<\/h4>\n\n<ul>\n<li>Fixed textdomain issue &amp; add powerfull Gutenberg block<\/li>\n<\/ul>\n\n<h4>2.2.10 - 29 Jan, 2025<\/h4>\n\n<ul>\n<li>Update: WordPress SDK<\/li>\n<\/ul>\n\n<h4>2.2.9 - 04\/07\/2024<\/h4>\n\n<ul>\n<li>Update: WordPress SDK<\/li>\n<\/ul>\n\n<h4>2.2.7<\/h4>\n\n<ul>\n<li>Update Freemius WordPress SDK<\/li>\n<\/ul>\n\n<h4>2.2.5<\/h4>\n\n<ul>\n<li>Update Freemius WordPress SDK<\/li>\n<\/ul>\n\n<h4>2.2.4<\/h4>\n\n<ul>\n<li>Fixed Height issue<\/li>\n<\/ul>\n\n<h4>2.2.3<\/h4>\n\n<ul>\n<li>Fixed Security issue<\/li>\n<li>Imporved Performance<\/li>\n<\/ul>\n\n<h4>2.0.9<\/h4>\n\n<ul>\n<li>PDF viewer support<\/li>\n<li>Improved performance<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Added doc management screen<\/li>\n<li>Improved performance.<\/li>\n<li>Gutenberg block support<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial Release<\/li>\n<\/ul>","raw_excerpt":"With the Document Viewer for Office plugin, you can view Microsoft Word, Excel, PowerPoint, and more files in WordPress using shortcode","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/112696","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=112696"}],"author":[{"embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/bplugins"}],"wp:attachment":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=112696"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=112696"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=112696"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=112696"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=112696"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=112696"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}