這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Embed PDF for 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/

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 or Support Topic on wordpress.org.

使用者評論

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

參與者及開發者

以下人員參與了開源軟體〈Embed PDF for WPForms〉的開發相關工作。

參與者

〈Embed PDF for WPForms〉外掛目前已有 4 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Embed PDF for WPForms〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

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.