About this plugin
BrilliantMinds PDF Embed turns any PDF into a clean, modern reading experience inside your content. Visitors read the document right on your page, with no plugins to install and no third-party services involved. Everything runs from your own server.
Highlights
- PDF Viewer block for the block editor: upload or choose a PDF, adjust options in the sidebar.
- Shortcode for the classic editor, page builders and widgets: [bmpdf url="https://example.com/file.pdf"]
- Continuous scroll or one page at a time, with swipe navigation on touch screens.
- Zoom, fit to width, fit to page, rotate and a page number field.
- Light, dark or automatic color scheme, plus a toggle so visitors can choose.
- Fullscreen mode, download, print and open-in-new-tab buttons. Each one can be turned off.
- Selectable, copyable text.
- Your accent color, corner radius, shadow, width, height and alignment.
- Top or bottom toolbar, as a full-width bar or a floating pill.
- Load on click option so pages with several PDFs stay fast.
- Auto-embed option: paste a PDF link on its own line and it becomes a viewer.
- Lazy rendering: only the pages near the screen are drawn, so large documents stay smooth.
- Accessible: keyboard shortcuts, labeled controls, visible focus and reduced-motion support.
- Privacy friendly: no tracking, no cookies, no external requests. The theme toggle remembers a visitor’s choice in their own browser.
- Translation ready.
Shortcode options
All options are optional and override the defaults from Settings > PDF Viewer.
- url – link to the PDF file.
- id – Media Library attachment ID (use instead of url ).
- title – title shown in the toolbar.
- width, height – for example width="80%" height="600".
- align – left, center or right.
- mode – scroll or single.
- zoom – width, page or a percentage such as 125.
- page – page to open first.
- theme – auto, light or dark.
- accent – hex color, for example #0f766e.
- radius – corner radius in pixels.
- toolbar_position – top or bottom. toolbar_style – bar or floating.
- On/off options (use 1 or 0 ): shadow, show_title, page_input, zoom_controls, rotate, theme_toggle, fullscreen, download, print, open_new, text_select, disable_context, load_on_click.
Example: [bmpdf id="123" height="600" theme="dark" mode="single" download="0"]
Developers
Use the bmpdf_viewer_config filter to change the configuration passed to the viewer.
Third-party libraries
0 (compatible with GPLv2 or later).
- Source code and project page: https://github.com/mozilla/pdf.js
- Package: https://www.npmjs.com/package/pdfjs-dist (version 4.10.38, legacy/build files)
- Files in assets/vendor/pdfjs/: pdf.min.js and pdf.worker.min.js are the unmodified legacy/build/pdf.min.mjs and pdf.worker.min.mjs files from that package, renamed to.js (so that every web server sends the correct content type) and with the trailing source-map comment removed. cmaps/ and standard_fonts/ are copied unchanged from the same package. The license is in assets/vendor/pdfjs/LICENSE.txt.
- To rebuild the minified files from source, follow the build instructions in the PDF.js repository at the tag v4.10.38.