PDF Forms Filler for CF7

説明

This plugin allows Contact Form 7 users to add PDF attachments filled with form submission data to email messages and responses of Contact Form 7.

If the PDF attachment has a PDF form, the plugin allows users to add fields to the Contact Form 7 form and/or link them to fields in the PDF. The plugin also allows the attached PDF files to be embedded with images supplied by Contact Form 7 form fields. The filled PDF files can be saved on the web server.

When your website visitor submits your Contact Form 7 form, the form in the PDF file is filled with CF7 form data, images are embedded and the resulting PDF file is attached to the Contact Form 7 email message. The resulting PDF file can also be downloaded by your website visitors if this option is enabled in your form’s options. It is possible to save the resulting PDF file to your server’s wp-content/uploads directory.

What makes this plugin special is its approach to preparing PDF files. It is not generating PDF documents from scratch. It modifies the original PDF document that was prepared using third party software and supplied to the plugin. This allows users the freedom to design exactly what they need and use their pre-existing documents.

An external web API (https://pdf.ninja) is used for filling PDF forms (free usage has limitations). The “Enterprise Extension” plugin is available for purchase that enables the processing all PDF operations locally on your web server and disables the use of the external web API.

Pdf.Ninjaの利用規約およびプライバシーポリシーをご覧ください。

Please see the tutorial video and the documentation for detailed information.

Requirements:
* PHP 5.2 or newer
* WordPress 4.8 or newer
* Contact Form 7 5.0 or newer
* IE 11 (or equivalent) or newer

Known problems:
* Some third party plugins may break the functionality of this plugin (see a list below). Try troubleshooting the problem by disabling likely plugins that may cause issues, such as plugins that modify WordPress or Contact Form 7 in radical ways.
* Some image optimization plugins optimize PDFs and strip PDF forms from PDF files. This may cause your existing forms to break at a random point in the future (when PDF file cache times out at the API).
* If you are still using the old version of the API (v1) or the old version of Enterprise Extension (v1), please note that resulting PDFs may not render properly in some PDF readers and with some UTF-8 (non-latin) characters, checkboxes and radio buttons.

Known incompatible plugins:
* Post SMTP (breaks PDF attachment to email messages)
* Imagify (strips forms from PDF files)
* ShortPixel Image Optimizer (strips forms from PDF files)
* Live Preview for Contact Form 7
* Open external links in a new window
* WordPress Multilingual Plugin
* Contact Form 7 Skins

このプラグインのスポンサーに特別な感謝を捧げます:
* BrowserStack
* Momentum3
* G-FITTINGS GmbH

スクリーンショット

  • PDF Form button is available to access PDF attachments interface
  • Form-tag Generator interface that allows users to attach PDF files and generate tags
  • Filled PDF file

インストール

  1. Contact Form 7 プラグインをインストールしてください。
  2. Upload this plugin’s folder to the /wp-content/plugins/ directory, or install the plugin through the WordPress plugins screen directly.
  3. WordPressの「プラグイン」画面からプラグインを有効化してください。
  4. Start using the ‘PDF Form’ button in the CF7 form editor.

FAQ

エラーが発生しました:「メッセージの送信中にエラーが発生しました。後でもう一度お試しください。」

Please check your server’s email configuration. Please check to make sure your SPAM mitigation technique is not causing the problem (reCaptcha/Akismet/etc).

Does this plugin allow my website users to edit PDF files?

No. This plugin adds features to the Contact Form 7 interface in the WordPress Admin Panel only.

Does this plugin require special software installation on the web server?

No. The plugin uses core WordPress and CF7 features only. No special software or PHP extensions are needed. Working with PDF files is done through Pdf.Ninja API. It is recommended to have a working SSL/TLS certificate validation with cURL. Enterprise Extension is available if your business requirements prevent the use of a third party API.

How are CF7 form fields mapped to PDF form fields?

The field mapper tool allows you to map fields individually and, when needed, generate new CF7 fields on the fly. CF7 fields can be mapped to multiple PDF fields. Mappings can be associated with a specific PDF attachment or all PDF attachments. Field value mappings can also be created, allowing filled PDF fields to be filled with data that differs from the originally filled values.

My fields are not getting filled, what is wrong?

マッピングがマッピングのリストに存在し、フィールド名が一致していることを確認してください。

If you attached an updated PDF file and your mappings were associated with the old attachment ID then those mappings will be deleted and you will need to recreate them.

Sometimes PDF form fields have validation scripts which prevent value with an incorrect format to be filled in. Date PDF fields must be formatted with the format mail-tag.

How do I update the attached PDF file without attaching a new version and losing attachment ID associated mappings and embeds?

Try using the Enable Media Replace plugin to replace the PDF file in-place in the Media Library.

My checkboxes and/or radio buttons are not getting filled, what is wrong?

Make sure your PDF checkbox/radio field’s exported value matches the value of the CF7 form’s checkbox tag. Usually, it is “On” or “Yes”. If you need to display a different value in the CF7 form, you will need to create a value mapping or use pipes.

CF7 allows you to have multiselect checkboxes, however, PDFs can’t have multiple values with checkbox fields. You either need to switch to using a listbox in your PDF or rename your checkboxes such that each has a unique name and then map them appropriately.

Some PDF viewers don’t render checkboxes correctly in some PDF files. You may be able to solve this issue by recreating the PDF in a different PDF editor. If you are still using Pdf.Ninja API v1, switching to v2 may resolve your issue.

How do I remove the watermark in the filled PDF files?

Please see the Pdf.Ninja API website and the Enterprise Extension plugin page.

How do I set up PDF form filling on my local web server?

エンタープライズ拡張プラグインページをご覧ください。

評価

2023年5月18日
been using this plugin to complete a very complex PDF form filling on a website we developed. After a couple of years we found an issue with an infinite spinning wheel when a user submitted the form. Their support team came in and got it fixed right away and was incredibly supportive. Best support I’ve ever received from a plugin developer. Highly Recommend!
2021年6月6日 4 replies
Thanks for the great plugin, it works perfectly, just a small bug I found about the success notification after submitting the form, besides that it’s all good
2020年6月10日
This plugin made the project I thought would take days instead take only minutes to complete. Wow. that you for this.
2020年5月1日
This plugin is ideal for automatically filling pdfs based on data entered by users. It is a good complement for CF7. You can even add a handwritten signature to your pdf form thanks to its compatibility with the “Contact Form 7 Signature Addon” plugin. So yes you will probably need the PRO version to remove the watermark but it is a good investment. And then the FREE version allows you to test all the features of this plugin. I just have a suggestion for a better compatibility with the “CF7 Conditional Fields PRO” plugin by Jules Colle. For this I will open a support topic.
2020年4月4日
If you need to use contact form 7 with PDF this is the best plugin out there. After numerous tries with all kinds of free and premium plugins, this is the far the best of them. The integration is perfect with API and contact form 7. Thanks for the plugin!
2020年3月25日 3 replies
After extensive comparison I ended up selecting this plugin (PRO version without watermark at 49 USD/year) in order to get a PDF file from a Contact Form 7 form. The good points of this plugin are: – you are allowed to make all the testing you want before deciding if buying the PRO version without watermark (the free version is for unlimited testing only) – the linking between Contact Form 7’s fields and the fields in the PDF is easy – you can upload different PDF files and have them filled at once (one field’s data can go to several places in the same PDF or, should be, in different PDFs) – I could create the PDF file and its fillable fields from the free LibreOffice Writer (it’s similar to Microsoft Word) – You can decide if the created PDF is still fillable or not (“flattened”) – I can add that you can have only certain fields still fillable if you make some of them “read only” while creating the PDF (in LibreOffice Writer) and set the whole PDF created by this plugin “not flattened”) Some important missing features are: – It is not possible to “trigger” a specific PDF file based on a specific answer in the form (the only option is not to have a PDF at all if all the fields are empty) – that would be a very important feature in order to get only the PDFs you actually need based on your selection – While a Contact Form 7 field data can go to different places in a PDF, the opposite is not possible (it means that a PDF field can receive a data only from one specific Contact Form 7 field) – multiple selections do not work – you have to create several “multiple” selection (one on top of the other) where you really have only one selection for each one
12件のレビューをすべて表示

