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

添付ファイルを抽出する PDF 使用 n8n アクション

PDF4me 添付ファイルを抽出する PDF 埋め込みファイルを抽出する PDF 文書を通じて n8n 自動化ワークフロー。プロセス PDF離れて n8n トリガー、バイナリデータ、base64文字列、または公開 URL添付ファイル、画像、スプレッドシート、データファイル、その他の埋め込みコンテンツを自動的に検出して抽出します。ファイルの整合性、メタデータの保持、マルチフォーマットのサポートを維持します(PDFDOC、XLS、画像など)。このソリューションは、文書分析、ファイル復元、証拠抽出、添付ファイル管理、データ抽出ワークフロー、およびシームレスな統合による信頼性の高い組み込みファイル抽出を必要とする包括的な文書処理に最適です。

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

設定​

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

前提条件:

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

構成:

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

パラメータ​

「添付ファイルの抽出」のパラメータ一覧 PDF アクション。添付ファイルの抽出を制御するために、これらのパラメータを設定します。

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

パラメータ必須その機能例
Input Data TypeRequiredChoose how to provide the PDF file to extract attachments 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.UEsDBBQABgAI...
PDF URLConditionalURL to the PDF file to extract attachments from. Shown when Input Data Type is URL.
Document NameOptionalName of the document (used for processing). Default is `document.pdf`.document.pdf
Binary Data Output NameOptionalCustom name for the binary data in n8n output. Default is `data`.data
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", "extractMetadata": true}

出力​

出力パラメータ​

分野タイプ内容物
successBooleanTrue when the operation succeeded.
messageStringStatus message, `Attachment extracted successfully and converted to binary`.
fileNameStringFile name of the first attachment, as returned by PDF4me.
mimeTypeStringMIME type set from the attachment's extension (txt, pdf, jpg, jpeg, png, zip), `application/octet-stream` otherwise.
fileSizeNumberSize of the first attachment in bytes.
sourceFileNameStringName of the input PDF: the input file's name for Binary Data, the last part of the URL for URL, and Document Name for Base64.
processingTimestampStringTime the node received the result, ISO 8601.
totalAttachmentsNumberNumber of attachments PDF4me found in the PDF (only the first is returned).
dataBinaryThe first attachment of the PDF. The node fails when the PDF has no attachments.

抽出された添付ファイルオブジェクト構造​

分野タイプ内容物
successBooleanTrue when the operation succeeded.
messageStringStatus message, `Attachment extracted successfully and converted to binary`.
fileNameStringFile name of the first attachment, as returned by PDF4me.
mimeTypeStringMIME type set from the attachment's extension (txt, pdf, jpg, jpeg, png, zip), `application/octet-stream` otherwise.
fileSizeNumberSize of the first attachment in bytes.
sourceFileNameStringName of the input PDF: the input file's name for Binary Data, the last part of the URL for URL, and Document Name for Base64.
processingTimestampStringTime the node received the result, ISO 8601.
totalAttachmentsNumberNumber of attachments PDF4me found in the PDF (only the first is returned).
dataBinaryThe first attachment of the PDF. The node fails when the PDF has no attachments.

N8N 行動対応​

の PDF4me 添付ファイルを抽出する PDF API 複数の形式で表示可能なレスポンスを返します。ニーズに最適な表示形式を選択してください。

JSON 回答形式

生 JSON からの応答 API:

[
{
"documents": null,
"outputDocuments": [
{
"fileName": "sample.txt",
"barcodeText": null,
"docText": null,
"image": null
}
],
"traceId": null,
"jobId": null,
"statusUrl": null,
"subscriptionUsage": null,
"_metadata": {
"success": true,
"message": "Attachments extracted successfully",
"processingTimestamp": "2025-09-23T20:04:09.290Z",
"sourceFileName": "document.pdf",
"operation": "extractAttachmentFromPdf"
}
}
]

ユースケース​

文書コンテンツ復旧​

  • 埋め込みファイルの復元: 使用する outputDocuments 埋め込まれたファイルを復元するための配列 PDF 文書、元の資料へのアクセスを復元する
  • ファイル名の復元: 元のファイル名を抽出します fileName 適切なファイル識別と整理を維持するためのフィールド
  • 紛失した書類の復元: 以前に埋め込まれていたドキュメントを復元します PDFそれらは元々の形式では入手できなくなっている。

コンテンツ処理と分析​

  • 愛着分析: 個々のファイルを処理します outputDocuments コンテンツの分析、データの抽出、または各ファイルタイプに対する特定の操作を実行するためのコレクション
  • バーコード処理: 活用する barcodeText 在庫管理、追跡、または識別目的で添付ファイルからバーコード情報を抽出および処理するためのフィールド
  • テキストコンテンツ抽出: 活用する docText 検索、分析、またはデータ処理ワークフローのために、ドキュメント添付ファイルからテキストコンテンツを抽出するためのフィールド

ワークフローの自動化と統合​

  • ファイル配布ファイルの種類と内容分析に基づいて、抽出した添付ファイルを適切なシステム、フォルダ、またはユーザーに自動的に配布します。
  • コンテンツのアーカイブ: 使用する _metadata.traceId 抽出結果を監査証跡として保持しつつ、抽出したファイルを構造化されたアーカイブシステムに整理する。
  • マルチシステム統合抽出したファイルを外部の文書管理システム、クラウドストレージプラットフォーム、またはビジネスアプリケーションと統合する

ヘルプが必要な場合​