VibeFox PDF Viewer — Help
Requirements
WordPress: 6.0 or later.
PHP: 8.0 or later.
Page builders (optional): WPBakery Page Builder or Elementor for their elements. The Gutenberg block and the shortcode work without them.
VibeFox license key: bought on vibefox.net. One key works on one domain.
Installation
1. In WordPress go to Plugins > Add New > Upload Plugin, choose the plugin ZIP file and click Install Now. You can also upload the vf_pdf_viewer folder to /wp-content/plugins/ by FTP.
2. Click Activate. WordPress opens VF PDF Viewer > Settings > License. Paste your VibeFox license key into License key and click Activate. Until the key is active the plugin stays switched off and its menu shows only Settings (see License key).
3. Once the key is active, the menu VF PDF Viewer appears with the pages Dashboard, Presets and Settings.
4. Open VF PDF Viewer > Settings and choose the defaults.
5. Insert a PDF with the "VibeFox PDF Viewer" block, the WPBakery or Elementor element, or the shortcode [vf_pdf_viewer id="…"]. The attachment details of a PDF in the Media Library show its ready shortcode.
Configuration
All settings are on VF PDF Viewer > Settings; the sections are listed on the left. Click Save Changes to save them. The settings are the defaults; every embed can override them.
General
Default mode:
Default width: a CSS width such as 100% (default), 800px or 90vw.
Default height: a CSS height such as 600px (default) or 80vh. Lightbox and Fullscreen use the window size.
Default zoom: Auto (fit width, not larger than 150%) (default), Fit page, Fit width, or 50–300%.
Default theme: Light (default), Dark, Auto (follows the visitor's system setting) or Custom (colours from Branding > Custom colours).
Toolbar colour scheme: None (theme colours) (default), Ocean, Forest, Sunset, Royal, Slate or Crimson.
Remember last page: reopen a document on the page where the visitor stopped (stored in the browser). Default: on.
Open PDF links in the viewer: links to .pdf files in post content open in a lightbox viewer. Default: off. Add the class no-vf-pv to a link to keep it as a normal link.
Toolbar
Position: Top (default), Bottom, Top & bottom, Show on hover (always visible on touch screens) or Hidden.
Style: Full (default), Compact, Minimal (transparent) or Floating (over the bottom of the pages).
Icon size: Small, Medium (default) or Large.
Visible buttons: Download, Print (prints the rendered pages with the watermark), Fullscreen, Search (PDFs with a text layer, not scans), Thumbnails, Table of contents (bookmarks stored in the PDF) and Rotate are on by default; Share (Facebook, X, WhatsApp, Telegram, LinkedIn, e-mail, copy link) and Read aloud (browser text-to-speech) are off.
Security
To display a PDF the browser must download it, so no web viewer can make a public PDF impossible to save. These options hide the file address, limit who can open it and discourage copying.
Copy protection:
It is a deterrent for casual visitors, not DRM.
Logged-in users only: guests see "Please log in" instead of the document. Default: off.
Allowed roles: empty = everyone. Administrators always have access.
Secure delivery: stream Media Library PDFs through a signed link instead of the /wp-content/uploads/ address. The link is bound to the visitor, expires after 7–14 days, re-checks the rules above and refuses requests from other websites (hotlinking). Default: off.
Watermark
Watermark text: per language; empty = no watermark. Variables: {username}, {name}, {email}, {date}, {site_name}, {ip}. Painted into the page images on screen and in print, not into the downloaded file.
Position: Center, Diagonal (default) or Tile (repeat).
Colour: default #cccccc. Opacity: 5–100 %, default 20 %. Font size: 12–120 pt, default 48 pt; relative to the page (an A4 page is 595 pt wide), so it scales with the zoom.
Analytics
Collect statistics: views, downloads, prints, read depth and device type. Default: on. IP addresses are stored anonymized.
Google Analytics ID: when the site already loads the Google tag (gtag.js), the events vf_pv_view, vf_pv_download and vf_pv_print are sent to this property. The plugin does not add the Google tag itself.
Branding
Toolbar logo: shown at the left of the top toolbar, about 24 px high. Logo link: where the logo leads.
Custom colours (used by the Custom theme): Page background (#f5f5f5), Toolbar (#333333), Icons (#ffffff), Hover (#0066ff), Active / accent (#0066ff), Text (#ffffff), Border (#444444).
Performance
Mozilla PDF.js is bundled with the plugin and served from your site; it is loaded only on pages with a viewer.
Lazy loading: start PDF.js and download the document only when the viewer scrolls into view. Default: on.
Prefetch pages: pages rendered ahead of the visible one, 0–10. Default: 2. Pages far from the visible area are released to save memory.
Sharpness on phones: a multiplier of the screen pixel density on screens under 768 px, 0.5–2. Default: 1. Lower is faster and uses less memory, higher is sharper.
Advanced
Custom CSS: added on pages with a viewer.
Custom JavaScript: runs after the viewer script on pages with a viewer (without <script> tags). Only users allowed to post unfiltered HTML can change it.
Logging
Enable log: write plugin events to a protected log file. Default: off. Log level: Errors only (default), Warnings and errors, or Everything. The last 500 lines are shown below.
Uninstall & Clear
Delete data on uninstall: remove settings, presets, statistics and logs when the plugin is deleted. Deactivating the plugin never deletes anything. Default: off.
Cleanup buttons, each with the number of records: Delete all presets (embeds that use a preset fall back to the global settings), Delete statistics and Clear log.
License, Status, Import / Export
License holds the license block (see License key). Status shows the multilingual provider and site languages, and your PHP and WordPress versions. Import / Export saves the settings to a JSON file and loads them on another site.
How it works
Loading: with lazy loading, PDF.js and the document load only when the viewer scrolls into view, and only the visible pages are rendered, sharp on Retina / HiDPI screens. While loading, visitors see "Loading document…".
Standard viewer: continuous pages with the toolbar: previous and next page, a page number field, zoom (auto, fit page, fit width, 25–500 %), pinch-to-zoom on touch screens, Ctrl + mouse wheel or trackpad pinch, and rotation. Search highlights matches with match navigation. The sidebar shows lazily rendered thumbnails and the PDF table of contents. Scrolling can be vertical, horizontal or wrapped (grid), with single pages or two-page spreads.
FlipBook: a two-page book with a cover, 3D page turn in both directions, swipe, click or keyboard, optional autoplay and page-turn sound; one page on narrow screens; right-to-left books.
Lightbox: a button, link or image opens the viewer in a popup; nothing is downloaded before the click. Fullscreen: a button opens the viewer over the whole window. Minimal: pages only.
Reading: links inside the PDF are clickable (web links and links to other pages), text is selectable unless protection blocks it. Keyboard: arrows, Page Up / Down, Space, Home / End, + / − zoom, Ctrl + F search. Deep links: ?pdf_page=5 opens page 5. Password-protected PDFs ask for the password. Print renders the pages with the watermark. Read aloud uses the browser's text-to-speech.
Access: guests see Please log in to view this document. with a Log in link when the document is for logged-in users; users without an allowed role see You do not have permission to view this document.
Statistics: a view is counted when a visitor opens a page with an embedded PDF; downloads, prints and the furthest page reached (read depth) are recorded too. Statistics are sent without a nonce, so they work with page caching; the input is validated, events from other websites are refused and each visitor IP is limited per hour.
Multilingual: the watermark text can be set per language with WPML, Polylang or qTranslate-XT.
Dashboard and presets
Dashboard: views, downloads, prints and read depth for 7 days, 30 days, 90 days, all time or a custom period; views per day; device types (desktop, tablet, mobile); and the documents with their numbers. Export CSV downloads the data, Reset statistics deletes it.
Presets: save a combination of mode, size, zoom, theme, colour scheme, toolbar, buttons, scrolling, spreads, FlipBook autoplay and sound, protection and watermark once and reuse it on any page. Every option can stay at the global setting. Copy shortcode gives [vf_pdf_viewer id="…" preset="slug"]. A deleted preset makes its embeds fall back to the global settings.
Shortcode, block and page builders
Shortcode examples: [vf_pdf_viewer id="123"], [vf_pdf_viewer url="https://example.com/file.pdf" mode="flipbook" height="700px"], [vf_pdf_viewer id="123" mode="lightbox" lightbox_text="Read the brochure"].
Attributes (all optional; empty = global setting): id, url, mode (standard, flipbook, fullscreen, lightbox, minimal), width, height, page, zoom (auto, fit-page, fit-width, 10–500), toolbar (top, bottom, both, hover, none), toolbar_style (full, compact, minimal, floating), icon_size, theme (light, dark, auto, custom), color_scheme (ocean, forest, sunset, royal, slate, crimson), bg_color, download, print, fullscreen, search, thumbnails, toc, rotation, share, tts (true/false), protect (none, basic, advanced), right_click, copy (true/false), watermark (text or none), watermark_pos (center, diagonal, tile), scroll_mode (vertical, horizontal, wrapped), spread (none, odd, even), autoplay, autoplay_interval (seconds), flip_sound, remember_page, rtl, lightbox_trigger (button, link, image), lightbox_text, lightbox_image, logo, logo_link, preset, class.
Gutenberg: the "VibeFox PDF Viewer" block with a Media Library picker. WPBakery: an element in the VibeFox category. Elementor: a widget in the VibeFox category with dynamic tags for the file. Every option offers "Global setting".
REST API: /wp-json/vf-pdf-viewer/v1/stats, /stats/top, /stats/daily and /presets for administrators.
License key
VibeFox license key: bought on vibefox.net. One key works on one domain.
The plugin works only with an activated key. Without it the plugin is switched off: its features, shortcodes, blocks, admin pages, scheduled tasks and e-mails do not run, and its menu shows only Settings with the License tab. Your settings and data are kept and come back as soon as a key is activated. Right after you activate the plugin in Plugins, WordPress opens this tab.
Open VF PDF Viewer > Settings > License, paste the key into License key and click Activate. The plugin switches on at once (the page reloads). The block License — VibeFox PDF Viewer then shows the masked key, the status Active until with the date and the domain, the buttons Check now, Change key, Remove key and the link Manage licenses and domains in your account.
Messages under the field: The key looks incomplete — copy the whole key from your account. (nothing is sent), Key not found. Check that you copied the whole key from your account., This key belongs to another product. (use the key bought for VibeFox PDF Viewer) and Domain limit reached (free a slot for this domain in your account, then click Check now). After the site address changes, click Check now.
An expired license keeps the plugin working, but without updates and support. Remove key switches the plugin off on this site; the domain slot is freed only in your vibefox.net account. If the license server cannot be reached, the plugin keeps working on the last known status. When the plugin is deleted, the key and its status are always removed.
Troubleshooting
The plugin menu shows only Settings: the license key is not active. Open VF PDF Viewer > Settings > License and click Activate (or Check now if a key is already entered); the messages under the field are explained in License key.
Visitors can still download a protected PDF: a browser can only display a PDF after downloading it. For confidential documents combine Logged-in users only or Allowed roles with Secure delivery, hide the Download button and block direct access to PDFs on the server.
Blocking direct access to PDFs in uploads: with Secure delivery on, the viewer no longer needs the uploads address. On Apache you can deny direct requests in wp-content/uploads/.htaccess with a FilesMatch rule for \.pdf$ ("Require all denied"); on Nginx with a deny rule for .pdf files in /wp-content/uploads/. This also blocks ordinary links to PDF files, so use it only if every PDF is shown through the viewer.
A PDF from another website does not open: "The file may have been moved, or another website does not allow embedding it." The other server must allow cross-origin requests (CORS). Upload the file to your Media Library instead.
"This link has expired. Please reload the page.": a secure delivery link expired; reloading creates a new one.
Search finds nothing: search works on the text layer of the PDF. Scanned documents contain only images — run them through OCR first.
Page caching: works. Statistics are sent without a nonce, and secure delivery links stay valid for 7–14 days.
Other messages: No PDF file specified., The PDF file was not found in the Media Library., The selected file is not a PDF document., This file is damaged or is not a PDF document., The PDF viewer could not be started in this browser.
For developers: the filter vf_pv_track_limits changes the hourly limit of statistics per visitor IP. The log is logs/vf_pv_debug.php in the plugin folder, a PHP file with a guard and a deny-all .htaccess, not readable from the web.
Uninstall
Deactivating the plugin never deletes anything. To remove it, deactivate and delete it on the Plugins page. The license key and license status of this plugin are always removed. Settings, presets, statistics and logs are removed only if Delete data on uninstall was on. Otherwise they stay for a later re-install. Your PDF files in the Media Library are never deleted.
Mozilla and PDF.js, Google Analytics, Elementor, WPBakery, Facebook, X, WhatsApp, Telegram and LinkedIn are trademarks of their respective owners. This plugin is not affiliated with or endorsed by them.
