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

複数のドキュメントを生成する - バッチクリエーター Zapier

PDF4me 複数のドキュメントを生成する は Zapier 1 つのテンプレートをマージするアクション JSON または XML 配列を1つの実行で、配列の要素ごとに1つのパーソナライズされたドキュメントを生成します。契約書、請求書、証明書、手紙などの一括処理に使用できます。次のZapステップまたはループで使用するドキュメントの配列を返します。

このアクションが何をするか

1つの単語を取ります。 HTML、 PDFメールマージ、または Google Docs テンプレートと、各オブジェクトが 1 つのドキュメントのフィールド値を表すデータ配列を用意し、配列の各項目ごとに同じマージを 1 回実行します。結果として、同じテンプレートと出力形式を共有する生成済みドキュメントの配列が作成され、ループ処理の準備が整います。 Zapier メール送信やアーカイブなどの文書ごとの操作用。

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

認証 API リクエスト​

アクセスするには PDF4me ウェブ API を通して Zapierすべてのリクエストには適切な認証情報を含める必要があります。認証により安全な通信が保証され、承認されたユーザーとしての身元が検証され、シームレスな統合が可能になります。 Zapier ワークフローと PDF4meのバッチ文書生成サービス。

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

出力は配列であり、単一のファイルではありません。
使用 ループする Zapier このステップの後、生成された各ドキュメントを1つずつ処理します。
入力データ形式タイプによって、どのデータフィールドが必要かが決まります。
テキストに設定すると、インラインテキストが必須になります JSON/XML 配列。これをファイルに設定すると、前の手順からマッピングされた配列データファイルの場合は、代わりにデータファイルが必要になります。
バッチ内のすべてのドキュメントは、同じテンプレートと出力形式を共有します。
テンプレートファイルタイプと出力ドキュメントタイプは、配列アイテムごとではなく、実行ごとに一度だけ適用されます。ドキュメント間で異なるのは、各配列オブジェクトのフィールド値のみです。
PDF4meのZapierアクションパネルに、テンプレートファイル、テンプレートファイル名、テンプレートファイルタイプ(PDF)、入力データ形式タイプ(テキスト)、データテキスト、入力データタイプ(Json)、メタデータが表示されます。
アクションパネルの設定:テンプレートファイル、テンプレートファイルタイプ、入力データフォーマットタイプ、および入力データタイプのみが必須です。入力データフォーマットタイプがテキストの場合、データテキストが必須になります。

複数文書生成の主な機能は何ですか?​

  • バッチ文書生成配列項目ごとに1つのドキュメントを単一のテンプレートから1つの操作で作成します。
  • 複数フォーマットのテンプレートをサポート: 言葉、 HTML、 PDFメールマージ、Googleドキュメントのテンプレート
  • 配列データ入力: JSON または XML 配列、インラインテキストまたはマップファイルとして指定
  • 設定可能な出力バッチ全体の出力ドキュメントタイプを選択します(PDF、Docx、およびその他のサポートされている形式)。

パラメータ​

ドキュメント生成複数アクションのパラメーターの完全なリスト。パラメーター名は、 Zapier 上記のスクリーンショットに、設定画面のユーザーインターフェースが表示されています。

クイックセットアップチェックリスト
  1. 地図 テンプレートファイル そして設定する テンプレートファイルの種類 それに合わせて
  2. セット 入力データ形式タイプ テキストまたはファイルに保存してから、 データテキスト または データファイル と共に JSON/XML 配列(ドキュメントごとに1つのオブジェクト)
  3. セット 入力データタイプ 配列形式に合わせ、必要に応じて設定します 出力ドキュメントタイプ
パラメータ必須その機能例
Template FileRequiredTemplate file for generating documents. Supports Word (.docx), HTML, PDF, Mail Merge, or GoogleDocs templates.contract_template.docx
Template File NameOptionalName for the output files. If not provided, the name is picked from Template File.contract_template
Template File TypeRequiredFormat of the template: Word, HTML, PDF, Mail Merge, or GoogleDocs. Defaults to PDF.Word
Input Data Format TypeRequiredWhether the data array is supplied as inline text or a file. Text reveals Data Text. File reveals Data File. Defaults to Text.Text
Data TextRequiredInline JSON or XML array, one object per document to generate. Required when Input Data Format Type is Text.[{"firstname":"John"},{"firstname":"Jane"}]
Data FileRequiredArray data file (JSON or XML) mapped from a previous step. Required when Input Data Format Type is File.customers_data.json
Input Data TypeRequiredStructure of the supplied array, must match Data Text or Data File exactly. Defaults to Json.Json
Output Document TypeRequiredFormat applied to every generated document in the batch: Pdf, Docx, and other supported formats. Defaults to Word.Pdf
Meta DataOptionalMetadata to attach to template fields during generation.-
Keep Pdf EditableOptionalMake the output PDF editable. Defaults to No.No

重要: 必須 Zapier UI: テンプレートファイル、 テンプレートファイルの種類、 入力データ形式タイプ、 入力データタイプ、そして(入力データ形式タイプに応じて) データテキスト または データファイルテンプレートファイル名、出力ドキュメントタイプ、メタデータはオプションです。

複数の返品書類を生成するとはどういうことですか?​

の PDF4me 複数のドキュメントを生成する このアクションは、入力データ配列の項目ごとに1つのエントリを含む、生成されたドキュメントの配列を返します。

