Description
Sacred PDF Viewer turns any PDF into a clean, in-page reading experience — one shortcode, no add-ons required, and nothing loaded from a third‑party service. Visitors read your documents right on the page instead of downloading a file or being bounced to a browser plugin, and search engines can still read every word inside the PDF.
Perfect for study notes, guides, whitepapers, reports, brochures, e‑books, datasheets, question banks and any document you want people to actually read on your site.
Why you’ll like it
- One-shortcode simple. Drop
[sacredpdf url="…"]into any post, page or widget and you’re done. - Reads on your site, not off it. The PDF renders in the browser with page navigation, zoom, fit‑width and true fullscreen — visitors never leave.
- Genuinely SEO‑friendly. Most PDF viewers paint pixels a crawler can’t read. Sacred PDF Viewer extracts the document’s real text and attaches it as the viewer’s accessible, crawlable fallback — invisible to visitors, indexable by Google.
- View‑only when you need it. Hide the download button, block right‑click “save”, and strip download links for the roles you choose, so premium documents stay on the page.
- Fast and self‑hosted. Every script is bundled and served from your own domain. No API keys, no external calls, no tracking.
- Optional highlighting. Let chosen roles highlight PDF text with colours and notes — saved per user and restored on their next visit (add‑on, see below).
Key features
- Clean inline viewer: previous/next page, zoom in/out, fit‑width and fullscreen.
- Search‑engine readable text. The viewer draws PDFs on a
<canvas>(pixels, not text), so the plugin extracts the PDF’s text and adds it as the canvas’s accessible / crawlable fallback. Extraction usespdftotext(poppler‑utils) server‑side when available for best quality; otherwise it falls back to in‑browser extraction with PDF.js — automatically. Results are cached per file, so it works on any host. - Per‑role download control. Choose which audiences get no Download button, no right‑click “save image” and no download links, keeping a PDF view‑only for them.
- Optional PDF text highlighting (add‑on). Selected roles can select text on the PDF and highlight it with colours and notes, exactly like highlighting a normal post. Highlights are saved per user and restored on the next visit.
- Download with or without highlights. When a PDF has highlights, the download button offers both the original file and a copy with the highlights burned in.
- Works with any publicly reachable PDF URL — from your Media Library or elsewhere.
- Lightweight settings screen with tidy tabs: Viewer, SEO & Text, Downloads, and Highlight & Annotate.
Add PDF highlighting with Highlite Pro
The highlighting and annotation features are powered by our companion plugin, Highlite Pro. Sacred PDF Viewer works perfectly on its own; if you also install and activate Highlite Pro, a highlight toolbar appears on your PDFs so readers can mark up passages with colours and personal notes — great for course notes, legal documents, research and study material. You choose exactly which user roles are allowed to highlight, and the plugin will even offer a one‑click “Activate Highlite Pro” button once it’s installed. Highlite Pro is entirely optional.
Usage
Embed a PDF with either form:
[sacredpdf url="https://example.com/file.pdf"]
[sacredpdf]https://example.com/file.pdf[/sacredpdf]
Then visit Settings Sacred PDF Viewer to fine‑tune SEO text extraction, download restrictions and highlighting.
Privacy & third‑party libraries
Sacred PDF Viewer makes no external requests — it does not contact any third‑party API, CDN or analytics service, and it sets no cookies of its own. Two open‑source libraries are bundled locally and served from your site:
Screenshots








Installation
- In your dashboard go to Plugins Add New, search for “Sacred PDF Viewer”, then click Install Now and Activate. (Or upload the
sacred-pdf-viewerfolder to/wp-content/plugins/and activate it from the Plugins screen.) - Go to Settings Sacred PDF Viewer to configure SEO text extraction, download restrictions and highlighting.
- Add
[sacredpdf url="https://your-site.com/file.pdf"]to any post or page and publish. - (Optional) Install and activate Highlite Pro to enable PDF text highlighting, then pick the allowed roles under Settings Sacred PDF Viewer Highlight & Annotate.
FAQ
-
Does the PDF text get indexed by search engines?
-
Yes — as long as “Embed PDF text” is enabled (it is by default). The extracted text is added as the viewer’s accessible fallback: invisible to visitors, readable by crawlers. If your server has
pdftotext(poppler‑utils) the text is extracted server‑side for best quality; otherwise the plugin extracts it in the browser with PDF.js and caches it automatically when you save a post that contains a PDF. -
Can I stop people downloading the PDF?
-
You can hide the Download button, disable the right‑click “save image” option and remove the download links for the roles you choose. Please note that a browser‑rendered PDF is still fetched to the visitor’s device, so a determined user could retrieve it with developer tools. Truly un‑bypassable blocking would require streaming the file through an access‑checked proxy — this plugin focuses on removing the easy download paths for the audiences you select.
-
Does the plugin call any external service?
-
No. Every script is bundled with the plugin and served from your own site. There are no API keys, no CDNs and no tracking.
-
What do I need for highlighting?
-
The companion Highlite Pro plugin must be installed and activated. Then choose the roles allowed to highlight in Settings Sacred PDF Viewer Highlight & Annotate. Sacred PDF Viewer works fully without it — highlighting is simply an optional add‑on.
-
Which PDFs can I embed?
-
Any PDF reachable by URL — typically one you’ve uploaded to your Media Library, but any publicly accessible PDF link works.
-
Will it slow down my site?
-
The viewer scripts load only on pages that actually contain a
[sacredpdf]shortcode, so pages without a PDF are unaffected.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Sacred PDF Viewer” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Sacred PDF Viewer” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.0
- Initial release.
