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

ドキュメントを1つ生成 Make

ドキュメントを生成 シングル は PDF4me モジュール Make これは、1 つのテンプレートを 1 つのデータセットとマージし、実行ごとに 1 つの完成ドキュメントを返します。5 つのテンプレート ファミリーをサポートしています (Word、 HTML、 PDF フォーム、メールマージ、 Google Docs)と2つのデータ形式(JSON そして XML)、そして出力 PDF、 Word、 Excel、 または HTMLコードを書かずに、請求書、契約書、証明書、およびパーソナライズされた手紙に使用できます。

このモジュールの機能

PDF4me ドキュメントを生成 シングル をマージする PDF4me Word テンプレート、HTML、メールマージ、 Google Docsまたは、PDFフォームテンプレート JSON、 XML、 または CSV データに基づいてパーソナライズされた Pdf、 Word、 または Html 1つのファイルに Make モジュール。複数のステップからなるメールマージシナリオを、単一の設定可能なアクションに置き換えます。任意のクラウドストレージモジュールからテンプレートファイルをマッピングします(Dropbox、 Google Drive、 OneDriveデータをインラインまたはマップされたファイルとして提供し、生成されたデータをパイプで渡します。 書類 出力は直接ファイルのアップロード、メール送信、または下流の任意の処理に渡されます。 Make モジュール。

関連ブログ記事(4)
GoogleドキュメントのテンプレートとJSONをPDFまたはWordに変換!たった4つのステップで、コードは一切不要!
MakeでGoogleドキュメントのテンプレートからPDFまたはWordを生成する方法:Dropbox(テンプレート+JSON)→ PDF4meでドキュメントを生成(テンプレートファイルタイプ:Googleドキュメント)→ アップロード。プレースホルダーをデータと結合するだけで、コードは不要です。スクリーンショット付きのステップバイステップガイド。
投稿を読む →
Dropbox に Word テンプレートと JSON を保存? Make でメールマージを実行。PDF または Word を 4 クリックで作成!
Makeでメールマージを自動化するには:Dropbox(Wordテンプレート+JSON)→ PDF4meでドキュメントを生成(テンプレートファイルタイプ:メールマージ)→ アップロード。プレースホルダーをデータとマージし、PDFまたはWord形式で出力します。スクリーンショット付きのステップバイステップガイド。
投稿を読む →
Dropboxフォルダに新しいファイルが追加されましたか?Makeでメールマージを実行しましょう。たった6つのステップで、完全に自動化されます!
Makeにおけるトリガーベースのメールマージ:Dropboxに新しいファイルが表示されたら、JSONデータを検索し、PDF4meの「文書生成(メールマージ)」を実行して、WordとPDFをアップロードします。スクリーンショット付きの手順をステップバイステップで解説します。
投稿を読む →

テンプレートの種類を選択してください​

あなたに合ったガイドを選んでください テンプレートファイルの種類各ページには、正確なサンプル テンプレート、データ ファイル (JSON、 XML、 CSV)、推奨フィールド値、およびクイックテストシナリオ Make。

認証 API リクエスト​

毎 PDF4me モジュール Make 有効な 繋がり. 作成または選択して、 PDF4me API シナリオが文書生成要求を安全に認証できるようにするためのキー。

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

テンプレートファイルの種類はテンプレートファイルと一致する必要があります
選択したテンプレートファイルの種類は、テンプレートの下にマッピングされたファイルと一致している必要があります。 .docx マッピングされた HTML 選択した型が実行時にエラーになります。各テンプレートファミリーが使用する正確なプレースホルダー構文については、上記の該当ガイドを参照してください。
文書データテキストまたは文書データファイルのいずれかを提供してください。
ドキュメントデータテキストはインラインを受け付けます JSON または XML また、以前のモジュールからマッピングされた短いペイロードに最適です。ドキュメントデータファイルは、以前のバイナリファイルを受け入れます。 Make ステップ方式は、大規模なデータ文書や事前に作成されたデータ文書に最適です。それぞれの状況に応じて、どちらか一方を使用してください。
出力はドキュメントに表示され、次のモジュールに進む準備が整いました。
生成されたファイルは、 書類 出力フィールド、その名前は ファイル名ペアを直接アップロードファイルにパイプします(Dropbox、 ドライブ、 OneDrive)、メール添付ファイルの送信、またはバイナリを受け入れる下流モジュール。 PDF4me リクエストをバックグラウンドジョブとして処理し、 Make 次のモジュールを実行する前に、結果を待ちます。
PDF4me ドキュメント生成シングルモジュールを作成します。接続は PDF4me アカウントに設定されています。テンプレートファイルタイプは PDF4me Word テンプレートです。出力タイプは Word です。ファイルソースはマップで、テンプレート名は前のステップのファイル名からマッピングされ、テンプレートは前のステップのデータからマッピングされています。ドキュメントデータタイプは JSON で、ドキュメントデータテキストには、名前、年齢、生年月日フィールドを含むインライン JSON オブジェクトが表示されます。ドキュメントデータファイルとメタデータ JSON は空です。

ドキュメントを生成する シングルモジュール構成 Make必須項目(赤いアスタリスク):接続、テンプレートファイルタイプ、出力タイプ、テンプレート名、テンプレート、およびドキュメントデータタイプ。ファイルがマップに設定されている場合、前のモジュールからテンプレート名とテンプレートを接続し、ドキュメントデータテキストまたはドキュメントデータファイルを介してデータを提供します。

ドキュメント生成シングルユースのパラメータは何ですか? Make?​

必須 Make UI: 接続、テンプレートファイルの種類、テンプレート名、テンプレート、およびドキュメントのデータ型(すべて赤いアスタリスクでマークされています)。 条件付き: テンプレートファイルタイプが設定されると表示される出力タイプと、 PDF 編集可能(PDFフォームテンプレートでのみ表示されます)。 オプション: ドキュメントデータテキスト、ドキュメントデータファイル、メタデータJSONの3種類がありますが、いずれか一方のデータフィールドにペイロードが格納されている必要があります。

パラメータ必須その機能例
ConnectionRequiredPDF4me connection for the scenario. Click Add to create a connection with your API key, or select an existing connection from the dropdown.My PDF4me connection
Template File TypeRequiredSelect the template family. Options: PDF4me Word Template, Html, Mail Merge, Google Docs, Pdf Form. Defaults to PDF4me Word Template. Open the matching guide for placeholder syntax.PDF4me Word Template
Output TypeConditionalFormat of the generated document. The formats offered and the default both depend on Template File Type: with Mail Merge, Google Docs or Pdf Form it defaults to Pdf, with Html to Html, and with PDF4me Word Template the spec records Docx. See the table under How do I choose the Output Type for every option list.Pdf
Keep PDF EditableConditionalAppears only when Template File Type is Pdf Form. Yes keeps the filled form fields editable in the result, No flattens the form so the values can no longer be changed. Defaults to No.No
FileRequiredHow the template file is supplied. Choose a storage module shortcut (for example Dropbox Download a File) or select Map to wire Template Name and Template from any prior step.Map
Template NameRequiredTemplate file name including extension. Map from the previous module filename output (shown as 1. File Name when Dropbox Download a File is upstream).1. File Name
TemplateRequiredTemplate file binary for document generation. Map from the previous module data output (shown as 1. Data when Dropbox Download a File is upstream).1. Data
Document Data FileOptionalMap source document file content from a previous action when your data payload is a file rather than inline text. Use when Document Data Text is empty.1. Data
Document DataTypeRequiredChoose document data type. Options: Json, XML, Csv. Defaults to Json.Json
Document Data TextOptionalInput data text to generate the document. Paste JSON, XML, or CSV inline or build it with Make expressions. Use when Document Data File is empty.{ "Name": "John", "Age": 16 }
Meta Data JsonOptionalMetaData for fields. Shown without an asterisk in the Make UI. Leave empty for most templates.

出力タイプを選択するにはどうすればいいですか Make?​

出力タイプ 一度だけ出現します テンプレートファイルの種類 設定されており、各テンプレートファミリーは独自のリストを提供します。

テンプレートファイルの種類出力タイプのオプションデフォルト
PDF4me Word テンプレートPDF、 WordDocx
HTMLHTMLHTML
メールマージPDF、 WordPDF
Google DocsPDF、 WordPDF
PDF形式PDFPDF

の PDF4me Word テンプレート行は統合仕様に記録されているとおりです。デフォルトは Docx その家族向けのオプションリストは Pdf そして WordPDFフォームテンプレートでは、 保つ PDF 編集可能。

PdfPrint-ready, locked layout
Standard choice for invoices, contracts, certificates, and statements. Send via Email or upload to storage as a final deliverable. The only option for a Pdf Form template.
WordEditable .docx output
Use when the recipient needs to edit the generated document such as draft contracts that go back for review or HR letters that need a manual signature line. Offered by the PDF4me Word Template, Mail Merge, and Google Docs families.
HtmlWeb-ready HTML
The only Output Type an Html template offers. Use it for emails, web previews, or downstream rendering in a browser-based viewer.

出力​

このモジュールは1を返します バンドル 実行ごとに、生成されたファイルを 書類 そしてその名前は ファイル名下流モジュールが標準経由で取得できるように準備されています Make データマッピング。 PDF4me リクエストをバックグラウンドジョブとして処理し、 Make 次のモジュールを実行する前に、結果を待ちます。

分野タイプ内容物
File NameFile nameFile name of the resulting generated document. Map it together with Document into the next module, for example to upload or email the file.
DocumentFile (binary data)Content (binary data) of the resulting generated document, in the format chosen under Output Type. Map this into a downstream Upload File, Send Email Attachment, or any module that accepts binary input.

シナリオ例​

一般的なMakeシナリオパターンTypical ways to chain Generate Document Single into a Make flow.
Dropbox テンプレート+Webhookデータをメールで送信 PDF
  1. Webhookが受信する JSON 新しい請求書のために。
  2. Dropbox ファイルをダウンロードすると請求書が読み込まれます Word テンプレート。
  3. ドキュメントを生成する シングル マップ テンプレート名とテンプレートから Dropbox ステップでは、DataTypeをJsonに設定し、Webhookを読み取ります。 JSON ドキュメントデータテキストに変換します。
  4. メール送信:顧客に請求書を送付する際に、メールにドキュメントを添付します。
Airtable 証明書をアップロードする Google Drive
  1. 毎日午前9時に予定通り発砲されます。
  2. Airtable 検索レコードは、新しいコース修了情報を取得します。
  3. イテレータは各レコードをループ処理します。
  4. ドキュメントを生成するシングルマージ Word 記録データと出力を含む証明書テンプレート PDF。
  5. Google Drive ファイルアップロード機能は、各証明書を受信者の名前が付けられた共有フォルダに保存します。
Google Sheets 月次レポートへの行 PDF
  1. 毎月1日に火災発生を計画してください。
  2. Google Sheets 検索行は月ごとの集計データを取得します。
  3. 変換モジュールは行を JSON テンプレートが想定する構造。
  4. ドキュメント生成シングルは、データを含むレポートテンプレートをレンダリングします。出力タイプ PDF。
  5. OneDrive ファイルのアップロード アーカイブ PDF そして Slack 「メッセージを送信」すると、ダウンロードリンクが投稿されます。

よくある質問​

Which template file types does Generate Document Single accept in Make?+
Five template families: PDF4me Word Template (.docx with mustache variables, most common), HTML (file or pasted HTML Code), Pdf Form (fillable .pdf form-field replacement), Mail Merge (Word mail-merge fields), and Google Docs (Google Docs export style .docx). Each has its own setup guide with sample files linked in the Choose your template type section above.
What output formats can the Make module produce?+
Output Type offers only the formats the chosen Template File Type supports: Pdf or Word for the PDF4me Word Template, Mail Merge, and Google Docs families, Html only for an Html template, and Pdf only for a Pdf Form template.
How do I pass JSON data to the template?+
Document DataType defaults to Json, so either paste the JSON object directly into Document Data Text or map a data file from a previous module into Document Data File. Document Data Text is best for small payloads built with Make expressions, Document Data File is best for large or pre-built data documents.
Is Meta Data Json required?+
Meta Data Json is shown without an asterisk in the Make UI, so it is optional in this connector. Use it when your template references document metadata such as title, author, or subject at render time. Leave it empty for most invoice and contract scenarios.
How do I generate many documents in one scenario?+
For one document per record, add a Make Iterator or Search Records loop before Generate Document Single and map each record into the data field. The module runs once per record and returns one file per execution. For true multi-record output in a single call use Generate Documents Multiple instead.
How is this different from the n8n, Zapier, or Power Automate version?+
All four platforms call the same PDF4me Generate Document Single backend. Make is the visual scenario builder, n8n is the developer-friendly self-hosted option, Zapier triggers from 6,000+ SaaS apps, and Power Automate is Microsoft 365 native. The template logic and output format are identical across platforms.

関連アクション​

ヘルプが必要な場合​

すべてのテンプレートファミリーを支えるテンプレートエンジンとマスタッシュ構文については、以下を参照してください。 言葉のポーズ .NET ドキュメント そして Make データ構造リファレンス。