Linux 软件免费装
Banner图

PDF Snapshot – PDF Generator for Posts & Pages

开发者 saumya010
更新时间 2026年9月25日 23:43
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPL v2 or later
版权网址: 版权信息

标签

pdf print print button print friendly pdf download

下载

1.0.8 1.0.1 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7

详情介绍:

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

安装:

  1. Upload the pdf-snapshot folder to /wp-content/plugins/, or install it through the Plugins screen directly.
  2. If installing from source (not a release zip), run composer install inside the plugin directory to fetch the Dompdf library.
  3. Activate the plugin through the "Plugins" screen in WordPress.
  4. Visit Settings → PDF Snapshot to configure capture, delivery, layout, and access settings.
  5. Add the [pdf_snapshot] shortcode to a page, insert the "PDF Snapshot Button" block, or enable automatic injection in the settings.

屏幕截图:

  • Settings screen — Delivery and layout options.
  • Front-end preview popup with Print/Download actions.

升级注意事项:

1.0.8 Search tags only — no functional changes. 1.0.7 Fixes post titles with & or quote characters showing as raw entity codes (e.g. &) in the PDF heading, document title, and page header. Recommended if any of your page titles contain these characters. 1.0.3 Large/image-heavy pages now generate faster and no longer risk timing out, and "Full themed page" PDFs no longer look unstyled or overflow the page — they now correctly match your live site. 1.0.2 Fixes "Full themed page" capture showing restricted/paywall content to authorized members, and fixes some cases where the PDF could render blank, when a membership plugin like MemberPress is active. Update recommended if you use any content-restriction plugin. 1.0.0 Initial release.

常见问题:

Can visitors save a page or export a post to PDF themselves?

Yes — that's the plugin's whole purpose. Once the "Download PDF" button is added (via shortcode, block, or automatic injection), any visitor can click it to save the page as a PDF or download it immediately, without needing an account or leaving the site.

Does this work on shared hosting?

Yes. Version 1.0 uses a pure-PHP PDF library (Dompdf) with no external dependencies beyond what Composer installs — no Node.js, no headless browser, no server configuration needed.

Will embedded videos, maps, or interactive widgets show up in the PDF?

Not reliably. The PDF engine does not execute JavaScript, so content that depends on it (some embeds, live widgets) may appear blank or be omitted. Ordinary content — text, images, tables, links — converts well.

Can I control what's included in the PDF?

Yes. Settings → PDF Snapshot lets you exclude the header, navigation, footer, sidebars, and comments, plus specify additional CSS selectors (e.g. .newsletter-signup) to identify any other elements that should be removed from the generated PDF. These selectors only pick which elements to strip — no CSS, JavaScript, or PHP code is ever saved or executed.

Where are generated PDFs stored?

In wp-content/uploads/pdf-snapshot-cache/, if caching is enabled. Cached PDFs are automatically cleared when the source post is updated.

更新日志:

1.0.8 1.0.7 1.0.6 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0