Embed Word, Excel, PowerPoint, PDF, and HTML files in WordPress. Choose documents from Google Drive, Dropbox, OneDrive, or the Media Library, then configure the viewer, display, and document-action settings.

Embed documents in WordPress

Document Viewer Pro lets visitors view Word documents, Excel spreadsheets, PowerPoint presentations, PDFs, and HTML files in WordPress. Files from the Media Library can be placed in posts, pages, widgets, page builders, and theme templates using the Gutenberg block or shortcode. Visitors can read supported files in a browser without Microsoft Office installed or a browser plugin.

Choose a source and viewer

Use supported files from the WordPress Media Library, or select a file from Google Drive with its native picker, Dropbox with the Dropbox chooser, or OneDrive. Site-wide settings store the Dropbox App Key and the Google API key, Client ID, and Project Number for reuse.

The Microsoft Office Web Viewer and Google Docs Viewer render files through external services that fetch the document from its public URL. Files behind a login are not accessible to these viewers. For PDFs, the Custom PDF Viewer provides a local rendering option.

Render PDFs with PDF.js

The Custom PDF Viewer uses PDF.js to render PDFs on your server. Its toolbar includes zoom, page navigation, thumbnails, and search within the document.

Set display and document controls

Set the viewer width and height in pixels or percentages, with responsive behavior on desktop, tablet, and mobile. Show or hide the filename above the viewer and the download button at the top.

Available controls can disable right-click and text selection, block the Ctrl/Cmd+C, A, S, and P shortcuts, and disable pop-outs. You can also remove the full-screen expand control, hide the download button in the Microsoft viewer toolbar, or hide that toolbar’s full-screen button. These controls deter common browser actions but cannot guarantee that displayed content cannot be copied.

Add a document

In WordPress, go to Office Viewer > Add New, choose a source, select the viewer and dimensions, then configure the available controls. Add the document with the Gutenberg block, which supports wide and full-width alignment, or generate a shortcode for the Classic Editor, a widget, a page builder, or a theme template using do_shortcode().

Install and set up

Install and activate Document Viewer Pro in WordPress. If you plan to use Google Drive or Dropbox, configure the required cloud API settings. Create a document, choose its source, add the block or shortcode to the desired content area, and adjust the display and viewer controls before publishing.

All plugins

Related plugins

Academy LMS Pro

Review Academy LMS Pro course, assessment, and integration features, and check the Academy LMS download status before planning…