貢献者と開発者

PDF Forms Filler for CF7 はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“PDF Forms Filler for CF7” は1ロケールに翻訳されています。 翻訳者のみなさん、翻訳へのご協力ありがとうございます。

“PDF Forms Filler for CF7” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

2.2.2

  • Release date: March 31, 2025

  • Added ‘delete all value mappings’ button

  • その他の軽微なバグ修正と改善

2.2.1

  • リリース日: 2024年11月21日

  • ローカリゼーションの問題を修正しました

  • 言語ファイルを更新しました

2.2.0

  • リリース日: 2024年11月11日

  • CF7 v6.0のサポートを追加しました

  • 添付ファイルツール、フィールドマッパーツール、および画像埋め込みツールをタグジェネレーターから別の設定パネルに移動しました
  • Added automatically download filled PDF feature
  • その他の修正と改善

2.1.10

  • リリース日: 2024年3月5日

  • CF7 v5.9のサポートを確保しました

2.1.9

  • リリース日: 2024年1月15日

  • Fixed possible issues with API communication caused by non-alphanumeric characters in request boundary

  • その他の軽微な修正と改善

2.1.8

  • リリース日: 2023年11月8日

  • Fixed a bug with a default file name when there are multiple PDF attachments

2.1.7

  • リリース日: 2023年11月3日

  • メールタグのテキストエリアを自動リサイズ

  • Fixed a possible JS error related to UTF-8 base64 decoding
  • アイコンファイルを修正しました
  • リモート添付ファイルのサポートを改善
  • ページスナップショットコードの問題を修正しました
  • その他の細かい改善

