[WordPress] 外掛分享: PDF Snapshot

首頁外掛目錄 › PDF Snapshot
WordPress 外掛 PDF Snapshot 的封面圖片
全新外掛
安裝啟用
尚無評分
2 天前
最後更新
問題解決
WordPress 6.3+ PHP 7.4+ v1.0.1 上架:2026-07-26

內容簡介

PDF Snapshot 外掛為您的文章和頁面新增「下載 PDF」按鈕,讓訪客可以輕鬆將頁面轉換為 PDF 檔案,並選擇預覽或立即下載,提升使用者體驗。

【主要功能】
• 兩種捕捉模式:完整主題頁面或僅標題與內容
• 自訂排除區域:標頭、導航、頁尾等
• 可配置的預覽彈出視窗及下載選項
• 支援短碼、Gutenberg 區塊及自動注入
• 可配置的紙張大小與方向
• 內建快取功能,僅在內容變更時重新生成 PDF

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「PDF Snapshot」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

PDF Snapshot adds a “Download PDF” button to your posts and pages. When a visitor clicks it, the plugin captures the page, converts it to a PDF, and either shows a preview popup (with Print and Download buttons) or downloads it immediately — your choice.
Key features

Two capture modes: the full themed page (with excluded sections removed), or just the title and post content.
Choose exactly which sections to exclude: header, navigation, footer, sidebars, comments, and any CSS selector you specify (e.g. .newsletter-signup or #related-posts) to identify additional elements to remove from the PDF.
Preview popup with Print and Download actions, or immediate download — configurable.
Available as a shortcode ([pdf_snapshot]), a Gutenberg block, and optional automatic injection into all posts and/or pages.
PDF-native running header (page title) and footer (page numbers), independent of the page’s own HTML header/footer.
Configurable paper size and orientation.
Automatic image downscaling to keep generation fast.
Built-in caching: a page’s PDF is only regenerated when its content actually changes.
Access control (public or logged-in users only) and a configurable rate limit to prevent abuse.

How it works
Version 1.0 generates PDFs entirely on your own server using the open-source Dompdf library — no external service, no added monthly cost, works on ordinary WordPress hosting. This means very JavaScript-heavy embeds (like some interactive maps or live widgets) may not appear in the PDF exactly as they do on screen; ordinary text, images, and layout convert reliably.
Third-Party Libraries
PDF Snapshot bundles Dompdf (LGPL-2.1) to generate PDFs entirely on your own server, along with its own dependencies (php-svg-lib, php-font-lib, php-css-parser, masterminds/html5, thecodingmachine/safe — all LGPL/MIT licensed). No external service or API call is used for PDF generation.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon