Title: Embed PDF for WPForms
Author: Corey Salzano
Published: <strong>2023 年 11 月 25 日</strong>
Last modified: 2025 年 9 月 18 日

---

搜索插件

![](https://ps.w.org/embed-pdf-wpforms/assets/banner-772x250.jpg?rev=3001560)

![](https://ps.w.org/embed-pdf-wpforms/assets/icon.svg?rev=3001560)

# Embed PDF for WPForms

 作者：[Corey Salzano](https://profiles.wordpress.org/salzano/)

[下载](https://downloads.wordpress.org/plugin/embed-pdf-wpforms.1.1.6.zip)

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

 [支持](https://wordpress.org/support/plugin/embed-pdf-wpforms/)

## 描述

Embed PDF for WPForms provides a PDF Viewer field type. Include PDF files in forms
without requiring users to download the PDF. Supports multi-page documents for PDF
flipbooks in WPForms. Provides zoom controls.

#### Features

 * Drag a PDF Viewer field onto any WPForm
 * Choose PDF from Media Library or provide local URL
 * Set default zoom level
 * Supports multi-page PDFs
 * Supports Dynamic Population

#### Demo

[https://breakfastco.xyz/embed-pdf-for-wpforms/](https://breakfastco.xyz/embed-pdf-for-wpforms/)

Have an idea for a new feature? Please create an Issue on Github or Support Topic
on wordpress.org.

## 屏幕截图

 * [[
 * Screenshot of a PDF embedded in a WPForm.
 * [[
 * Screenshot of a PDF Viewer field type in the WPForms form builder.
 * [[
 * Screenshot of the form builder sidebar showing the PDF Viewer field settings.

## 安装

 1. Search for Embed PDF for WPForms in the Add New tab of the dashboard plugins page
    and press the Install Now button
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Open the form editor through the ‘WPForms’ menu in WordPress
 4. Add a ‘PDF Viewer’ field from the Standard Fields tab in the form editor.

#### pdfjs-dist package

This plugin includes https://www.npmjs.com/package/pdfjs-dist, which contains combined
and minimized scripts built by the `gulp dist` command in https://github.com/mozilla/
pdf.js. No unusual or additional action is required to download or install this 
plugin. If you wish to obtain the unminimized scripts or build pdfjs-dist yourself,
use these commands:

git clone https://github.com/mozilla/pdf.js
 cd pdf.js npm install gulp dist

## 常见问题

### How can I suggest a new feature for this plugin?

Please create an [Issue on Github](https://github.com/breakfastco/embed-pdf-wpforms/issues)
or Support Topic on wordpress.org.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Embed PDF for WPForms」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Corey Salzano ](https://profiles.wordpress.org/salzano/)

「Embed PDF for WPForms」插件已被翻译至 4 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/embed-pdf-wpforms/contributors)
为本插件所做的贡献。

[帮助将「Embed PDF for WPForms」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/embed-pdf-wpforms)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.1.6

 * [Fixed] Bug fixes for uploading PDFs in the form builder.

#### 1.1.5

 * [Fixed] Bug fix to suppress the notice “Function _load_textdomain_just_in_time
   was called incorrectly.”

#### 1.1.4

 * [Added] Includes all translation files in a folder /languages.
 * [Changed] Bumps tested up to version to 6.7.1.

#### 1.1.3

 * [Fixed] Adds compatibility with language packs for translation. For real this
   time.

#### 1.1.2

 * [Fixed] Adds compatibility with language packs for translation.
 * [Changed] Changes the detail sent in JavaScript event epdf_gf_render_page from
   an integer to an object.
 * [Changed] Changes tested up to version to 6.4.2.

#### 1.1.1

 * [Added] Adds comments explaining what pdfjs-dist is and where the unminimized
   files are available.
 * [Changed] Changes tested up to version to 6.4.1.

#### 1.1.0

 * [Added] Adds a Download PDF into Media Library button to the CORS error messages
   for users that have the upload_files capability.
 * [Fixed] Fixes the Choose PDF button not working for users without access to the
   Media Library by telling users why it does not work. The upload_files capability
   is required to use the Media Library dashboard features like the modal this button
   opens.
 * [Fixed] Avoid errors when two copies of this plugin are activated at the same
   time.
 * [Fixed] Adds a “file not found” error to the form editor so users know that PDF
   files are missing without previewing the form.
 * [Fixed] Changes CSS so the previous, next, zoom in, and zoom out buttons look
   better on smaller screens.
 * [Changed] Changes the tested up to version to 6.3.2.

#### 1.0.1

 * [Fixed] Moves inline JavaScript required for each PDF Viewer field to the wpforms_frontend_js
   hook.
 * [Fixed] Stops writing errors to the browser developer console unless SCRIPT_DEBUG
   is enabled.

#### 1.0.0

 * [Added] First version.

## 额外信息

 *  版本 **1.1.6**
 *  最后更新：**8 月前**
 *  活跃安装数量 **40+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **6.8.5**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [English (UK)](https://en-gb.wordpress.org/plugins/embed-pdf-wpforms/) 、 [English (US)](https://wordpress.org/plugins/embed-pdf-wpforms/)、
   [Spanish (Chile)](https://cl.wordpress.org/plugins/embed-pdf-wpforms/) 、 [Spanish (Colombia)](https://es-co.wordpress.org/plugins/embed-pdf-wpforms/)
   和 [Spanish (Mexico)](https://es-mx.wordpress.org/plugins/embed-pdf-wpforms/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/embed-pdf-wpforms)
 * 标签
 * [inkless](https://cn.wordpress.org/plugins/tags/inkless/)[pdf](https://cn.wordpress.org/plugins/tags/pdf/)
   [WP Forms](https://cn.wordpress.org/plugins/tags/wp-forms/)[WPForms](https://cn.wordpress.org/plugins/tags/wpforms/)
 *  [高级视图](https://cn.wordpress.org/plugins/embed-pdf-wpforms/advanced/)

## 评级

尚未提交反馈。

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

[查看全部评论](https://wordpress.org/support/plugin/embed-pdf-wpforms/reviews/)

## 贡献者

 *   [ Corey Salzano ](https://profiles.wordpress.org/salzano/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/embed-pdf-wpforms/)