2.1.6

  • リリース日: 2023年8月15日

  • WP v6.3のサポートを確保しました

  • CF7 v5.8のサポートを確保しました
  • いくつかの小さな修正を追加しました

2.1.5

  • リリース日: 2023年7月10日

  • 条件付きフィールドプラグインのグループに対する回避策のサポートを追加しました

  • 軽微な修正

2.1.4

  • リリース日: 2023年5月17日

  • Added a workaround for GLOB_BRACE flag not being available on some non GNU systems

2.1.3

  • リリース日: 2023年5月5日

  • 軽微な修正と改善

2.1.2

  • リリース日: 2022年12月14日

  • CF7 v5.7のサポートを確保しました

2.1.1

  • リリース日: 2022年11月29日

  • Fixed bugs with frontend CF7 response

2.1.0

  • リリース日: 2022年11月23日

  • Some fixes were applied that affect the filling process logic. Please check your forms after the update to make sure everything is working as expected if you think they might be affected!

  • Fixed an issue with PDF fields not being cleared with empty CF7 field values (affects prefilled fields in the original PDF file)

  • Fixed an issue: value mappings get applied recursively (affects field value mappings that have matching CF7/PDF values)
  • Bug fix: value mapping fail to work with null values
  • 空の値マッピングオプションのラベリングを改善
  • Improved PDF attachment affecting action detection
  • ドイツ語の翻訳を修正しました
  • スペイン語の翻訳を更新しました
  • イタリア語の翻訳を更新しました
  • 他の言語ファイルを更新しました
  • その他の細かい改善

2.0.9

  • リリース日: 2022年10月27日

  • CF7インテグレーションページの問題を修正しました

2.0.8

  • リリース日: 2022年9月20日

  • Add duplicate CF7 value mappings to multiple unique PDF values support to multiselect feature

  • 値マッピング処理コードの改善
  • ドイツ語の翻訳を修正しました
  • 不要になった埋め込みを削除するコードを追加しました
  • 一時ファイル管理の改善
  • その他の改善点

2.0.7

  • リリース日: 2022年7月25日

  • Assuming support for all CF7 v5.6.* revisions

  • 軽微なクリーンアップと改善

2.0.6

  • リリース日: 2022年7月3日

  • 自動値マッピングを追加しました

  • フォームタグのヒントからパイプを削除しました
  • Added support for data URIs in the image embedding feature
  • その他のバグ修正と改善

2.0.5

  • リリース日: 2022年5月24日

  • WP v6.0のサポートを確保しました

  • CF7 v5.6のサポートを確保しました
  • 値のマッピング機能を、値の一致時に大文字と小文字を区別しないように変更しました
  • ファイル名に非ラテン文字が含まれる可能性のある問題を修正するために、basename() の i18n 対応バージョンに切り替えました
  • その他の細かい改善

2.0.4

  • リリース日: 2022年2月23日

  • CF7 v5.5.6のサポートを確保しました

  • バックエンドの画像埋め込みツールのスクロールコードに関する問題を修正しました
  • Hid unhelpful PHP warnings

2.0.3

  • リリース日: 2022年2月18日

  • 「free_text」チェックボックスおよびラジオオプションの値マッピング機能の処理を修正しました

  • CF7フィールドのパイプオプションの処理における値マッピング機能を修正
  • CF7フィールドのマルチセレクト検出を修正
  • その他の細かい変更

2.0.2

  • リリース日: 2022年2月14日

  • CF7 v5.5.5のサポートを確保しました

  • 破損したクッキーに対する回避策を追加しました
  • その他の細かい改善

2.0.1

  • リリース日: 2022年2月2日

  • 値マッピング機能のバグを修正しました

