| 开发者 | sacredwp |
|---|---|
| 更新时间 | 2026年8月3日 00:08 |
| PHP版本: | 7.2 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[sacredpdf url="…"] into any post, page or widget and you're done.<canvas> (pixels, not text), so the plugin extracts the PDF's text and adds it as the canvas's accessible / crawlable fallback. Extraction uses pdftotext (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.[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:
sacred-pdf-viewer folder to /wp-content/plugins/ and activate it from the Plugins screen.)[sacredpdf url="https://your-site.com/file.pdf"] to any post or page and publish.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.
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.
No. Every script is bundled with the plugin and served from your own site. There are no API keys, no CDNs and no tracking.
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.
Any PDF reachable by URL — typically one you've uploaded to your Media Library, but any publicly accessible PDF link works.
The viewer scripts load only on pages that actually contain a [sacredpdf] shortcode, so pages without a PDF are unaffected.