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

フォームデータを抽出する PDF で n8n

フォームデータを抽出する PDF は PDF4me ノードアクション n8n 入力可能なフィールドから入力済みの値を読み取る PDF そしてそれらを構造化された形で返します formData JSON オブジェクト。返送された申請書、署名済みの受付シート、またはアンケートを変換するために使用します。 PDFs 回答を再入力することなく、データベースの行に反映されます。

このノードの機能

PDF4me: フォームデータを抽出 PDF 記入済みのフォーム PDF バイナリデータから、 Base64 Stringまたは URLインタラクティブなフォームレイヤーを読み取り、すべてのフィールドを単一の名前と値のペアとして返します。 フォームデータ オブジェクト。テキスト入力、チェックボックス、ラジオボタン、ドロップダウン選択はすべて再び集まり、スプレッドシートの行にマッピングする準備が整います。 CRM レコード、またはワークフロー内の条件分岐。

関連ブログ記事(1)

認証 API リクエスト​

毎 PDF4me ノード n8n 有効な 接続するための認証情報. 作成または選択して、 PDF4me API ワークフローが抽出要求を安全に認証できるようにするためのキー。

見逃してはならない重要な事実​

の PDF 実数形式のフィールドが必要です
このノードは、インタラクティブな AcroForm レイヤーを読み取ります。スキャンされたページまたはフラット化された PDF 読み取るフィールドオブジェクトが残っていないので、それらをルーティングします OCR または AI 代わりにノードを解析します。
出力に空白フィールドが引き続き表示されます
入力されていないフィールドは省略されるのではなく、空の文字列が返されるため、キーが欠落していると仮定するのではなく、後続の処理で空の値をチェックしてください。
フィールド名はフォーム作成者によって決定されます
キーはどんなものにもマッチします PDF デザイナーは各フィールドに名前を付けており、チェックボックスは必ず真偽値を返すのではなく、エクスポート値を返します。まずサンプルファイルを1つ実行して、実際の出力を確認してください。
n8n の PDF4me ノードは、アクションを PDF からフォームデータを抽出、入力データタイプをバイナリデータ、入力バイナリフィールドをデータ、ドキュメント名を document.pdf、詳細オプションのカスタムプロファイルに設定されています。

PDF4me フォームデータを抽出する PDF パラメーターパネル n8n

フォームデータ抽出とプレーンテキスト抽出の比較​

どちらのアプローチも、 PDFしかし、名前付きフィールドを提供するのはどちらか一方だけです。この違いによって、ワークフローに含めるべきノードが決まります。

アプローチ返ってくるもの最適なフィット感
Extract Form Data From PDFNamed field and value pairs from the interactive form layerGenuine fillable PDFs where every answer already sits in a named field
Plain text extractionThe visible page content as one flat string, with no field namesStatic PDFs with no form layer, where you will parse the text yourself
AI document parsingModel-inferred fields from any layout, including scansScanned, flattened, or wildly inconsistent documents with no usable form structure

フォームデータ抽出はどのパラメータから行われますか? PDF 必要?​

必須: アクション、入力データタイプ、その入力タイプに一致するフィールド、およびドキュメント名。詳細オプションのカスタムプロファイルはオプションです。

パラメータ必須その機能例
Input Data TypeRequiredChoose how to provide the PDF file to extract form data from. Options: Binary Data, Base64 String, URL. Default is `Binary Data`.Binary Data
Input Binary FieldConditionalName of the binary property that contains the PDF file (usually "data" for file uploads). Shown when Input Data Type is Binary Data. Default is `data`.data
Base64 PDF ContentConditionalBase64 encoded PDF document content. Shown when Input Data Type is Base64 String.JVBERi0xLjQK...
PDF URLConditionalURL to the PDF file to extract form data from. Shown when Input Data Type is URL.
Document NameOptionalName of the document (used for processing). Default is `document.pdf`.document.pdf
Advanced OptionsOptionalOptional settings, collapsed behind Add Option.Add Option
Custom ProfilesOptionalUse 'JSON' to adjust custom properties. Review Profiles at https://dev.pdf4me.com/apiv2/documentation/ to set extra options for API calls and may be specific to certain APIs.{ 'outputDataFormat': 'json' }

出力フィールド​

成功したランは1 n8n 抽出されたフォーム値を保持するアイテムとして JSON。

典型的なレスポンスボディは次のようになります。

{
"formData": {
"name": "PDF4me",
"email": "",
"country": "USA"
}
}

出力​

ノードが返すフィールド。