2.0.0

  • リリース日: 2022年2月1日

  • マルチセレクトフィールドのサポートを追加しました

  • select2 ドロップダウンに切り替えました
  • 値マッピング機能を追加
  • 画像埋め込みを追加する際のスクロール効果を修正しました
  • CF7 v5.4.1+ のために WPCF7_Submission::add_extra_attachments() を使用するように切り替えました
  • その他のバグ修正と改善

1.3.23

  • リリース日: 2022年1月25日

  • CF7 v5.5.4のサポートを確保しました

  • WordPress v5.9のサポートを確保しました
  • Switched to using a less problematic PDF field name sanitization when generating form-tags

1.3.22

  • リリース日: 2021年12月5日

  • CF7 v5.5.3までのサポートを確保しました

  • Added remote media support, refactored Pdf.Ninja API integration code, improved error handling
  • wp-admin の通知を、それに対処する権限のないユーザーから非表示にしました
  • その他の細かな改善と修正

1.3.21

  • リリース日: 2021年10月29日

  • CF7 v5.5.2までのサポートを確保しました

  • 使用できないタグ名が使用された場合のタグ生成コードの問題を修正しました
  • その他の細かい改善

1.3.20

  • リリース日: 2021年10月14日

  • CF7 v5.5.1までのサポートを確保しました

  • 閉じることができる通知を追加しました
  • Minor refactor of API communication code
  • Added a confirmation box when attaching a PDF file with no fields
  • その他の細かい改善

1.3.19

  • リリース日: 2021年9月21日

  • クラッシュ修正

1.3.18

  • リリース日: 2021年9月18日

  • Added a user-provided email address field for requesting a new key from the API

  • Fixed a minor error reporting bug when requesting a new key from the API fails
  • Fixed an issue caused by direct modification of fileId post meta in the database
  • Fixed a bug introduced recently that was causing the (deprecated) tag generator to not work
  • タイプミスを修正しました

1.3.17

  • リリース日: 2021年8月11日

  • Fixed a bug that caused cron schedules issues with other plugins

  • Bumped tested up to WP version

1.3.16

  • リリース日: 2021年8月2日

  • Switched the Pdf.Ninja API version setting default from v1 to v2

1.3.15

  • リリース日: 2021年7月14日

  • プラグインの名前を変更しました

  • CF7 v5.4.2のサポートを追加
  • Improved API response decoding error checks
  • Small improvement in tag generator for radio/select/checkbox fields

1.3.14

  • リリース日: 2021年7月3日

  • Added the default tag option to radio/select/checkbox tag generator

  • v2でのラジオ/セレクト/チェックボックスタグ生成に関する問題を修正しました
  • タグジェネレーターを改良し、タグ名と値をより適切にエスケープするようにしました
  • Fixed an issue with CF7 fields lists in tag generator thickbox not getting refreshed when necessary
  • タグジェネレーターの厚いボックスでパディングの問題を修正しました
  • すべてのマッピングを削除するボタンに確認ボックスを追加しました
  • ローカリゼーションが正しく機能しない問題を修正しました
  • エンタープライズ拡張機能のサポートメッセージを改善しました

1.3.13

  • リリース日: 2021年6月1日

  • Added API version configuration option

  • プラグインの有効化および無効化フックを改善しました
  • データベース移行スクリプトを改善して有効化しました
  • 1.3.13データベース移行スクリプトを追加しました
  • その他のバグ修正と改善

1.3.12

  • リリース日: 2021年5月5日

  • CF7 v5.4.1 をサポートされているバージョンとして認定しました

  • 管理者通知の改善
  • Improved frontend JS
  • エンタープライズ拡張サポートのチェックコードを改善しました

1.3.11

  • リリース日: 2021年4月12日

  • Fixed and improved cron code

  • デフォルトのダウンロードリンクのタイムアウトを1日から1時間に変更しました
  • クラッシュを修正しました
  • Improved frontend JS slightly
  • エンタープライズ拡張サポートチェックコードに最小カーネルバージョンチェックを追加

1.3.10

  • リリース日: 2021年4月4日

  • Fixed a bug that broke CF7 JS response

  • フィルターの軽微な修正
  • Fixed PHP warning

1.3.9

  • リリース日: 2021年4月2日

  • CF7の最新バージョンとダウンロードリンク機能の問題を修正しました

1.3.8

  • リリース日: 2021年4月2日

  • CF7 v5.4でダウンロードリンク機能のサポートを修正および改善しました

  • 旧バージョンのサポートを修正しました
  • Hid CF7 insert box to prevent it from getting in the way of the tag generator UI
  • その他の細かい問題を修正しました

