How To Use
Everything you do after the first document: the three ways to embed, every setting tab in turn, the document library, the leads dashboard, and the shortcodes that place it all.
Three Ways to Embed
The same viewer reaches your page by three routes. They share one settings surface, so the choice is about where you want the settings to live, not about what you can do.
The three routes
| Route | Where the settings live | Best for |
|---|---|---|
| Document + shortcode | A document post, in the Document Configuration panel | A file used in more than one place, or one you want download counts and leads tracked for |
| Document Embed block | The block itself, in the block sidebar | A one-off embed on a single page |
| Page builder | A document post, placed by shortcode | Elementor, Divi, Bricks, WPBakery, Beaver Builder, Oxygen and Breakdance |
What is identical
Every setting on a document has a matching panel on the block. The plugin renders both through the same block, so a document placed by shortcode and a block placed on a page produce the same markup and the same behavior.
What is not
- Download counts and leads are per document. The Download Stats panel and the leads filter key off the document ID, so a block on a page has nowhere to report them.
- Reuse. Change a document once and every shortcode that points at it updates. A block is local to its page.
- Lightbox mode currently needs the block. See the limitation on the Modal Pop Up page.
A useful default
Build documents for anything that matters: reports, price lists, brochures, anything gated or tracked. Reach for the block when you just need one file on one page and will never touch it again.
The Document Configuration Panel
Everything about how a document looks and behaves lives in one panel on the document edit screen, split into eight tabs. This page is the map; each tab has its own page.
The eight tabs
| Tab | Controls | Reference |
|---|---|---|
| General | The file, the viewer engine, width and height per device | General |
| Controls | Reader mode, thumbnails, zoom, full screen, page rendering | Controls |
| Toolbar | Filename, download button, position, theme and colors | Toolbar |
| Modal Pop Up (Lightbox) | Opening the document in a popup, and what triggers it | Modal Pop Up |
| Download Management | Button text, behavior, limits, access, email gate | Download Management |
| Access & Security | Who may view the document, secure delivery | Access & Security |
| Interactive Overlays | Notes, highlights, links and CTAs on individual pages | Interactive Overlays |
| Performance & Reliability | Lazy loading and viewer fallback | Performance |
Work through them in order
The tabs are ordered the way the settings depend on each other. The General tab decides the engine, and the engine decides which of the Controls options apply at all. The Toolbar tab switches the download button on, and Download Management configures the button that is already switched on.
Locked rows in the free version
Free installs show every Pro field with a padlock instead of hiding it, so you can see what a setting does before you buy. Clicking a locked row opens the feature list.
The same settings on the block
The block sidebar carries the same options, but it splits the General tab across three panels and lists them in its own order. This table is in the order the sidebar shows them.
| Block sidebar panel | Same as document tab |
|---|---|
| Document Source | General (the file and the engine) |
| Controls | Controls |
| Toolbar | Toolbar |
| Display & Dimensions | General (width and height) |
| Security & Restrictions | General (Disable Popout, Enable Loading Icon) |
| Access & Security | Access & Security |
| Interactive Overlays | Interactive Overlays |
| Modal Pop Up (Lightbox) | Modal Pop Up (Lightbox) |
| Download Management | Download Management |
| Performance & Reliability | Performance & Reliability |
| Advanced | Nothing. This is the core WordPress panel for a block’s CSS class. |
Two names for one setting
The block calls the download toggle Enable Download Button, where a document calls it Show Download Button. It is the only control the two paths label differently.
Every settings page in this guide carries an editor switch at the top. Flip it and the screenshots and the location line change with it, so you are always looking at the panel you are actually in.
Live Preview While You Edit
You do not have to publish a document to see how it will look. A Live Preview box sits below the Document Configuration panel and renders the document exactly as visitors will see it, using the settings currently on screen, including ones you have not saved.
The preview bar
- Desktop / Tablet / Mobile – switch device widths to check your responsive width and height.
- Refresh – redraw the preview after a change.
- A status line reads Preview up to date once the render matches the settings on screen.
- Click the Live Preview heading to collapse or expand the whole box.
Nothing is saved by previewing
The preview deliberately reads the unsaved values in the panel, so you can try a setting, look at it, and change your mind. Your changes only reach visitors when you press Update.
What it covers
Live Preview is in the free version and works with all four viewer engines. The block editor has no separate preview box because the block renders the document on the canvas itself.
Flipbook and Slider on the block canvas
Selecting Flipbook or Slider on the Document Embed block leaves the editor canvas rendering the PDF.js viewer. The front end is correct. Check those two engines through Live Preview on a document, or by viewing the page.
The Editor Sidebar
The right-hand column of the document editor carries two panels of its own, under Publish.
Download Stats
A running count for this document: Total Downloads and Total Leads. The download total comes from the counter the download button increments; the leads total counts rows captured by the email gate for this document.
View Leads opens the Download Leads screen with the document filter already applied, which is the quickest way to see who downloaded this particular file. See Leads Dashboard.
Page Builder Support
A reminder that the shortcode under the post title works in Elementor, Divi, Bricks, WPBakery, Beaver Builder, Oxygen and Breakdance. Copy it from the field beneath the title and paste it into any builder’s shortcode or text widget.
Counts are per document
Both numbers key off the document ID. A Document Embed block placed directly on a page has no document post, so it has nowhere to record a download count or a lead. Build a document if you want either.
The Document Embed Block
If you build pages in the block editor you can skip the document post entirely. Add the Document Embed block to your page and configure it in the block sidebar.
Adding the block
Edit a post or page and add the Document Embed block
Edit a post or page and add the Document Embed block. Search for Document, PDF, Embed or Viewer.
Open Document Source in the sidebar and upload a file
Open Document Source in the sidebar and upload a file or paste a URL.
Pick a Viewer engine, then work through the remaining
Pick a Viewer engine, then work through the remaining panels.
The block renders the real document on the canvas as you go, so what you see is what visitors get.
Where the block’s defaults differ
The block ships slightly different starting sizes than a document, because a block usually sits in a full-width column.
| Setting | On a document | On the block |
|---|---|---|
| Width | 100% (desktop) | 100% for all three devices |
| Height | 600px (desktop) | 840px desktop, 700px tablet, 400px mobile |
| Download Button Text | Download | Download |
Document or block?
Use a document when the same file appears in more than one place, or when you want download counts and leads tracked for it. Use the block for a one-off embed on a single page. See Three Ways to Embed for the full comparison.
Not on the block
Download Stats and the leads filter belong to a document post, so a block cannot report either. Everything else on the block matches a document exactly.
General
The General tab holds the three settings everything else depends on: which file you are showing, which engine renders it, and how big the viewer is on each device.
The steps below are given for both routes. Pick the one you use.
Find it at: Document Embedder → Doc Embedder → edit a document → Document Configuration → General.
Find it at: select the Document Embed block on your page, then open Document Source, Display & Dimensions and Security & Restrictions in the block sidebar.
The document file
| Name | Type / values | Default | Description |
|---|---|---|---|
Document | Upload or URL | Empty | The file to display. Click **Upload** to pick from the Media Library or your computer, or paste the URL of a file hosted elsewhere. Everything else on this page depends on it. |
Cloud Drive IntegrationsPro | Buttons | Hidden | Buttons for picking a file straight from cloud storage. **Connect Google Drive** asks for permission once, then becomes **Select File** with a **Disconnect** link beside it. **Select from Dropbox** opens the Dropbox chooser. The buttons only appear once the matching keys are saved in Settings. |
Supported types include PDF, Word (.doc, .docx), Excel (.xls, .xlsx), PowerPoint (.ppt, .pptx), Apple Pages, PSD, images and code files: more than ten formats in total.
Cloud files have limits
A document pulled from Google Drive or Dropbox cannot use the download button, the filename display, or the Custom PDF, Flipbook and Slider engines. Upload the file to your Media Library if you need any of those.
Viewer
| Name | Type / values | Default | Description |
|---|---|---|---|
Viewer | Select | Default | The engine that renders the document: **Default**, **Custom PDF**, **Flipbook** or **Slider**. This is the most consequential setting on the page, because it decides which other options apply at all. |
All four engines are in the free version. See Viewer Engines for the full comparison.
Width and height
The viewer’s size is set per device, so a layout that works on desktop does not have to be a compromise on a phone.
| Name | Type / values | Default | Description |
|---|---|---|---|
Set Height & Width For | Device switcher | Desktop | Choose **Desktop**, **Tablet** or **Mobile**, then set the width and height beneath it. Each device keeps its own pair of values. |
Width (Desktop / Tablet / Mobile) | Number + unit | 100% | How wide the viewer is. Accepts `px`, `%` and `vw`. A percentage fills its container and is usually what you want; a pixel width is for a fixed-size embed inside a wider column. |
Height (Desktop / Tablet / Mobile) | Number + unit | 600px on a document | How tall the viewer is. Accepts `px`, `%` and `vh`. Because the document scrolls inside the viewer, this is a window size rather than a page count. The block starts at 840px desktop, 700px tablet, 400px mobile. |
Picking a height
A vh value such as 80vh keeps the viewer proportional to the visitor’s screen instead of a fixed pixel height. On mobile, around 400px keeps the rest of your page reachable without a long scroll through the embed.
Display options
Two smaller options finish the tab. On the block they live in the Security & Restrictions panel.
| Name | Type / values | Default | Description |
|---|---|---|---|
Disable PopoutPro | Toggle | Off | Hides the *open in new window* icon that the Google viewer adds to the top corner of the frame, so readers stay on your page. Applies to Google Drive documents only. |
Enable Loading IconPro | Toggle | Off | Shows a spinner while the document loads. Worth turning on for large files, so visitors see progress instead of an empty box. |
Viewer Engines
Document Embedder can render the same file in four different ways. The engine you pick decides how the document looks, how fast it loads, and which of the plugin’s other options apply to it, so this is the first setting to get right.
The steps below are given for both routes. Pick the one you use.
Find it at: Document Embedder → Doc Embedder → edit a document → Document Configuration → General → Viewer.
Find it at: select the Document Embed block on your page, then open Document Source → Viewer in the block sidebar.
The four engines
All four are available in the free version.
Default
Renders the file through the Google Drive viewer. This is the only engine that handles non-PDF files (Word, Excel, PowerPoint, Pages, PSD and the rest), so it stays the right choice for a mixed document set. Because the file is displayed inside Google’s own frame, the plugin’s Controls, Interactive Overlays and Secure Document Delivery options do not apply to it. It needs a publicly reachable file URL.
Custom PDF (PDF only)
Renders PDFs on your own server with a bundled PDF.js engine, so nothing is sent to Google. It is the fastest and most configurable engine, and the only one that offers Default Zoom and a Horizontal Scrollbar. Pick it for reports, manuals and anything long or private.
Flipbook (PDF only)
Presents the PDF as a book with a page-turning animation. It uses a 3D page curl where the browser supports WebGL and drops to a flat 2D page turn where it does not, so every visitor gets a working flipbook. Suits brochures, magazines, catalogues and portfolios.
Slider (PDF only)
Shows one page at a time as a swipeable slideshow, with no page-turn animation. Good for slide decks, one-page-per-idea documents, and mobile-first layouts where a flipbook feels heavy.
PDF only means PDF only
Custom PDF, Flipbook and Slider work with PDF files. If you point one of them at a Word, Excel or PowerPoint file, switch to the Default engine or convert the file to PDF first.
What each engine supports
| Capability | Default | Custom PDF | Flipbook | Slider |
|---|---|---|---|---|
| Non-PDF files (DOCX, XLSX, PPTX) | Yes | ✘ | ✘ | ✘ |
| Rendered on your own server | ✘ | Yes | Yes | Yes |
| Controls panel (reader mode, thumbnails, full screen) | ✘ | Yes | Yes | Yes |
| Default Zoom | ✘ | Yes | ✘ | ✘ |
| Horizontal Scrollbar | ✘ | Yes | ✘ | ✘ |
| Interactive Overlays | ✘ | Yes | Yes | Yes |
| Secure Document Delivery | ✘ | Yes | Yes | Yes |
| Google Drive and Dropbox sources | Yes | ✘ | ✘ | ✘ |
| Download button and filename | Yes | Yes | Yes | Yes |
| Page-turn animation | ✘ | ✘ | Yes | ✘ |
Which one should I use?
- A mix of file types, or a Google Drive or Dropbox file: Default.
- A long PDF report, manual or whitepaper: Custom PDF.
- A brochure, catalogue, magazine or portfolio: Flipbook.
- A slide deck, or a document most people read on a phone: Slider.
- You need overlays, role-restricted viewing or secure delivery: Custom PDF, Flipbook or Slider.
Controls
The Controls tab fine-tunes how the reader behaves once the document is on screen: what chrome is visible, which page opens first, and how much of the file is rendered at a time.
The steps below are given for both routes. Pick the one you use.
Find it at: Document Embedder → Doc Embedder → edit a document → Document Configuration → Controls.
Find it at: select the Document Embed block on your page, then open Controls in the block sidebar.
Engine first
These settings apply to the Custom PDF, Flipbook and Slider engines. The Default (Google Drive) viewer does not support them. Default Zoom and Horizontal Scrollbar are exclusive to Custom PDF.
Every option
| Name | Type / values | Default | Description |
|---|---|---|---|
Reader ModePro | Toggle | Off | Hides the PDF menu and background for a clean, minimal reading surface. Because it strips the viewer's chrome, the other Controls settings have no effect while it is on. Turn it off if you want thumbnails, zoom or a sidebar. |
Toggle ThumbnailsPro | Toggle | Off | Adds thumbnail navigation to the viewer, so readers can jump to a page visually. |
Sidebar OpenPro | Toggle | Off | Opens the thumbnail sidebar automatically when the document loads, instead of waiting for the reader to open it. Pair it with Toggle Thumbnails. |
Horizontal ScrollbarPro | Toggle | Off | Enables horizontal scrolling, so wide pages such as plans, landscape artwork and spreadsheets exported to PDF can be panned instead of shrunk to fit. (Custom PDF only) |
Load Latest VersionPro | Toggle | Off | Bypasses the browser cache so the newest copy of the PDF is always fetched. Turn it on for documents you replace regularly, such as price lists, schedules and changelogs, so returning visitors never see yesterday's file. |
Enable Full-Screen ButtonPro | Toggle | Off | Adds a full-screen button to the viewer toolbar, letting readers expand the document to fill the browser window. |
Open Full-Screen in New TabPro | Toggle | Off | Adds a second button that opens the PDF full-window in a new browser tab. It only appears while Enable Full-Screen Button is on. |
On-Demand Page RenderingPro | Toggle | Off | Renders only the pages near the reader's position instead of the whole file up front. On a long PDF this is the single biggest improvement to first-load time. Recommended above roughly 30 pages. |
Initial PagePro | Number | 1 | The page shown when the viewer loads. Use it to open a long document at its summary, or at the section a particular page links to. |
Default ZoomPro | Select | Auto | The zoom level the document opens at: **Auto**, **Page Actual**, **Page Fit**, **Page Width**, or a fixed 50%, 75%, 100%, 125%, 150% or 200%. (Custom PDF only) |
Choosing a Default Zoom
| Value | What the reader sees |
|---|---|
| Auto | The viewer decides, based on the space available. |
| Page Actual | The PDF’s own 100% size. |
| Page Fit | One whole page visible at a time. Suits presentations. |
| Page Width | The page fills the viewer’s width. Suits narrow columns. |
| 50% to 200% | A fixed level, regardless of the viewer size. |
Availability at a glance
| Option | Custom PDF | Flipbook | Slider | Default |
|---|---|---|---|---|
| Reader Mode | Yes | Yes | Yes | ✘ |
| Toggle Thumbnails | Yes | Yes | Yes | ✘ |
| Sidebar Open | Yes | Yes | Yes | ✘ |
| Horizontal Scrollbar | Yes | ✘ | ✘ | ✘ |
| Load Latest Version | Yes | Yes | Yes | ✘ |
| Enable Full-Screen Button | Yes | Yes | Yes | ✘ |
| On-Demand Page Rendering | Yes | Yes | Yes | ✘ |
| Initial Page | Yes | Yes | Yes | ✘ |
| Default Zoom | Yes | ✘ | ✘ | ✘ |
Toolbar
The toolbar carries the document’s name and its download button. This tab decides whether it appears, where it sits, and how it is colored.
The steps below are given for both routes. Pick the one you use.
Find it at: Document Embedder → Doc Embedder → edit a document → Document Configuration → Toolbar.
Find it at: select the Document Embed block on your page, then open Toolbar in the block sidebar.
What appears in the bar
| Name | Type / values | Default | Description |
|---|---|---|---|
Display File Name | Toggle | Off | Shows the document's name in the toolbar. Useful when several documents sit on one page and readers need to know which is which. Not available for Google Drive and Dropbox files. |
Show Download Button | Toggle | Off | Adds a download button for the document. Everything about how that button behaves is set under [Download Management](#download-management). Not available for Google Drive and Dropbox files. |
Toolbar Position | Select | Toolbar (Default) | Where the bar sits. **Toolbar (Default)** places it across the top of the viewer; **Below Embed** moves it beneath the document as a separate strip. The filename and the download button move together, because they share one bar. The field appears once either one is switched on. |
One control, two names
The block calls this toggle Enable Download Button; a document calls it Show Download Button. They are the same setting, so follow the wording for the editor you are in.
Color and theme
| Name | Type / values | Default | Description |
|---|---|---|---|
Toolbar ThemePro | Select | Dark (Default) | The bar's design. **Dark (Default)** is a charcoal bar with light text, **Light** inverts it, and **Custom** reveals the two color pickers below. |
Toolbar Background ColorPro | Color | #343434 | The bar's background color. Only applies while Theme is set to Custom. |
Toolbar Text ColorPro | Color | #ffffff | The color of the filename text and of the toolbar's buttons and icons. Only applies while Theme is set to Custom. |
Keep the contrast
The full-screen and download controls take their color from Toolbar Text Color. If you pick a light background, set a dark text color too, or those buttons disappear into the bar.
The order things happen in
Switch on Show Download Button here, on the Toolbar tab
Switch on Show Download Button here, on the Toolbar tab.
Set the label, behavior, limit and access rules under
Set the label, behavior, limit and access rules under Download Management.
Come back here to choose Toolbar Position and the theme
Come back here to choose Toolbar Position and the theme.
Skipping the first step is the most common reason a download button does not appear. Download Management configures a button that is already switched on; it does not switch one on.
Modal Pop Up (Lightbox)
Lightbox mode keeps a page clean by opening the document in a focused popup instead of embedding it inline. You choose what the visitor clicks to open it.
The steps below are given for both routes. Pick the one you use.
Find it at: Document Embedder → Doc Embedder → edit a document → Document Configuration → Modal Pop Up (Lightbox).
Find it at: select the Document Embed block on your page, then open Modal Pop Up (Lightbox) in the block sidebar.
Use the block for lightbox mode
Lightbox settings saved on a document are not currently read back by the [doc] shortcode, so a shortcode embed renders inline with the default label instead of as a popup. Place the Document Embed block on the page instead, which carries its own lightbox attributes and works correctly. A fix is on the way.
Turning it on
| Name | Type / values | Default | Description |
|---|---|---|---|
Enable LightboxPro | Toggle | Off | Displays the document in a modal popup when the trigger is clicked, instead of embedding it in the page. The rest of this tab appears once it is on. |
Lightbox TriggerPro | Select | Default Button (current behavior) | What the visitor clicks: **Default Button (current behavior)** for a styled button the plugin renders, **Click Featured/Preview Image** for an image of your choosing, or **Custom Element (CSS Selector)** for anything already on your page. |
Button trigger
These four fields appear when the trigger is Default Button.
| Name | Type / values | Default | Description |
|---|---|---|---|
Button TextPro | Text | View Document | The button's label. Write it as an invitation, such as *Read the whitepaper* or *View certificate*, rather than a generic *Open*. |
Button SizePro | Select | Medium | **Small**, **Medium**, **Large** or **Extra Large**, so the button sits naturally in your layout. |
Button Text ColorPro | Color | #ffffff | The label's color. |
Lightbox Button BackgroundPro | Color | #333333 | The button's background color. |
Image trigger
These fields appear when the trigger is Click Featured/Preview Image. Use a document cover, a first-page thumbnail or a mockup: the image itself becomes the link.
| Name | Type / values | Default | Description |
|---|---|---|---|
Trigger ImagePro | Upload or URL | Empty | The image visitors click to open the document. |
Image WidthPro | Text | 300px | How wide the image is, for example `300px` or `50%`. It scales down to fit smaller screens. |
Image HeightPro | Text | auto | How tall the image is, for example `auto` or `200px`. Use `auto` to keep the image's aspect ratio. |
Image FitPro | Select | Cover (crop to fill) | How the image fills its box when you have set a fixed height. **Cover (crop to fill)** fills the box and trims the overflow, best for covers. **Contain (fit inside)** shows the whole image. **Fill (stretch)** ignores the aspect ratio. It only matters with a fixed height. |
Corner RadiusPro | Text | 8px | Rounds the image's corners, for example `8px`, or `50%` for a circle. |
AlignmentPro | Select | Left | The image's horizontal position: **Left**, **Center** or **Right**. |
Custom element trigger
| Name | Type / values | Default | Description |
|---|---|---|---|
Trigger CSS SelectorPro | Text | Empty | The selector of an element already on your page, for example `.my-custom-button` or `#open-doc-btn`. Clicking that element opens the document. This is how you attach a document to a button your theme or page builder made. |
Be specific
Something broad like img may match other embeds on the same page and open the wrong document. Give the element its own class or ID and target that.
Download Management
This tab covers everything about the download button: its label, what clicking it does, how many times it may be used, who may use it, and whether a visitor has to hand over an email address first.
The steps below are given for both routes. Pick the one you use.
Find it at: Document Embedder → Doc Embedder → edit a document → Document Configuration → Download Management.
Find it at: select the Document Embed block on your page, then open Download Management in the block sidebar.
Show the button first
None of these settings do anything until Show Download Button is switched on under Toolbar.
The button itself
| Name | Type / values | Default | Description |
|---|---|---|---|
Download Button Text | Text | Download | The button's label, for example *Download Report*, *Grab your Copy* or *Save PDF*. |
Download Behavior | Select | Force Save Dialog | **Force Save Dialog** sends the file straight to the visitor's downloads. **Open in New Tab** opens it in a browser tab first, letting them read before saving. |
Custom Filename | Text | Empty | The name the file is saved under, so your branding survives however the file is named on your server. Leave it empty to keep the original name. It has no effect when Download Behavior is **Open in New Tab**. |
Show Download Count | Toggle | Off | Displays the total number of times this document has been downloaded. It doubles as social proof on a popular file. |
Download Limit | Select | No Limit | How many times one visitor may download the file, counted per IP address. The choices are **No Limit**, **1**, **3** and **5**. Once the limit is reached the button stops working for that visitor. |
Who may download
| Name | Type / values | Default | Description |
|---|---|---|---|
Download AccessPro | Select | Everyone | Who gets a working download button: **Everyone**, **Logged In** or **Specific Roles**. Restricted visitors can still read the document on your page, because this gates the button only. To hide the document itself, use [Access & Security](#access–security). |
Allowed RolesPro | Checkboxes | None | The roles that may download. It appears when Download Access is set to Specific Roles, and you can pick several. |
Access Denied MessagePro | Text | Access Denied | Shown in place of the button when a visitor may not download, for example *Log in to download*. Leave it empty to show nothing at all. It appears when Download Access is not Everyone. |
Email Gate
| Name | Type / values | Default | Description |
|---|---|---|---|
Email GatePro | Toggle | Off | Requires visitors to enter their name and email before the download starts, turning any file into a lead magnet. Every submission is saved to the [Leads dashboard](#leads-dashboard), and the document's own Download Stats panel shows a running total. |
Gate and access work together
If you set both Download Access and Email Gate, the visitor must satisfy the access rule first and then complete the form. For a public lead magnet, leave Download Access on Everyone and use the gate alone.
How the per-IP limit is counted
The limit counts rows already recorded against the visitor’s IP address for this document. That means the counter and the limit share one record, so a visitor who has downloaded a file three times is at three whether they went through the gate or not.
Pick a limit you can defend
A limit of 1 is frustrating on a shared office connection, because everyone behind that connection shares one IP address. 3 or 5 is usually a better balance between abuse and annoyance.
Access & Security
Document Embedder controls access at two independent levels, and it matters which one you reach for. Download Access gates the button. View Access gates the document.
The steps below are given for both routes. Pick the one you use.
Find it at: Document Embedder → Doc Embedder → edit a document → Document Configuration → Access & Security.
Find it at: select the Document Embed block on your page, then open Access & Security in the block sidebar.
Two levels, one decision
| Download Access | View Access | |
|---|---|---|
| Where | Download Management | Access & Security |
| What it gates | The download button only | The viewer itself |
| A restricted visitor sees | The document, with no download button | Your message instead of the document |
| File URL in the page | Still present | Never written into the page |
In short: use Download Access when people may read but not keep the file, and View Access when they should not see it at all.
Every option
| Name | Type / values | Default | Description |
|---|---|---|---|
View AccessPro | Select | Everyone | Who can see the document. **Everyone** keeps the fully public behavior. **Logged In** limits it to signed-in visitors. **Specific Roles** limits it to the roles you choose. |
Allowed Roles (View)Pro | Checkboxes | None | The roles allowed to view the document. It appears only when View Access is set to Specific Roles, and you can select more than one, for example Subscriber and Customer for a members-only download area. |
Restricted MessagePro | Text | This document is restricted. | Shown in place of the viewer when a visitor is not allowed to see the document. Write something actionable: *Log in to read this report* beats a bare refusal. |
Secure Document DeliveryPro | Toggle | Off | Serves the file through a signed, short-lived, IP-bound streaming link instead of exposing its public upload URL. The link is tied to the requesting visitor's IP address and expires on its own, so a copied URL stops working rather than circulating. (Local PDFs only) |
If the Secure Delivery row is not there
The row is tied to the Viewer setting on the General tab, and on a document it can stay hidden on the Access & Security tab even with a supported engine selected. The block’s Access & Security panel always shows it, so use the block if you need to reach the switch.
When Secure Delivery applies
It needs all three conditions: a PDF, stored in your own media library, on the Custom PDF, Flipbook or Slider engine. The Default engine hands the URL to Google, which cannot carry the token, and externally hosted files keep their existing behavior. When a condition is not met the option is hidden or has no effect, and nothing breaks.
If your site uses a full-page cache
Read this before restricting a document
When View Access is anything other than Everyone, exclude that page from full-page caching, or use a caching plugin that caches per role. Otherwise one visitor’s cached page can be served to another, and a restricted document can end up visible to someone who should not see it, or hidden from someone who should.
Most caching plugins offer both a never cache these pages list and a do not cache for logged-in users switch. Either one is enough.
What these settings do and do not do
They do keep the file URL out of your page’s HTML for visitors who are not allowed to view the document, and they re-check permission on every request rather than trusting anything stored in the browser.
They do not encrypt the file on disk, and they cannot stop someone who is legitimately allowed to view a document from screenshotting or re-sharing what they see. For stronger guarantees, pair View Access with a membership plugin.
Interactive Overlays
Overlays let you place your own content on top of a PDF page without editing the PDF: a note in the margin, a highlight over a paragraph, a clickable link across a logo, or a call to action beside a price table.
The steps below are given for both routes. Pick the one you use.
Find it at: Document Embedder → Doc Embedder → edit a document → Document Configuration → Interactive Overlays.
Find it at: select the Document Embed block on your page, then open Interactive Overlays in the block sidebar.
Each overlay is positioned as a percentage of the page rather than in pixels, so it stays exactly where you put it whether the reader is on a phone, on a desktop, or zoomed to 200%.
Before you start
Overlays need a PDF document on the Custom PDF, Flipbook or Slider engine.
Why the Default engine cannot do this
The Default (Google viewer) engine renders your document inside a frame served by Google, which cannot host an overlay layer. If the Overlays panel shows a warning, switch the engine under General → Viewer first.
Adding your first overlay
Open Interactive Overlays and click Add Overlay
Open Interactive Overlays and click Add Overlay. A new row opens, already set to Note on page 1.
Pick the Page Number
Pick the Page Number. When the plugin can read the PDF’s page count you get a dropdown listing every page; otherwise you type the number.
Choose a Type: Note, Highlight, Link or Call to Action
Choose a Type: Note, Highlight, Link or Call to Action.
Set the position with the four sliders: Left (X %), Top
Set the position with the four sliders: Left (X %), Top (Y %), Width (%) and Height (%).
Fill in the type’s own field
Fill in the type’s own field. Links take a Link URL; Notes and CTAs take Content. Highlights need nothing.
Watch the Live Preview below the panel to check the
Watch the Live Preview below the panel to check the placement, then press Update.
The four overlay types
| Type | Looks like | Field to fill | Use it for |
|---|---|---|---|
| Note | A small text panel on the page | Content | Annotations, corrections, translations, context |
| Highlight | A translucent marker | Nothing | Drawing the eye to a clause, a figure or a total |
| Link | An invisible clickable area | Link URL | Making a logo, chart or footnote clickable |
| Call to Action | A styled prompt on the page | Content | Book a demo, Get the full report, pricing prompts |
Editing a link overlay
A Link overlay has nothing visible to show, so while you are positioning it the editor draws an outline and a label naming its destination. That outline appears in the editor and the Live Preview only. Visitors see a transparent hit area.
How positioning works
All four sliders are percentages of the page, measured from its top-left corner. Left (X %) is the distance from the left edge, where 0 is flush left and 50 is the middle. Top (Y %) is the distance from the top edge. Width (%) and Height (%) are the size of the box.
Because nothing is measured in pixels, an overlay at 50% / 50% sits in the centre of the page at every screen size and zoom level. The sliders move in steps of 0.5, which is fine enough to line up with a column of text.
Size first, then position
Set Width and Height so the box is roughly the right size, then move Left and Top until it lands. Adjusting size after position means chasing the box around the page.
Every overlay field
| Name | Type / values | Default | Description |
|---|---|---|---|
Page Number | Select or number | 1 | The page the overlay sits on. A dropdown when the PDF's page count can be read, which also tells you how many pages the document has, and a plain number field when it cannot. |
Type | Select | Note | Note, Highlight, Link or Call to Action. Changing it swaps which content field appears below. |
Left (X %) | Slider | 10 | Distance from the page's left edge, 0 to 100, in steps of 0.5. |
Top (Y %) | Slider | 10 | Distance from the page's top edge, 0 to 100, in steps of 0.5. |
Width (%) | Slider | 30 | The overlay box's width as a share of the page, 1 to 100, in steps of 0.5. |
Height (%) | Slider | 12 | The overlay box's height as a share of the page, 1 to 100, in steps of 0.5. |
Link URL | Text | Empty | Where a Link overlay goes. The overlay becomes a transparent clickable area opening this URL. Link type only. |
Content | Textarea | Empty | The text shown in a Note or Call to Action. Basic HTML is allowed; scripts and event handlers are stripped when saved. Note and Call to Action types only. |
Reordering, duplicating and removing
- Move up and Move down reorder the list.
- Duplicate copies an overlay including its position. It is the fastest way to put the same CTA on several pages: duplicate, then change only the page number.
- Remove deletes it. You can remove every overlay; a document with none simply renders as usual.
Row titles read as type and page number, for example Call to Action, page 12, so a long list stays scannable without opening each row.
Swapped the PDF for a shorter one?
An overlay pointing at a page that no longer exists is kept and labelled not in this document rather than being silently moved to page 1, so you can see what needs fixing and repoint it.
What you can put in an overlay
Note and Call to Action overlays accept basic HTML: links, bold, emphasis and line breaks, so you can write a short formatted message. Scripts and event handlers are stripped when the document is saved.
Keep the text short. An overlay is sized as a share of the page, so long copy either overflows its box or forces a box big enough to cover the content underneath.
Performance & Reliability
Two settings control how a document affects your page speed and what happens if a viewer fails to load. Unlike the Controls panel, both apply to every engine and every file type.
The steps below are given for both routes. Pick the one you use.
Find it at: Document Embedder → Doc Embedder → edit a document → Document Configuration → Performance & Reliability.
Find it at: select the Document Embed block on your page, then open Performance & Reliability in the block sidebar.
Both options
| Name | Type / values | Default | Description |
|---|---|---|---|
Auto-Fallback if Google Viewer Fails to LoadPro | Toggle | On | If Google's document viewer times out or errors, the document is retried automatically with an alternate renderer instead of leaving an empty frame on your page. Leave it on unless you have a specific reason not to. |
Lazy Load This EmbedPro | Toggle | Off | Holds the viewer back until it scrolls into view, so a document below the fold costs nothing on first paint. Recommended on any page carrying several embeds, and on long pages where the document sits near the bottom. |
One exception
Do not lazy load a document that sits at the very top of the page. It is already visible on arrival, so there is nothing to defer, and the delay is briefly noticeable.
Recommended settings by situation
| Situation | Turn on |
|---|---|
| One long PDF, 50 pages or more | On-Demand Page Rendering on the Custom PDF engine |
| Several documents on one page | Lazy Load This Embed on each |
| A document near the bottom of a long page | Lazy Load This Embed |
| A Google Drive or Dropbox file | Auto-Fallback and Enable Loading Icon |
| A file you replace often | Load Latest Version |
The third performance setting
On-Demand Page Rendering is a performance setting too, but it lives on the Controls tab because it only applies to the Custom PDF, Flipbook and Slider engines.
Building a Library
A Document Library shows a collection of files on one page as a searchable, sortable grid of cards. It is a separate module from a document: its own editor, its own settings and its own shortcode.
Find it at: Document Embedder → Document Library. Libraries render through [document_library id="12"].
Building one
Go to Document Embedder -> Document Library and click
Go to Document Embedder → Document Library and click Add New Library.
Give the library a name in the field beside Edit
Give the library a name in the field beside Edit Document Library.
On the Upload Items tab, add your files
On the Upload Items tab, add your files.
Work through the Header, Toolbar Box, Document Box and
Work through the Header, Toolbar Box, Document Box and Library Container tabs to style it. The preview beside the settings updates as you go.
Click Save, then copy the shortcode from the field at
Click Save, then copy the shortcode from the field at the top of the editor and paste it onto any page.
[document_library id="1896"]Five tabs, working from the outside in
The tabs follow the layout of the rendered library, from the outside in.
| Tab | Styles | Reference |
|---|---|---|
| Upload Items | The files themselves and their details | Upload Items |
| Header | The title block at the top | Header |
| Toolbar Box | The search, filter and sort strip | Toolbar Box |
| Document Box | Each individual file card | Document Box |
| Library Container | The frame around all of it, and the grid | Library Container |
How many files
Five files on the free version
A free library holds up to five documents. Pro removes the cap. Everything else about the library, including all the styling tabs, is in the free version.
How library documents open
When a visitor opens a document from a library, PDFs stored in your own media library are rendered with the plugin’s bundled PDF.js viewer rather than the Google viewer. They open faster and more reliably, which is what fixed the intermittent blank-frame failures in earlier versions.
This is automatic and needs no setting. Files hosted elsewhere, and non-PDF file types, continue to use the Google viewer.
Upload Items
The Upload Items tab is where the library’s files come from, and where you write the title, author, description and size that visitors see on each card.
Three ways to add a file
| Button | What it does |
|---|---|
| Upload From Device | Opens your computer’s file picker and uploads the file. You can also drag files onto the drop zone. |
| Insert Using URL | Paste the address of a file hosted elsewhere and click Add. Nothing is copied to your server; the library links to the file where it lives. |
| Choose From Media Library | Opens the WordPress Media Library. Select as many files as you like, then click Use these documents. |
Document details
Every file you add gets four editable fields. These are what visitors see on the card, and what the search box looks through.
| Name | Type / values | Default | Description |
|---|---|---|---|
Title | Text | The filename | The file's display name. It defaults to the filename, which is usually worth rewriting into something readable. |
Author | Text | Empty | Who produced the document. Searchable from the front-end search box. |
Description | Text | Empty | A short summary shown on the card. |
File Size | Text | Detected on upload | The size shown on the card, and the value the Size sort options order by. Files added by URL often have none, so fill this in by hand for those. |
Your Uploaded Documents
A table of everything in this library. Use it to rename a file, edit its details, reorder the list or delete an entry. Tick several rows to act on them together, or use the header checkbox to select the page.
Fill in File Size for URL files
The Size (Smallest) and Size (Largest) sort options read this field. A file added by URL with an empty size will not sort meaningfully until you type one in.
Header
The Header tab controls the title block that sits above the library grid: whether it appears at all, what it says, and how it looks.
Content
| Name | Type / values | Default | Description |
|---|---|---|---|
Show Header | Toggle | On | Whether the header block appears at all. Turn it off when the surrounding page already has a heading. |
Header Title | Text | Empty | The library's heading, for example *Product Datasheets* or *2026 Reports*. |
Header Description | Text | Empty | A line of supporting text beneath the title. |
Header Text Align | Select | Left | Left, Center or Right, for both the title and the description. |
Styles
| Name | Type / values | Default | Description |
|---|---|---|---|
Background Color | Color | Theme default | The header block's background. |
Title Color | Color | Theme default | The heading's color. |
Title Typography | Typography | Theme default | Font family, size, weight, line height and letter spacing for the heading. |
Description Color | Color | Theme default | The supporting line's color. |
Description Typography | Typography | Theme default | Font settings for the supporting line. |
One heading, not two
If your page already has an H1 or H2 introducing the library, switch Show Header off rather than repeating the title. Two headings stacked on top of each other read as a mistake.
Toolbar Box
The Toolbar Box is the strip that lets visitors find things. Each control can be hidden independently, because a library of five files rarely needs all three.
The controls
| Name | Type / values | Default | Description |
|---|---|---|---|
Display Toolbar Box | Toggle | On | Shows or hides the whole strip. Turning it off hides search, filter and sort together. |
Display Search Box | Toggle | On | A text field that filters the library as the visitor types. It searches document titles, authors and tags. |
Display Type Filter Box | Toggle | On | A dropdown listing **All Types** plus every file type actually present in this library, so a visitor can narrow to just PDFs or just spreadsheets. |
Display Sort By | Toggle | On | A dropdown offering Name (A to Z), Name (Z to A), Date (Oldest), Date (Newest), Size (Smallest) and Size (Largest). |
Styles
| Name | Type / values | Default | Description |
|---|---|---|---|
Background Color | Color | Theme default | The strip's background. |
Full Toolbar Box Padding | Spacing | Theme default | Space inside the strip, set per side. |
Sorting needs data
The Size and Date sort options read the File Size and date recorded on each document. Files added by URL with an empty size will not sort meaningfully. Fill the field in on the Upload Items tab.
Document Box
The Document Box tab styles each individual file card. It is the longest tab in the library editor, because it covers what the card shows, which buttons it carries, and how all of it looks in both normal and hover states.
Visibility options
| Name | Type / values | Default | Description |
|---|---|---|---|
Display Icon | Toggle | On | Shows a file-type icon on the card, with a distinct glyph for documents, images, video, audio and archives. |
Display Size | Toggle | On | Shows the file size on the card. |
Display Date | Toggle | On | Shows the date on the card. |
Download button
| Name | Type / values | Default | Description |
|---|---|---|---|
Download Button | Toggle | On | Whether each card carries a download button. |
Display Text | Toggle | On | Show a text label on the button. With it off the button is icon-only, which is tidier in a dense grid. |
Download Button Text | Text | Download | The label, when Display Text is on. |
View button
| Name | Type / values | Default | Description |
|---|---|---|---|
Display View Button | Toggle | On | Whether each card carries a view button, which opens the document in a popup viewer. |
Display View Button Text | Toggle | On | Show a text label rather than an icon alone. |
View Button Text | Text | View | The label, when the text is shown. |
Card styles
Colors are set twice, once for Normal and once for Hover, so a card can respond to the pointer.
| Name | Type / values | Default | Description |
|---|---|---|---|
Background Color | Color | Theme default | The card's background, per state. |
Icon Color | Color | Theme default | The file-type icon, per state. |
File Title Color | Color | Theme default | The document's title on the card, per state. |
File Size Color | Color | Theme default | The file size text, per state. |
Date Color | Color | Theme default | The date text, per state. |
Box Border | Border | Theme default | The card's border: width, style and color. |
Document Box Padding | Spacing | Theme default | Space inside the card, per side. |
Box Border Radius | Spacing | Theme default | How rounded the card's corners are. |
Download Button Styles | Colors | Theme default | Text Color and Background Color for the download button. |
View Button Styles | Colors | Theme default | Text Color and Background Color for the view button. |
Icon-only buttons in a tight grid
At four or more columns the labels crowd the card. Switch Display Text and Display View Button Text off and let the icons carry it.
Library Container
The Library Container tab sets how many cards sit side by side, the space between them, and the frame around the whole library.
The grid
| Name | Type / values | Default | Description |
|---|---|---|---|
Document Columns | Number | 3 | How many cards sit side by side. Fewer, wider columns suit long titles; more columns suit a large collection. |
Gap Between Documents | Spacing | Theme default | The space between cards, both across and down. |
The frame
| Name | Type / values | Default | Description |
|---|---|---|---|
Background Color | Color | Theme default | The background behind the whole library. |
Full Container Padding | Spacing | Theme default | Space between the library's edge and its contents, per side. |
Mobile needs no setting
The grid reflows for tablets and phones on its own. Your column count is the desktop maximum, not a fixed value.
What Visitors See
On the front end the library renders as a header, then the toolbar strip, then a grid of cards. This page is what to expect once the shortcode is on a page.
What a visitor can do
- Type in the search box to filter by title, author or tag.
- Narrow the list to one file type with the type filter.
- Re-order by name, date or size.
- Click View to read a document in a popup, or Download to save it.
Filtering, sorting and searching all happen in the browser, so the grid responds as the visitor types rather than reloading the page.
How to tell it worked
Load the page as a visitor. You should see your header text, the toolbar strip with the controls you left switched on, and one card per file with the title, size and date you entered. Typing three letters of a title should narrow the grid immediately.
Reusing files across libraries
Libraries are independent collections, so the same file can appear in as many as you like, with a different title and description in each. Nothing is moved or copied when you add a file to a second library.
Leads Dashboard
Every submission the email gate collects lands in one table you can search, filter by document and date, export as CSV, and delete in bulk.
Find it at: the View Leads button in a document’s Download Stats panel, which opens the Download Leads screen already filtered to that document. Back To Doc List returns you to the document list.
The table
Each submission is one row.
| Column | Contains |
|---|---|
| ID | The submission’s reference number. |
| Name | The name the visitor entered. |
| The email address they entered, linked so you can mail them. | |
| Document Title | Which document they were downloading. This column only appears when you are looking at the unfiltered list, because a filtered view already names the document at the top. |
| IP Address | Where the request came from. This is also what per-IP download limits count against. |
| Date | When they submitted the form. |
Finding a lead
| Name | Type / values | Default | Description |
|---|---|---|---|
Search Email or Name | Text | Empty | Matches partial text in either field, so *sam* finds Samira and [email protected] alike. |
Document filter | Filter | All documents | Narrows the table to one document. The quickest way in is the **View Leads** button in a document's Download Stats panel, which arrives here already filtered. |
Date filter | Date | All dates | Limits the table to a date, for reporting on a campaign period. |
When a filter or search is active, a link appears to clear it and return to the full list.
Exporting and deleting
| Name | Type / values | Default | Description |
|---|---|---|---|
Export Data | Button | None | Downloads the table as a CSV file with the ID, name, email, document ID, document title, timestamp and IP address of every row. The export respects whatever filter and search are active, so filter to one document first if that is all you need. |
Delete Selected | Button | None | Removes the ticked rows. Use the checkbox in the header row to select every row on the page. You are asked to confirm, and deletion cannot be undone. |
These are personal details
Names, emails and IP addresses are personal data. Tell visitors what you will use their address for on the gate form, and delete leads you no longer need. The bulk delete above is how.
Where the numbers come from
A document’s Total Leads figure counts the rows in this table for that document, and Total Downloads counts every download of the file, gated or not. The two differ whenever the gate was switched on part-way through a document’s life.
Shortcode Reference
Two shortcodes cover everything the plugin renders. Both work anywhere a shortcode does, and [doc] accepts attributes that override a document’s saved settings for one placement only.
The two shortcodes
| Shortcode | Displays | Where to find the ID |
|---|---|---|
[doc id="7"] | A single document | Under the title on the document edit screen, and in the Shortcode column of the document list |
[document_library id="12"] | A document library | At the top of the library editor, beside a Copy button |
Click either shortcode in the admin to copy it to your clipboard.
Attributes for [doc]
id is required. Everything else is optional and overrides what the document has saved, for that one placement only. This is how you put the same document on two pages with different download labels.
| Name | Type / values | Default | Description |
|---|---|---|---|
id | integer | None | The document ID. Required. Nothing renders without it, and a non-document ID renders nothing. |
download | yes / no | The document's setting | Overrides **Show Download Button**. |
download_label | string | The document's setting | Overrides **Download Button Text**. |
download_position | toolbar / below | The document's setting | Overrides **Toolbar Position**. |
download_behavior | download / newtab | The document's setting | Overrides **Download Behavior**. |
download_filename | string | The document's setting | Overrides **Custom Filename**. |
download_limit | integer | The document's setting | Overrides **Download Limit**. 0 means no limit. |
show_count | yes / no | The document's setting | Overrides **Show Download Count**. |
toolbar_theme | dark / light / custom | The document's setting | Overrides **Toolbar Theme**. |
toolbar_bg_color | hex color | The document's setting | Overrides **Toolbar Background Color**. Applies while the theme is custom. |
toolbar_text_color | hex color | The document's setting | Overrides **Toolbar Text Color**. Applies while the theme is custom. |
Booleans accept yes, true or 1 for on, and no, false or 0 for off.
[doc id="7" download="yes" download_label="Get the 2026 report" download_behavior="download"]Only these eleven
Attributes not in this list are ignored. Width, height, engine, overlays, access rules and lightbox settings are read from the document itself, so change those on the document and every placement follows.
Attributes for [document_library]
| Name | Type / values | Default | Description |
|---|---|---|---|
id | integer | — | The library ID. Required. A missing or wrong-type ID renders *Document Library not found.* in place of the grid. |
Calling a shortcode from PHP
<?php echo do_shortcode( '[doc id="7"]' ); ?>
<?php echo do_shortcode( '[document_library id="12"]' ); ?>REST routes
The plugin registers five routes under the docembedder/v1 namespace. They exist for the plugin’s own front end and editor, and are listed here so you know what the traffic in your logs is.
| Route | Method | Who can call it |
|---|---|---|
/leads/<id> | GET | Users with manage_options |
/gate-download | POST | Anyone. This is the email gate submission. |
/download/<id> | GET | Anyone. Access is checked inside the callback. |
/stream/<id> | GET | Anyone with a valid token. This is Secure Document Delivery. |
/page-count | GET | Users with edit_posts. It feeds the overlay page dropdown in the block editor. |
Overlays have no REST route
Overlays are stored in post meta or in the block’s own attributes, read fresh on every render and withheld when view access denies. There is no write surface to defend and nothing for a front-end request to fetch.
Blocks & Page Builders
Document Embedder registers two blocks and two shortcodes, which between them cover the block editor, the Classic Editor, widgets and every page builder that accepts a shortcode.
The blocks
| Block | What it does |
|---|---|
| Document Embed | A self-contained document with the full settings panel in the sidebar. No document post needed. See The Document Embed Block. |
| Document Library | Places an existing library on a page by picking it from a dropdown, instead of pasting its shortcode. |
Page builders
Every builder below accepts a shortcode in a shortcode, text or HTML element. Paste [doc id="7"] or [document_library id="12"] into it and all of the saved settings travel with it.
- Elementor
- Divi
- Bricks
- WPBakery
- Beaver Builder
- Oxygen
- Breakdance
The document editor carries a Page Builder Support panel in its sidebar as a reminder, with the shortcode sitting right above it.
The Classic Editor and widgets
Paste the shortcode straight into the Classic Editor’s text area, or into a Text or Custom HTML widget. Nothing else is needed: the shortcode renders the same viewer everywhere.
Which one to reach for
| You are working in | Use |
|---|---|
| The block editor, one-off embed | The Document Embed block |
| The block editor, a file used in several places | A document, placed with a Shortcode block |
| A page builder | A document, placed by shortcode |
| The Classic Editor | A document, placed by shortcode |
| A theme template | do_shortcode(). See Shortcode Reference. |
Was this page helpful?