分野タイプ内容物
_metadataStringObject added by the node: success (always true), message (`Form data extracted successfully`), processingTimestamp (time the node received the result, ISO 8601), sourceFileName (the input file's name for Binary Data, the last part of the URL for URL, and Document Name for Base64) and operation (`extractFormDataFromPdf`).

すべての分野 PDF4me レスポンスはアイテムにコピーされます: フォームフィールドの値は PDF (Power Automate コネクタでは traceId と formData オブジェクト)。フィールド名はフォームによって異なります。正確なフィールドは、 PDF4me 応答。

すべての分野の PDF4meの応答はアイテムにコピーされます: フォームフィールドの値は PDF (Power Automate コネクタでは traceId と formData オブジェクト)フィールド名はフォームによって異なります。正確なフィールドは PDF4meの返答。

フォームデータ抽出の設定方法 PDF で n8n?​

  1. 追加 PDF4me あなたの n8n ワークフローを選択し、 フォームデータを抽出する PDF アクション。
  2. で 接続するための認証情報選択してください PDF4me 認証情報またはクリック 新しい認証情報を作成する そしてあなたの API 鍵。
  3. セット 入力データタイプ に バイナリデータ (デフォルト)、 Base64 String、 または URL 対応する充填済み PDF 分野。
  4. セット 文書名 例えば、ソースファイル名に application_form.pdf。
  5. 離れる カスタムプロファイル 下 詳細オプション 特定の処理プロファイルが必要な場合を除き、空白のままにしてください。
  6. ノードを実行し、返された値から値をマッピングします。 formData オブジェクトをワークフローの次のステップに進めます。

典型的な構成​

ワークフローの例Common n8n workflow patterns using Extract Form Data From PDF.
申請書をスプレッドシートにメールで送信
  1. 申請が完了するとメールが送信されます PDF 到着する。
  2. フォームデータを抽出する PDF 添付ファイルをformDataオブジェクトに読み込みます。
  3. Google スプレッドシートまたは Excel ノードは行を1つ追加し、各フィールド名を列にマッピングします。
CRM 受付フォームからのリード生成
  1. クラウドストレージのトリガーが、新しくアップロードされたデータに基づいて作動する PDF。
  2. フォームデータを抽出する PDF フォームレイヤーから連絡先情報を取得します。
  3. A CRM ノードは、抽出された名前、メールアドレス、および会社名を使用してレコードを作成または更新します。
条件付き承認ルーティング
  1. ウェブフックは、外部ポータルから署名済みのリクエストフォームを受信します。
  2. フォームデータを抽出する PDF 要求された金額と部門フィールドを返します。
  3. IFノードは、これらの値に基づいて適切な承認者へと分岐します。
アーカイブの一括デジタル化
  1. アイテムのループノードは、アーカイブされたフォームのリストを反復処理します。 URLs。
  2. フォームデータを抽出する PDF 入力データタイプを次のように設定して実行します URL ファイルごとに。
  3. 各formDataオブジェクトは、ソースドキュメント名をキーとするデータベーステーブルに書き込まれます。

実践的なヒント​

Run one sample file before you map anything
Field names and checkbox export values are set by whoever designed the form, so inspect the real formData output first instead of guessing the key names.
Test for empty strings, not missing keys
Unfilled fields are still present in the output with an empty value, so a simple key existence check will not tell you whether the user answered.
Check the PDF is not flattened
A form that looks fillable in a viewer may have been flattened on save, which strips the field layer. If formData comes back empty, that is usually why.
Send scans to an AI parser instead
Scanned paper forms have no interactive fields at all. Route those to Parse Document rather than expecting this node to read them.
Keep Document Name meaningful
It is used for reference and tracking on the request, so passing the real source filename makes execution logs far easier to audit later.
Validate before writing to a system of record
Add a check on required fields after extraction so an incomplete submission is flagged rather than silently creating a half-empty CRM record.

チートシート​

分野価値
ActionExtract Form Data From PDF
Input Data TypeBinary Data
Input Binary Fielddata
Document Namedocument.pdf
Custom Profiles{ 'outputDataFormat': 'json' }
CredentialsPDF4me API credential
ReturnsformData object of field name and value pairs

よくある質問​

Does Extract Form Data From PDF work on a scanned or flattened PDF?+
No. This node reads values from real interactive form fields, the AcroForm layer described in the ISO 32000 PDF specification. A scanned page is just an image, and a flattened PDF has had its fields painted into static content, so in both cases there are no field objects left to read. For those files use an OCR or AI parsing node instead, such as Parse Document.
What do empty form fields return?+
A field the user left blank still appears in the formData object, with an empty string as its value. The key set reflects the fields defined in the PDF, not only the ones that were filled in, so downstream nodes should test for empty values rather than assume a missing key.
How are checkboxes and radio buttons returned?+
Checkbox and radio button fields return their underlying export value as defined in the PDF, not always a literal true or false. Common values include Yes, Off, or a named choice set by whoever built the form. Run the node once on a sample filled PDF and inspect the actual output before writing comparison logic against it.
Can I send extracted PDF form data straight to Excel or a database?+
Yes. The formData object is standard JSON, so any node that accepts item fields can consume it. Map formData keys onto columns in a spreadsheet, database, or CRM node placed after the PDF4me node, using the standard n8n data mapping approach.
What is the difference between extracting form data and extracting text from a PDF?+
Extracting form data reads named field values from the interactive form layer, so you get reliable key and value pairs such as email mapped to its entered address. Extracting text returns the visible page content as a flat string with no field names attached, leaving you to parse it. Prefer form data extraction whenever the PDF is a genuine fillable form.

関連アクション​

他のプラットフォームでの同じタスク​

ヘルプが必要な場合​