Linux 软件免费装
Banner图

PDFGate – HTML to PDF

开发者 pdfgate
更新时间 2026年10月13日 05:28
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

pdf print export html to pdf download pdf

下载

1.0.0

详情介绍:

PDFGate turns any post, page or custom post type into a PDF with one click. The rendering happens on the PDFGate API using a headless Chromium engine, so what your visitors download matches what they see on screen: web fonts, CSS grid, background images, embedded charts and all. Features Requirements A free PDFGate account and API key from pdfgate.com. The free plan includes a monthly allowance of PDF generations; paid plans increase it.

安装:

  1. Install and activate the plugin.
  2. Create an API key at https://dashboard.pdfgate.com/settings/api-keys.
  3. Go to Settings → PDFGate, paste the key and click "Test connection".
  4. Add the "Download as PDF" block to a post, use the [pdfgate_download] shortcode, or enable "Add automatically" for your post types.

屏幕截图:

  • The settings screen.
  • A generated PDF next to the original page.

升级注意事项:

1.0.0 Initial release.

常见问题:

Does this work on a local or password-protected site?

The "Public page URL" render mode needs PDFGate to fetch your page, so the site must be reachable from the internet and the post must be public. Switch to "Post content" mode for local development, staging sites behind a login, or drafts.

How do I hide an element from the PDF?

In URL mode, add the CSS class pdfgate-hide to any element, or target the pdfgate-render body class in your stylesheet. The download button itself is always hidden.

How many API requests does a download use?

One per post per edit. The generated file is cached in wp-content/uploads/pdfgate and served from there until the post is updated, the settings change, or a day passes. Visitors are also limited to ten fresh generations per minute. Developers can change both with the pdfgate_cache_ttl and pdfgate_rate_limit filters.

Can I add a header or footer, or change any other option?

Yes. Use the pdfgate_generate_payload filter to set any option documented at https://pdfgate.com/documentation/generate-pdf, for example header, footer, css or javascript.

Where is the API key stored?

Encrypted in the WordPress options table, using a key derived from your site's authentication salts. You can instead define PDFGATE_API_KEY in wp-config.php, in which case the settings page becomes read-only for the key.

更新日志:

1.0.0