1.3.7

  • リリース日: 2021年3月10日

  • Fixed old PHP version support

  • Decreased order of execution for wpcf7_before_send_mail action to allow other plugins to finish first

1.3.6

  • リリース日: 2021年3月7日

  • CF7 v5.4の互換性を追加: WPCF7_Submission::add_uploaded_file()

  • CF7 v5.4のサポートを有効化
  • Readme update

1.3.5

  • リリース日: 2021年3月1日

  • Fixed an accidental bug that was causing PDFs not to be attached to email messages

1.3.4

  • リリース日: 2021年3月1日

  • CF7 v5.4はまだサポートされていませんが、エラー軽減策が追加されました

  • CF7 v5.4の互換性を追加: WPCF7_Submission::uploaded_files()
  • CF7プラグインのバージョンサポートチェック機能を追加
  • Added crash prevention check to CF7’s add_uploaded_file call
  • Updated readme
  • その他の細かい修正

1.3.3

  • リリース日: 2020年12月9日

  • Bug fix: Removed unnecessary front-end Font Awesome CSS left in by mistake

  • Added WebP image format support
  • エンタープライズ拡張サポートのチェックコードを改善しました
  • その他の細かい修正

1.3.2

  • リリース日: 2020年9月4日

  • バグ修正: 空のときにスキップする機能が動作しなくなりました

1.3.1

  • リリース日: 2020年8月20日

  • Fixed image embed MIME type checking issue that occurs when PHP fileinfo functions are not working

1.3.0

  • リリース日: 2020年8月8日

  • 警告: このアップデートではプラグインの操作にいくつかの変更が導入されていますが、これらの変更は既存のユーザーにとって問題を引き起こすことはないはずです。ただし、アップデート後のテストをお勧めします。

  • メールタグ機能を追加しました
  • Improved general error handling during PDF filling
  • WARNING: should any errors occur with the PDF filling process, they will now be displayed to users when they submit forms on the front-end (instead of being attached along with user input in a .txt file)
  • Added file MIME type validation for image embeds
  • 警告: 画像の埋め込みは次のMIMEタイプに制限されました: image/jpeg, image/png, image/gif, image/tiff, image/bmp, image/x-ms-bmp, image/svg+xml
  • CF7フィールド入力を埋めるために、メールタグ置換関数wpcf7_mail_replace_tags()を使用するように切り替えました(サードパーティプラグインのサポートを向上させるため)
  • デフォルトで隠しタグ生成ツール
  • その他の軽微なバグ修正と改善

1.2.4

  • リリース日: 2020年5月15日

  • バグ修正

  • コードの最適化と改善
  • CF7フォームの複製サポートを追加しました

1.2.3

  • リリース日: 2020年3月4日

  • CF7フォームに添付ファイルを添付する際に、他の投稿から添付ファイルが削除される問題を修正しました

  • Fixed a bug that caused HTML code to show up in response messages for filled PDF download links in some cases
  • Fixed a bug with filled PDF saving/downloading when handling errors
  • Refactored file save/download handling code

1.2.2

  • リリース日: 2020年1月8日

  • バグ修正

  • Readme updates

1.2.1

  • リリース日: 2019年10月27日

  • Fixed an issue with ajax form submission not always receiving HTML download response message

  • Fixed an issue which caused the plugin to deactivate when updating from pre-1.2 versions to 1.2.0 and later versions due to main plugin php file rename

1.2.0

  • リリース日: 2019年9月27日

  • 多くの最適化、バグ修正、および改善を追加しました

  • 競合するプラグインとスポンサーのリストを更新しました
  • Added an option for saving the filled PDF on the server
  • Added an option for allowing users to download the filled PDFs
  • Added integration with WP media library
  • CF7タグにパイプを追加するコードを追加し、単一オプションでのユーザーの混乱を防止しました
  • CF7タグ生成コードのフィールド値エスケープ問題を修正しました
  • Renamed text domain and plugin filename/slug to the published plugin slug (plugin needs to be reactivated after update due to a change in plugin filename)

1.0.2

  • リリース日: 2019年2月12日

  • ファイル名オプションにメールタグ機能を追加しました

  • 軽微な修正と改善

1.0.1

  • リリース日: 2019年1月15日

  • バグ修正と改善

1.0.0

  • リリース日: 2018年4月6日

  • 主要なプラグインのリファクタリング

  • 画像埋め込みツールを追加しました
  • ヘルプボックスを追加しました
  • A large number of bug fixes, optimizations and UX improvements
  • エンタープライズ拡張機能のサポートチェックを追加