Title: DocRenders – PDF Download Button
Author: jwhist
Published: <strong>2026 年 6 月 13 日</strong>
Last modified: 2026 年 6 月 13 日

---

搜索插件

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

![](https://ps.w.org/docrenders/assets/icon-256x256.png?rev=3571415)

# DocRenders – PDF Download Button

 作者：[jwhist](https://profiles.wordpress.org/jwhist/)

[下载](https://downloads.wordpress.org/plugin/docrenders.1.0.2.zip)

 * [详情](https://cn.wordpress.org/plugins/docrenders/#description)
 * [评价](https://cn.wordpress.org/plugins/docrenders/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/docrenders/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/docrenders/#developers)

 [支持](https://wordpress.org/support/plugin/docrenders/)

## 描述

DocRenders lets your visitors download a clean, print-ready PDF of any post or page
with a single click. Connect your [DocRenders](https://docrenders.com) API key, 
place the button with a shortcode or Gutenberg block, and you’re done.

**Features**

 * One-click PDF download for posts, pages, or any custom post type
 * Shortcode `[docrenders_pdf]` — drop it anywhere in your content
 * **Gutenberg block** — insert the PDF button from the block inserter
 * Configurable button label and placement
 * Usage meter in the settings page so you always know where you stand
 * Free plan includes a small “PDF generated by DocRenders” footer; upgrade to remove
   it

**WooCommerce (optional)**

When WooCommerce is active, a separate settings section appears that lets you automatically
attach a PDF invoice to the customer-completed-order email.

**How it works**

DocRenders sends your post HTML to the DocRenders rendering service and streams 
the resulting PDF directly to the visitor’s browser — no files are stored on your
server.

A free API key is available at [docrenders.com](https://docrenders.com).

### External services

This plugin connects to the DocRenders API to generate PDFs. No PDF files are stored
on your server — they are streamed directly to the visitor’s browser.

**Endpoints used:**

 * `/render` — called whenever a visitor clicks the PDF download button or a WooCommerce
   invoice is generated. Sends the post/page HTML (or invoice data) and your API
   key.
 * `/usage` — called periodically from the admin settings page to display your monthly
   render count. Sends only your API key.

**Data sent:** post or page HTML content, invoice field values (shop name, address,
order details), API key (as a Bearer token), and optional rendering options (page
format, margins).

This service is provided by DocRenders.
 Terms of Service: https://docrenders.com/
terms Privacy Policy: https://docrenders.com/privacy

## 区块

该插件提供了 1 个区块.

 *   PDF Download Button Adds a Download PDF button that generates a PDF of this
   post or page.

## 安装

 1. Upload the `docrenders` folder to `/wp-content/plugins/`, or install directly from
    the WordPress Plugin Directory.
 2. Activate the plugin from the **Plugins** screen.
 3. Go to **Settings  DocRenders** and paste your API key.
 4. Add `[docrenders_pdf]` to any post or page, or insert the **PDF Download Button**
    block from the Gutenberg block inserter.

## 常见问题

### Do I need an account?

Yes. A free account at [docrenders.com](https://docrenders.com) gives you an API
key and a monthly render allowance.

### What does the free plan include?

The free plan includes a set number of PDF renders per month. Generated PDFs include
a small “PDF generated by DocRenders” footer. Upgrading to a paid plan removes the
footer and increases your render limit.

### Does this work with page builders?

The shortcode `[docrenders_pdf]` works wherever shortcodes are supported. The Gutenberg
block works in the standard WordPress editor.

### Does this work with WooCommerce?

Yes. When WooCommerce is active, an optional invoice section appears in the settings.
You can attach a PDF invoice to the customer-completed-order email automatically.

### Are PDFs stored on my server?

No. PDFs are streamed directly to the visitor’s browser. Nothing is written to your
server’s filesystem.

### Which PHP version is required?

PHP 8.1 or higher.

## 评价

此插件暂无评价。

## 贡献者及开发者

「DocRenders – PDF Download Button」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「DocRenders – PDF Download Button」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/docrenders)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/docrenders/)，查看[SVN仓库](https://plugins.svn.wordpress.org/docrenders/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/docrenders/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/docrenders/)。

## 更新日志

#### 1.0.2

 * Removed custom CSS field per WordPress.org plugin review guidelines.
 * Added external services documentation (Terms of Service and Privacy Policy links).
 * Added jwhist to Contributors list.

#### 1.0.0

 * Initial release.

## 额外信息

 *  版本 **1.0.2**
 *  最后更新：**1 周前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.2 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 8.1 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/docrenders/)
 * 标签
 * [download](https://cn.wordpress.org/plugins/tags/download/)[invoice](https://cn.wordpress.org/plugins/tags/invoice/)
   [pdf](https://cn.wordpress.org/plugins/tags/pdf/)[print](https://cn.wordpress.org/plugins/tags/print/)
   [woocommerce](https://cn.wordpress.org/plugins/tags/woocommerce/)
 *  [高级视图](https://cn.wordpress.org/plugins/docrenders/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/docrenders/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/docrenders/reviews/)

## 贡献者

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

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/docrenders/)