メインコンテンツへスキップ

フォームフィールドを追加する PDF 使用 n8n アクション

PDF4me フォームフィールドを追加する PDF 静的を変換します PDF 文書をインタラクティブな入力可能なフォームに変換する n8n 自動化ワークフロー。プロセス PDF離れて n8n トリガー、バイナリデータ、base64文字列、または公開 URLフォームフィールド(テキストボックス、チェックボックス)を、位置、フィールド名、デフォルト値、サイズ制御、ページ固有のターゲティング、柔軟な配置オプションなど、カスタマイズ可能な設定で追加できます。このソリューションは、フォームテンプレートの作成、インタラクティブなドキュメントの生成、データ収集フォーム、アンケートの作成、そして正確な位置設定とシームレスな統合が求められるプロフェッショナルなフォームフィールド作成のための自動フォームデザインワークフローに最適です。

関連ブログ記事
この機能に関するブログ記事はまだありません。近日公開予定です。
その間、PDF4me ブログを閲覧して、あらゆるプラットフォームのチュートリアルやワークフローをご覧ください。
ブログをご覧ください →

設定​

追加する PDF4me 「フォームフィールドを追加する」 PDF「ノードをあなたの n8n ワークフローを実行し、必要なパラメータを設定します。初期設定手順については、こちらをご覧ください。 n8n 統合ガイド。

前提条件:

  • PDF4me API 資格
  • n8n ワークフローへのアクセス

構成:

  1. 追加 PDF4me ノードからワークフローへ
  2. 「フォームフィールドを追加する」を選択してください PDF" アクション
  3. 入力パラメータを設定します(下記参照)。
PDF設定にフォームフィールドを追加する

パラメータ​

フォームフィールドの追加に使用するパラメーターの完全なリスト PDF アクション。これらのパラメータを設定して、フォームフィールドの追加を制御します。

重要: アスタリスク(***)が付いているパラメータは必須であり、アクションが正しく機能するためには必ず指定する必要があります。

パラメータ必須その機能例
PDF Input Data TypeRequiredChoose how to provide the PDF file. Options: Binary Data, Base64 String, URL. Default is `Binary Data`.Binary Data
PDF Binary FieldConditionalName of the binary property that contains the PDF file. Shown when PDF Input Data Type is Binary Data. Default is `data`.data
PDF Base64 ContentConditionalBase64 encoded PDF content. Shown when PDF Input Data Type is Base64 String.JVBERi...
PDF URLConditionalURL to the PDF file. Shown when PDF Input Data Type is URL.https://abc.com/doc.pdf
Initial ValueRequiredInitial value for the form field (must be a string). Default is `input text`.input text
Position XRequiredX position of the form field (sent to PDF4me as positionX). Default is `300`.300
Position YRequiredY position of the form field (sent to PDF4me as positionY). Default is `300`.300
Field NameRequiredName of the form field (must be a string). Default is `Input Field Name`.Input Field Name
SizeRequiredSize of the form field (integer). Default is `4`.4
PagesRequiredPage indices as comma-separated values or ranges (e.g., "0, 1, 2-" or "1, 2, 3-7"). Leave empty to process all pages. Default is `1`.1
Form Field TypeRequiredType of form field to add. Options: Text Box, Check Box. Default is `Text Box`.Text Box
Output File NameOptionalName for the output PDF file with form fields. Default is `form_fields_output.pdf`.form_fields_output.pdf
AsyncOptionalIgnored: the node always sends the request with IsAsync true, whatever this is set to. Default is `Yes`.Yes
Binary Data Output NameOptionalCustom name for the binary data in n8n output. Default is `data`.data

出力​

出力パラメータ​

分野タイプ内容物
successBooleanTrue when the operation succeeded.
messageStringStatus message, `Form fields added to PDF successfully`.
fileNameStringFile name of the resulting file.
mimeTypeStringMIME type of the resulting file, for example `application/pdf`.
fileSizeNumberSize of the resulting file in bytes.
fieldNameStringField Name that was added.
formFieldTypeStringForm Field Type that was added.
initialValueStringInitial Value of the field.
positionStringObject with x and y: the Position X and Position Y values used.
sizeStringSize value used.
pagesStringPages value used, as entered.
dataBinaryThe PDF with the form field added.

N8N 行動対応​

の PDF4me フォームフィールドを追加する PDF API 複数の形式で表示可能なレスポンスを返します。ニーズに最適な表示形式を選択してください。

JSON 回答形式

生 JSON からの応答 API:

[
{
"success": true,
"message": "Form fields added to PDF successfully",
"fileName": "form_fields_output.pdf",
"mimeType": "application/pdf",
"fileSize": 121883,
"fieldName": "Test Box",
"formFieldType": "TextBox",
"initialValue": "input ",
"position": {
"x": 200,
"y": 200
},
"size": 3,
"pages": "1"
}
]

ユースケース​

デジタルフォームの作成と変換**​

  • 紙のフォームをインタラクティブなデジタル形式に変換する PDF 入力可能なフィールドを備えたフォーム
  • データ収集とユーザー入力のために、既存のドキュメントにフォームフィールドを追加する。
  • アンケート、応募、フィードバック収集用のカスタムフォームテンプレートを作成する

ドキュメントの強化とインタラクティブ性​

  • 静的なドキュメントにインタラクティブな要素を追加して、ユーザーエンゲージメントを向上させましょう。
  • 既存のデータにデータ収集機能を追加する PDF 文書および報告書
  • 文書を自動データ処理用の入力可能なフォームに変換する

ワークフローの自動化とデータ収集​

  • 標準化されたデータ収集プロセスのためのフォーム作成を自動化する
  • 文書処理ワークフローにフォームフィールドの追加機能を統合する
  • さまざまなビジネスプロセスやアプリケーションに対応する動的なフォームを作成する

ヘルプが必要な場合​