Skip to content

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

RouteWhere the settings liveBest for
Document + shortcodeA document post, in the Document Configuration panelA file used in more than one place, or one you want download counts and leads tracked for
Document Embed blockThe block itself, in the block sidebarA one-off embed on a single page
Page builderA document post, placed by shortcodeElementor, 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

TabControlsReference
GeneralThe file, the viewer engine, width and height per deviceGeneral
ControlsReader mode, thumbnails, zoom, full screen, page renderingControls
ToolbarFilename, download button, position, theme and colorsToolbar
Modal Pop Up (Lightbox)Opening the document in a popup, and what triggers itModal Pop Up
Download ManagementButton text, behavior, limits, access, email gateDownload Management
Access & SecurityWho may view the document, secure deliveryAccess & Security
Interactive OverlaysNotes, highlights, links and CTAs on individual pagesInteractive Overlays
Performance & ReliabilityLazy loading and viewer fallbackPerformance

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 panelSame as document tab
Document SourceGeneral (the file and the engine)
ControlsControls
ToolbarToolbar
Display & DimensionsGeneral (width and height)
Security & RestrictionsGeneral (Disable Popout, Enable Loading Icon)
Access & SecurityAccess & Security
Interactive OverlaysInteractive Overlays
Modal Pop Up (Lightbox)Modal Pop Up (Lightbox)
Download ManagementDownload Management
Performance & ReliabilityPerformance & Reliability
AdvancedNothing. 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

  1. 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.

  2. Open Document Source in the sidebar and upload a file

    Open Document Source in the sidebar and upload a file or paste a URL.

  3. 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.

SettingOn a documentOn the block
Width100% (desktop)100% for all three devices
Height600px (desktop)840px desktop, 700px tablet, 400px mobile
Download Button TextDownloadDownload

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

The file, and where it comes from.
NameType / valuesDefaultDescription
DocumentUpload or URLEmptyThe 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 IntegrationsProButtonsHiddenButtons 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

Every option, with its default.
NameType / valuesDefaultDescription
ViewerSelectDefaultThe 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.

Sizing, per device.
NameType / valuesDefaultDescription
Set Height & Width ForDevice switcherDesktopChoose **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 + unit100%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 + unit600px on a documentHow 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.

Every option, with its default.
NameType / valuesDefaultDescription
Disable PopoutProToggleOffHides 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 IconProToggleOffShows 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

CapabilityDefaultCustom PDFFlipbookSlider
Non-PDF files (DOCX, XLSX, PPTX)Yes
Rendered on your own serverYesYesYes
Controls panel (reader mode, thumbnails, full screen)YesYesYes
Default ZoomYes
Horizontal ScrollbarYes
Interactive OverlaysYesYesYes
Secure Document DeliveryYesYesYes
Google Drive and Dropbox sourcesYes
Download button and filenameYesYesYesYes
Page-turn animationYes

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

Every option on the Controls tab.
NameType / valuesDefaultDescription
Reader ModeProToggleOffHides 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 ThumbnailsProToggleOffAdds thumbnail navigation to the viewer, so readers can jump to a page visually.
Sidebar OpenProToggleOffOpens the thumbnail sidebar automatically when the document loads, instead of waiting for the reader to open it. Pair it with Toggle Thumbnails.
Horizontal ScrollbarProToggleOffEnables 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 VersionProToggleOffBypasses 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 ButtonProToggleOffAdds a full-screen button to the viewer toolbar, letting readers expand the document to fill the browser window.
Open Full-Screen in New TabProToggleOffAdds 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 RenderingProToggleOffRenders 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 PageProNumber1The 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 ZoomProSelectAutoThe 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

ValueWhat the reader sees
AutoThe viewer decides, based on the space available.
Page ActualThe PDF’s own 100% size.
Page FitOne whole page visible at a time. Suits presentations.
Page WidthThe page fills the viewer’s width. Suits narrow columns.
50% to 200%A fixed level, regardless of the viewer size.

Availability at a glance

OptionCustom PDFFlipbookSliderDefault
Reader ModeYesYesYes
Toggle ThumbnailsYesYesYes
Sidebar OpenYesYesYes
Horizontal ScrollbarYes
Load Latest VersionYesYesYes
Enable Full-Screen ButtonYesYesYes
On-Demand Page RenderingYesYesYes
Initial PageYesYesYes
Default ZoomYes

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

