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

スプリット PDF テキストを使用して n8n アクション

PDF4me スプリット PDF テキストによる 分ける PDF 検出されたテキストパターンとコンテンツに基づく文書 n8n 自動化ワークフロー。プロセス PDFs 経由 n8n トリガー、バイナリデータ、base64文字列、または公開 URLs 特定のテキスト文字列を自動的に検出し、テキスト位置で文書を分割し、検出されたコンテンツに基づいてファイルを整理して、インテリジェントなファイル名付けを実現します。このソリューションは、請求書の分離、契約書の分割、文書の一括処理、コンテンツベースの整理、自動ファイリング、およびテキストベースの文書分類ワークフローなど、正確なテキスト検出とインテリジェントな文書分割、シームレスな統合が求められる用途に最適です。

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

設定​

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

前提条件:

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

構成:

  1. 追加 PDF4me ノードからワークフローへ
  2. 「分割」を選択 PDF 「テキストによる」アクション
  3. 入力パラメータを設定します(下記参照)。
PDFをテキストで分割

パラメータ​

Splitのパラメータ一覧 PDF テキストアクションによる。これらのパラメーターを設定して、テキストベースのアクションを制御します。 PDF 分割。

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

パラメータ必須その機能例
Input Data TypeRequiredChoose how to provide the PDF data. Options: Base64 String, Binary Data, URL. Default is `Binary Data`.Binary Data
Base64 ContentConditionalBase64 encoded PDF content. Shown when Input Data Type is Base64 String.UEsDBBQABgAI...
Binary Property NameConditionalName of the binary property containing the PDF file. Shown when Input Data Type is Binary Data. Default is `data`.data
PDF URLConditionalURL to the PDF file. Shown when Input Data Type is URL.
Text to SearchRequiredText to search for splitting.page 1, line 10.
Split Text PageRequiredWhere to split relative to the text page. Options: After, Before. Default is `After`.After
File NamingRequiredFile naming convention for split files. Options: Name As Per Order, Name As Per Page. Default is `Name As Per Order`.Name As Per Order
Output Binary Field NameOptionalName of the binary property to store the output PDF file. 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.{ "outputDataFormat": "base64", "preserveMetadata": true, "optimizeForPrinting": false, "compressionLevel": "medium" }

出力​

出力パラメータ​

分野タイプ内容物
successBooleanTrue when the operation succeeded.
messageStringStatus message, `PDF split into <n> file(s) successfully`.
folderNameStringAlways `sample_split_text_outputs`. Informational only.
outputDirectoryString`/tmp/` followed by folderName. Informational only: the node does not write any files there.
totalFilesNumberNumber of split files returned.
sourcePdfStringAlways `sample.pdf`, whatever the input file is called.
responseTypeStringWhich PDF4me response format the node read, for example `Multiple PDFs (splitedDocuments)`.
filesStringOne entry per split file: fileName, pageIndex (position of the part, from 1), binaryProperty (name of the binary property that holds it), mimeType, fileType (`PDF file`) and fileSize (bytes).
dataBinaryOne PDF per split part, all on the single output item, in binary properties named after Output Binary Field Name with a counter (`data_1`, `data_2`, ...). No ZIP file is returned; if PDF4me answers with a ZIP the node stops with an error.

N8N 行動対応​

の PDF4me スプリット PDF テキストによる API 複数の形式で表示可能なレスポンスを返します。ニーズに最適な表示形式を選択してください。

JSON 回答形式

生 JSON からの応答 API:

[
{
"success": true,
"message": "PDF split by text successfully",
"fileName": "text_split_output.pdf",
"mimeType": "application/pdf",
"fileSize": 125430,
"docName": "text_split_output.pdf",
"textSplitCompleted": true,
"textMatchesFound": 3,
"filesGenerated": 4
}
]

ユースケース​

文書処理とコンテンツ管理​

  • 大きな文書を特定のテキストマーカーまたはセクションヘッダーで分割し、部門やプロセスごとに整理された管理しやすいファイルを作成します。
  • 法的文書を処理する際は、特定の条項マーカーまたはセクション区切り線で分割し、各法的セクションごとに個別のファイルを作成します。
  • 章タイトルやセクション見出しに基づいてレポートやマニュアルを自動的に分類し、コンテンツの整理を改善する。

ビジネスプロセス自動化​

  • 請求書バッチを「請求書番号」や「支払期日」などの特定のテキストパターンで検索して分割し、各取引ごとに個別の請求書ファイルを作成します。
  • 契約書や合意書を処理する際は、「セクション」や「条項」などの特定のテキストマーカーで分割し、各セクションごとに個別のファイルを作成します。
  • 財務文書の整理を自動化するために、「四半期報告書」や「年次概要」などのテキストパターンで、報告期間ごとに分割します。

コンテンツ配信とワークフロー管理​

  • 機密文書を特定のテキストマーカーで分割し、アクセス要件に基づいて異なる関係者向けに個別のファイルを作成する。
  • トレーニング教材を「モジュール」や「レッスン」などのテキストパターンで分割し、異なる対象者向けに個別の学習モジュールを作成する。
  • さまざまなユーザータイプ向けに、「APIリファレンス」や「ユーザーガイド」などのテキストマーカーで分割することで、技術文書の整理を自動化します。

ヘルプが必要な場合​