Title: PDFGate – HTML to PDF
Author: PDFGate
Published: <strong>2026 年 10 月 12 日</strong>
Last modified: 2026 年 10 月 12 日

---

搜尋外掛

![](https://ps.w.org/pdfgate/assets/banner-772x250.png?rev=3742529)

![](https://ps.w.org/pdfgate/assets/icon.svg?rev=3742529)

# PDFGate – HTML to PDF

 由 [PDFGate](https://profiles.wordpress.org/pdfgate/) 開發

[下載](https://downloads.wordpress.org/plugin/pdfgate.1.0.0.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/pdfgate/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/pdfgate/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/pdfgate/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/pdfgate/#developers)

 [技術支援](https://wordpress.org/support/plugin/pdfgate/)

## 外掛說明

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

 * “Download as PDF” block for the block editor, with a custom label and alignment.
 * `[pdfgate_download]` shortcode for classic themes and page builders.
 * Optionally add the button automatically below every post, page or custom post
   type.
 * Two render modes: the public page as your theme shows it, or the post content
   alone with a clean print template.
 * Page size, orientation, margins, print media emulation, background printing and
   image loading settings.
 * Global header and footer HTML with page numbers, date, title and URL placeholders.
 * Optional fillable form fields: HTML inputs on the page become interactive PDF
   fields.
 * Generated PDFs are cached and reused until the post changes, so your API quota
   is spent once per edit, not once per visitor.
 * Per-visitor rate limiting protects your quota from bots.
 * API key stored encrypted. It can also be defined as the `PDFGATE_API_KEY` constant
   in `wp-config.php`.
 * Filters for developers to change the request, the template, the filename and 
   the button markup.

**Requirements**

A free PDFGate account and API key from [pdfgate.com](https://pdfgate.com). The 
free plan includes a monthly allowance of PDF generations; paid plans increase it.

### External service

This plugin sends content to the PDFGate API (https://api.pdfgate.com, or https://
api-sandbox.pdfgate.com for test keys) to render PDFs. Nothing is sent until a visitor
requests a PDF or an administrator runs the connection test.

Depending on the render mode, the request contains either the public URL of the 
post or the rendered HTML of the post content, together with your API key and the
site URL. PDFGate processes the request to produce the PDF and keeps a request log
for billing and abuse prevention. Documents are only stored on PDFGate servers if
storage is enabled in your PDFGate account settings.

 * [Terms of service](https://pdfgate.com/terms-of-use)
 * [Privacy policy](https://pdfgate.com/privacy-policy)

## 螢幕擷圖

[⌊The "Download as PDF" block in the editor.⌉⌊The "Download as PDF" block in the
editor.⌉[

The “Download as PDF” block in the editor.

[⌊The settings screen.⌉⌊The settings screen.⌉[

The settings screen.

[⌊A generated PDF next to the original page.⌉⌊A generated PDF next to the original
page.⌉[

A generated PDF next to the original page.

## 適用於區塊編輯器

這個外掛提供 1 個可供區塊編輯器使用的區塊。

 *   Download as PDF A button that downloads the current post or page as a PDF rendered
   by PDFGate.

## 安裝方式

 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.

## 常見問題集

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

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈PDFGate – HTML to PDF〉的開發相關工作。

參與者

 *   [ PDFGate ](https://profiles.wordpress.org/pdfgate/)

[將〈PDFGate – HTML to PDF〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/pdfgate)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/pdfgate/)、查看
[SVN 存放庫](https://plugins.svn.wordpress.org/pdfgate/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/pdfgate/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/pdfgate/)。

## 變更記錄

#### 1.0.0

 * Initial release: block, shortcode, automatic button, URL and content render modes,
   caching and rate limiting.

## 中繼資料

 *  版本 **1.0.0**
 *  最後更新 **2 天前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 6.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **7.1.3**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/pdfgate/)
 * 標籤:
 * [download pdf](https://tw.wordpress.org/plugins/tags/download-pdf/)[export](https://tw.wordpress.org/plugins/tags/export/)
   [html to pdf](https://tw.wordpress.org/plugins/tags/html-to-pdf/)[pdf](https://tw.wordpress.org/plugins/tags/pdf/)
   [print](https://tw.wordpress.org/plugins/tags/print/)
 *  [進階檢視](https://tw.wordpress.org/plugins/pdfgate/advanced/)

## 評分

這個項目尚無任何評論記錄。

[撰寫評分](https://wordpress.org/support/plugin/pdfgate/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/pdfgate/reviews/)

## 參與者

 *   [ PDFGate ](https://profiles.wordpress.org/pdfgate/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/pdfgate/)