What the bar contains, and where it sits.
NameType / valuesDefaultDescription
Display File NameToggleOffShows 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 ButtonToggleOffAdds 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 PositionSelectToolbar (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

Theme and custom colors.
NameType / valuesDefaultDescription
Toolbar ThemeProSelectDark (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 ColorProColor#343434The bar's background color. Only applies while Theme is set to Custom.
Toolbar Text ColorProColor#ffffffThe 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

  1. Switch on Show Download Button here, on the Toolbar tab

    Switch on Show Download Button here, on the Toolbar tab.

  2. Set the label, behavior, limit and access rules under

    Set the label, behavior, limit and access rules under Download Management.

  3. 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.

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

Every option, with its default.
NameType / valuesDefaultDescription
Enable LightboxProToggleOffDisplays 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 TriggerProSelectDefault 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.

Fields for the default button trigger.
NameType / valuesDefaultDescription
Button TextProTextView DocumentThe button's label. Write it as an invitation, such as *Read the whitepaper* or *View certificate*, rather than a generic *Open*.
Button SizeProSelectMedium**Small**, **Medium**, **Large** or **Extra Large**, so the button sits naturally in your layout.
Button Text ColorProColor#ffffffThe label's color.
Lightbox Button BackgroundProColor#333333The 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.

Fields for the image trigger.
NameType / valuesDefaultDescription
Trigger ImageProUpload or URLEmptyThe image visitors click to open the document.
Image WidthProText300pxHow wide the image is, for example `300px` or `50%`. It scales down to fit smaller screens.
Image HeightProTextautoHow tall the image is, for example `auto` or `200px`. Use `auto` to keep the image's aspect ratio.
Image FitProSelectCover (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 RadiusProText8pxRounds the image's corners, for example `8px`, or `50%` for a circle.
AlignmentProSelectLeftThe image's horizontal position: **Left**, **Center** or **Right**.

Custom element trigger

Every option, with its default.
NameType / valuesDefaultDescription
Trigger CSS SelectorProTextEmptyThe 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

The button and its behavior.
NameType / valuesDefaultDescription
Download Button TextTextDownloadThe button's label, for example *Download Report*, *Grab your Copy* or *Save PDF*.
Download BehaviorSelectForce 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 FilenameTextEmptyThe 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 CountToggleOffDisplays the total number of times this document has been downloaded. It doubles as social proof on a popular file.
Download LimitSelectNo LimitHow 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

Download access control.
NameType / valuesDefaultDescription
Download AccessProSelectEveryoneWho 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 RolesProCheckboxesNoneThe roles that may download. It appears when Download Access is set to Specific Roles, and you can pick several.
Access Denied MessageProTextAccess DeniedShown 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

Every option, with its default.
NameType / valuesDefaultDescription
Email GateProToggleOffRequires 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 AccessView Access
WhereDownload ManagementAccess & Security
What it gatesThe download button onlyThe viewer itself
A restricted visitor seesThe document, with no download buttonYour message instead of the document
File URL in the pageStill presentNever 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

Every option on the Access & Security tab.
NameType / valuesDefaultDescription
View AccessProSelectEveryoneWho 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)ProCheckboxesNoneThe 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 MessageProTextThis 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 DeliveryProToggleOffServes 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

  1. 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.

  2. 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.

  3. Choose a Type: Note, Highlight, Link or Call to Action

    Choose a Type: Note, Highlight, Link or Call to Action.

  4. Set the position with the four sliders: Left (X %), Top

    Set the position with the four sliders: Left (X %), Top (Y %), Width (%) and Height (%).

  5. 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.

  6. 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

TypeLooks likeField to fillUse it for
NoteA small text panel on the pageContentAnnotations, corrections, translations, context
HighlightA translucent markerNothingDrawing the eye to a clause, a figure or a total
LinkAn invisible clickable areaLink URLMaking a logo, chart or footnote clickable
Call to ActionA styled prompt on the pageContentBook 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

Every field on an overlay row.
NameType / valuesDefaultDescription
Page NumberSelect or number1The 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.
TypeSelectNoteNote, Highlight, Link or Call to Action. Changing it swaps which content field appears below.
Left (X %)Slider10Distance from the page's left edge, 0 to 100, in steps of 0.5.
Top (Y %)Slider10Distance from the page's top edge, 0 to 100, in steps of 0.5.
Width (%)Slider30The overlay box's width as a share of the page, 1 to 100, in steps of 0.5.
Height (%)Slider12The overlay box's height as a share of the page, 1 to 100, in steps of 0.5.
Link URLTextEmptyWhere a Link overlay goes. The overlay becomes a transparent clickable area opening this URL. Link type only.
ContentTextareaEmptyThe 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

The two Performance & Reliability options.
NameType / valuesDefaultDescription
Auto-Fallback if Google Viewer Fails to LoadProToggleOnIf 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 EmbedProToggleOffHolds 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.

SituationTurn on
One long PDF, 50 pages or moreOn-Demand Page Rendering on the Custom PDF engine
Several documents on one pageLazy Load This Embed on each
A document near the bottom of a long pageLazy Load This Embed
A Google Drive or Dropbox fileAuto-Fallback and Enable Loading Icon
A file you replace oftenLoad 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

  1. Go to Document Embedder -> Document Library and click

    Go to Document Embedder → Document Library and click Add New Library.

  2. Give the library a name in the field beside Edit

    Give the library a name in the field beside Edit Document Library.

  3. On the Upload Items tab, add your files

    On the Upload Items tab, add your files.

  4. 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.

  5. 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.

shortcode
[document_library id="1896"]

Five tabs, working from the outside in

The tabs follow the layout of the rendered library, from the outside in.

TabStylesReference
Upload ItemsThe files themselves and their detailsUpload Items
HeaderThe title block at the topHeader
Toolbar BoxThe search, filter and sort stripToolbar Box
Document BoxEach individual file cardDocument Box
Library ContainerThe frame around all of it, and the gridLibrary 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

ButtonWhat it does
Upload From DeviceOpens your computer’s file picker and uploads the file. You can also drag files onto the drop zone.
Insert Using URLPaste 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 LibraryOpens 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.

The four fields on every library document.
NameType / valuesDefaultDescription
TitleTextThe filenameThe file's display name. It defaults to the filename, which is usually worth rewriting into something readable.
AuthorTextEmptyWho produced the document. Searchable from the front-end search box.
DescriptionTextEmptyA short summary shown on the card.
File SizeTextDetected on uploadThe 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.

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

What the header says.
NameType / valuesDefaultDescription
Show HeaderToggleOnWhether the header block appears at all. Turn it off when the surrounding page already has a heading.
Header TitleTextEmptyThe library's heading, for example *Product Datasheets* or *2026 Reports*.
Header DescriptionTextEmptyA line of supporting text beneath the title.
Header Text AlignSelectLeftLeft, Center or Right, for both the title and the description.

Styles

Header styling.
NameType / valuesDefaultDescription
Background ColorColorTheme defaultThe header block's background.
Title ColorColorTheme defaultThe heading's color.
Title TypographyTypographyTheme defaultFont family, size, weight, line height and letter spacing for the heading.
Description ColorColorTheme defaultThe supporting line's color.
Description TypographyTypographyTheme defaultFont 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

What the strip contains.
NameType / valuesDefaultDescription
Display Toolbar BoxToggleOnShows or hides the whole strip. Turning it off hides search, filter and sort together.
Display Search BoxToggleOnA text field that filters the library as the visitor types. It searches document titles, authors and tags.
Display Type Filter BoxToggleOnA 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 ByToggleOnA dropdown offering Name (A to Z), Name (Z to A), Date (Oldest), Date (Newest), Size (Smallest) and Size (Largest).

Styles

Toolbar styling.
NameType / valuesDefaultDescription
Background ColorColorTheme defaultThe strip's background.
Full Toolbar Box PaddingSpacingTheme defaultSpace 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

What each card shows.
NameType / valuesDefaultDescription
Display IconToggleOnShows a file-type icon on the card, with a distinct glyph for documents, images, video, audio and archives.
Display SizeToggleOnShows the file size on the card.
Display DateToggleOnShows the date on the card.

Download button

The download button on a card.
NameType / valuesDefaultDescription
Download ButtonToggleOnWhether each card carries a download button.
Display TextToggleOnShow a text label on the button. With it off the button is icon-only, which is tidier in a dense grid.
Download Button TextTextDownloadThe label, when Display Text is on.

View button

The view button on a card.
NameType / valuesDefaultDescription
Display View ButtonToggleOnWhether each card carries a view button, which opens the document in a popup viewer.
Display View Button TextToggleOnShow a text label rather than an icon alone.
View Button TextTextViewThe 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.

Card styling, set per Normal and Hover state.
NameType / valuesDefaultDescription
Background ColorColorTheme defaultThe card's background, per state.
Icon ColorColorTheme defaultThe file-type icon, per state.
File Title ColorColorTheme defaultThe document's title on the card, per state.
File Size ColorColorTheme defaultThe file size text, per state.
Date ColorColorTheme defaultThe date text, per state.
Box BorderBorderTheme defaultThe card's border: width, style and color.
Document Box PaddingSpacingTheme defaultSpace inside the card, per side.
Box Border RadiusSpacingTheme defaultHow rounded the card's corners are.
Download Button StylesColorsTheme defaultText Color and Background Color for the download button.
View Button StylesColorsTheme defaultText 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

The card grid.
NameType / valuesDefaultDescription
Document ColumnsNumber3How many cards sit side by side. Fewer, wider columns suit long titles; more columns suit a large collection.
Gap Between DocumentsSpacingTheme defaultThe space between cards, both across and down.

The frame

The container around the grid.
NameType / valuesDefaultDescription
Background ColorColorTheme defaultThe background behind the whole library.
Full Container PaddingSpacingTheme defaultSpace 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.

ColumnContains
IDThe submission’s reference number.
NameThe name the visitor entered.
EmailThe email address they entered, linked so you can mail them.
Document TitleWhich 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 AddressWhere the request came from. This is also what per-IP download limits count against.
DateWhen they submitted the form.

Finding a lead

The three ways to narrow the table.
NameType / valuesDefaultDescription
Search Email or NameTextEmptyMatches partial text in either field, so *sam* finds Samira and [email protected] alike.
Document filterFilterAll documentsNarrows 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 filterDateAll datesLimits 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

Export and bulk delete.
NameType / valuesDefaultDescription
Export DataButtonNoneDownloads 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 SelectedButtonNoneRemoves 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

ShortcodeDisplaysWhere to find the ID
[doc id="7"]A single documentUnder the title on the document edit screen, and in the Shortcode column of the document list
[document_library id="12"]A document libraryAt 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.

Every attribute [doc] accepts.
NameType / valuesDefaultDescription
idintegerNoneThe document ID. Required. Nothing renders without it, and a non-document ID renders nothing.
downloadyes / noThe document's settingOverrides **Show Download Button**.
download_labelstringThe document's settingOverrides **Download Button Text**.
download_positiontoolbar / belowThe document's settingOverrides **Toolbar Position**.
download_behaviordownload / newtabThe document's settingOverrides **Download Behavior**.
download_filenamestringThe document's settingOverrides **Custom Filename**.
download_limitintegerThe document's settingOverrides **Download Limit**. 0 means no limit.
show_countyes / noThe document's settingOverrides **Show Download Count**.
toolbar_themedark / light / customThe document's settingOverrides **Toolbar Theme**.
toolbar_bg_colorhex colorThe document's settingOverrides **Toolbar Background Color**. Applies while the theme is custom.
toolbar_text_colorhex colorThe document's settingOverrides **Toolbar Text Color**. Applies while the theme is custom.

Booleans accept yes, true or 1 for on, and no, false or 0 for off.

shortcode
[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]

The only attribute [document_library] accepts.
NameType / valuesDefaultDescription
idintegerThe 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
<?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.

RouteMethodWho can call it
/leads/<id>GETUsers with manage_options
/gate-downloadPOSTAnyone. This is the email gate submission.
/download/<id>GETAnyone. Access is checked inside the callback.
/stream/<id>GETAnyone with a valid token. This is Secure Document Delivery.
/page-countGETUsers 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

BlockWhat it does
Document EmbedA self-contained document with the full settings panel in the sidebar. No document post needed. See The Document Embed Block.
Document LibraryPlaces 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 inUse
The block editor, one-off embedThe Document Embed block
The block editor, a file used in several placesA document, placed with a Shortcode block
A page builderA document, placed by shortcode
The Classic EditorA document, placed by shortcode
A theme templatedo_shortcode(). See Shortcode Reference.

Was this page helpful?

Last updated 08/25/2026

Badge Icon Save 90%