分野タイプ内容物
jobIdTextID of the PDF4me job that processed the request.
traceIdTextTrace ID of the request, when PDF4me returns one. Give it to PDF4me support when reporting a problem.
documents[]documentIdTextID PDF4me gives the generated document.
documents[]fileNameTextName of the generated document, without extension.
documents[]fileExtensionTextExtension of the generated document, for example `.pdf`.
documents[]fullFileNameTextName of the generated document, with extension.
documents[]fileUrlTextDownload link of the generated document. Map it into any later step that needs the file.
documents[]fileAlternateUrlTextAlternative download link of the generated document, with the file name at the end of the URL.
documents[]fileSizeNumberSize of the generated document, as reported by PDF4me (0 when PDF4me reports no size).

注記: 出力は 文書の配列入力配列の項目ごとに 1 つ追加します。 ループする Zapier このステップの後、生成された各ドキュメントを反復処理します。

例 JSON レスポンス(ドキュメントの配列):

[
{
"File Name": "document_001",
"File Extension": ".pdf",
"Full File Name": "document_001.pdf",
"File URL": "https://...",
"File Size": 125440
},
{
"File Name": "document_002",
"File Extension": ".pdf",
"Full File Name": "document_002.pdf",
"File URL": "https://...",
"File Size": 127680
}
]

典型的な構成​

ワークフローの例Common Zapier workflow patterns using Generate Documents Multiple.
一括契約生成
  1. 顧客レコードのバッチが契約書作成の準備が整った時点で、トリガーが作動します。
  2. フォーマッターステップは、 JSON クライアントの契約変数ごとに1つのオブジェクトを含む配列。
  3. PDF4me ドキュメント生成マルチマップは、契約テンプレートと配列をデータテキストにマッピングし、出力ドキュメントタイプをPdfに設定します。
  4. ループする Zapier 返された配列を反復処理し、各クライアントにそれぞれの契約書をメールで送信します。
一括請求書発行
  1. 請求サイクルのトリガーは、期間の終わりに作動します。
  2. 会計処理または電子商取引処理では、各顧客の請求書データが1つの配列項目としてエクスポートされます。
  3. PDF4me ドキュメント生成 複数は配列に対して請求書テンプレートを実行し、1つのドキュメントを生成します PDF 顧客一人当たり。
  4. ループする Zapier 各請求書を、その顧客宛てのメールステップに添付します。
コース受講者グループ向けの修了証書発行
  1. トレーニングプログラムが受講者グループを完了したと判断すると、トリガーが作動する。
  2. この配列は、各参加者の名前と完了日を基に作成されます。
  3. PDF4me ドキュメント生成では、テンプレートファイルタイプメールマージを使用して、証明書テンプレートを配列に対して複数回実行します。
  4. ループする Zapier 各証明書は、学習管理またはアーカイブのステップで保存されます。

実践的なヒント​

The output is an array, plan for a loop
Map "File URL" through Looping by Zapier rather than expecting a single downloadable file directly from this step.
Only one of Data Text or Data File is required
Set Input Data Format Type first, it determines which of the two fields becomes required and hides the other.
Input Data Type must match your actual array format
Selecting Json for an XML array, or the reverse, causes the template engine to fail to bind fields correctly across the whole batch.
Output Document Type applies to the whole batch
You cannot mix output formats within one run, every document in the array uses the same Output Document Type.
Large arrays mean more Zap tasks
Each generated document and each loop iteration counts toward your Zapier task usage, factor batch size into plan limits.

チートシート​

分野価値
ActionGenerate Documents Multiple
Template File[Mapped from previous step]
Template File TypeWord / HTML / PDF / Mail Merge / GoogleDocs
Input Data Format TypeText (or File)
Data Text[{"firstname":"John"},{"firstname":"Jane"}]
Input Data TypeJson
Output Document TypePdf

よくある質問​

How do I generate multiple documents from one template in Zapier?+
Add the PDF4me Generate Documents Multiple action to a Zap, map a Template File and set Template File Type, then provide a JSON or XML array with one object per document in Data Text or Data File. The action returns one generated document per array item.
What is the difference between Generate Documents Multiple and Generate Document Single?+
Generate Document Single merges a template with one JSON or XML object and returns one document. Generate Documents Multiple merges the same template with an array of objects and returns an array of documents, one per array item. See Generate Document Single for the one-document version.
How do I process each generated document separately?+
The action returns an array, not a single file. Add Looping by Zapier after this step to iterate through the array and run one or more actions, such as sending an email or uploading a file, once per generated document.
Do I need to supply Data Text or Data File?+
Only one, depending on Input Data Format Type. Set it to Text to make Data Text required for an inline JSON or XML array, or to File to make Data File required for an array data file mapped from a previous step.
Can I control the output format of the generated documents?+
Yes. Output Document Type sets the format, such as Pdf or Docx, applied to every document in the batch. All documents in one run share the same output format.

関連アクション​

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

複数のドキュメントを生成する
同じバッチテンプレートマージモジュールがビジュアルに接続されています Make 配列反復処理が組み込まれたシナリオ。
n8nで複数のドキュメントを生成する
同等のもの n8n 自己ホスト型ワークフローやコード量の多いワークフロー内でバッチドキュメント生成を行いたい開発者向けのノード。
Power Automateで複数のドキュメントを生成する
Microsoft 365 流れ SharePoint また、既に標準化されている組織向けの OneDrive も Power Automate。
ドキュメント生成 複数のREST API
生 PDF4me API このアクションの背後にあるエンドポイント。カスタムバックエンドコードやPostmanテストに使用できます。

業界におけるユースケースとアプリケーション​

  • 一括契約書作成: 顧客オンボーディング用の複数の個別契約を作成する
  • 法的通知の配布複数の受信者向けにカスタマイズされた法的通知を生成する
  • 契約処理顧客固有の条件に基づいて一括契約書の作成を自動化する
  • 文書自動化バッチ処理で法律文書のワークフローを効率化する

ヘルプが必要な場合​