WordPress plugin
Document Viewer Pro
Document Viewer Pro lets users view supported documents inside WordPress posts and pages instead of requiring an immediate download. It works with Word documents, Excel spreadsheets, PowerPoint presentations, PDF files, and HTML files. Visitors can read the embedded file in the browser without having Microsoft Office installed or using a browser extension.
Show documents directly on your WordPress site
Document Viewer Pro lets users view supported documents inside WordPress posts and pages instead of requiring an immediate download. It works with Word documents, Excel spreadsheets, PowerPoint presentations, PDF files, and HTML files. Visitors can read the embedded file in the browser without having Microsoft Office installed or using a browser extension.
The Pro edition extends the document viewer with cloud sources, a self-hosted PDF viewer, and controls for restricting document actions. It works with the plugin’s Gutenberg block and shortcode process, so you can place documents in posts, pages, widgets, page builders, or theme templates.
Choose where documents come from
Pro users can select a file from Google Drive with the native Drive picker, from Dropbox with the Dropbox chooser, or from OneDrive. Cloud API options let you shop the Dropbox App Key and the Google API key, Client ID, and Project Number once for the whole website.
For files in the WordPress Media Library, the viewer supports Word, Excel, PowerPoint, PDF, and HTML formats. The document source and viewer options are organized in grouped block settings panels, helping you configure the file while building the page.
Use the self-hosted PDF viewer
The Custom PDF Viewer is built on PDF.js and renders PDFs on your own server rather than sending them to a third-party service. Its toolbar includes zoom, page navigation, thumbnails, and search inside the document. This gives PDF pages a dedicated viewing interface while retaining control over the embedded presentation.
Configure viewer presentation and restrictions
Document Viewer Pro provides custom width and height settings in pixels or percentages, with responsive behavior on desktop, tablet, and mobile. You can show or hide the file name at the top of the viewer and show or hide a download button at the top of the viewer.
The content protection options can disable right-click and block the Ctrl/Cmd+C, A, S, and P shortcuts. You can also disable the document pop-out behavior, remove the full-screen expand control, hide the download button inside the Microsoft viewer toolbar, and hide its full-screen button.
Build and embed a document
Create a document under Office Viewer > Add New, select the source, set the viewer and dimensions, and configure the available restrictions. The native Gutenberg block supports wide and full-width alignment. Alternatively, use the shortcode generator, then place the generated shortcode in the Classic Editor, a widget, a page builder, or a theme template with do_shortcode().
Installation and setup
Install and activate Document Viewer Pro in WordPress. Configure the required cloud API settings if you plan to use Google Drive or Dropbox, then make a document and select its source. Add the block or shortcode to the desired content area and adjust the display, toolbar, and restriction settings before publishing.