WordPress plugin
Document Viewer Pro
Document Viewer Pro embeds Word documents, Excel spreadsheets, PowerPoint presentations, PDFs, and HTML documents in WordPress posts and pages. Visitors can view supported files in their browser without Microsoft Office installed or a browser add-on. Add a document with the Gutenberg block or shortcode in posts, pages, widgets, page builders, or theme templates.
Place files in WordPress content
Document Viewer Pro embeds Word documents, Excel spreadsheets, PowerPoint presentations, PDFs, and HTML documents in WordPress posts and pages. Visitors can view supported files in their browser without Microsoft Office installed or a browser add-on. Add a document with the Gutenberg block or shortcode in posts, pages, widgets, page builders, or theme templates.
Choose a document source
Use supported files from the WordPress Media Library, or select files from Google Drive with its native picker, Dropbox with the Dropbox chooser, or OneDrive. Site-wide cloud options can store the Dropbox App Key and the Google API key, Client ID, and Project Number. Grouped block settings organize the document source and viewer alongside display dimensions and restrictions.
Render PDFs with PDF.js
The Custom PDF Viewer uses PDF.js to render PDFs on your own server. Its toolbar includes zoom, page navigation, thumbnails, and search inside the document. Microsoft and Google hosted viewers require a publicly reachable file because the selected service fetches it using the document’s public URL. Use the Custom PDF Viewer when you want PDF rendering on your server.
Set display settings and document controls
Set the viewer width and height in pixels or percentages, with responsive behavior on desktop, tablet, and mobile. Show or conceal the filename and the download button at the top of the viewer. You can also disable document pop-outs, remove the full-screen expand control, and hide the download and full-screen buttons in the Microsoft viewer toolbar.
Content protection can disable right-click and text selection, and block the Ctrl/Cmd+C, A, S, and P shortcuts. These settings deter common actions but cannot prevent copying content that a browser shows.
Add a document to a page
In WordPress, go to Office Viewer > Add New, select a source, set the viewer and dimensions, then configure the available restrictions. Add the document with the Gutenberg block, which works with wide and full-width alignment, or generate a shortcode. Place the shortcode in the Classic Editor, a widget, a page builder, or a theme template with do_shortcode().
Install and configure
Install and activate Document Viewer Pro in WordPress. Configure the required cloud API settings if you plan to use Google Drive or Dropbox. Then create a document, select its source, and add it to the desired content area. Adjust the display, toolbar, and restriction settings before publishing.