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

かぶせる PDFs で n8n

かぶせる PDFs は PDF4me ノードアクション n8n 1つを配置する PDF 別のものの上に重ねて、両方を同じものの上に組み合わせる pages それらを後から追加するのではなく、この機能を使って、デザイン済みのレターヘッドを生成済みのコンテンツにスタンプしたり、証明書のフレームを適用したり、承認済みのテンプレートを受信文書の上に重ねたりすることができます。しかも、ページを1枚も追加する必要はありません。

このノードの機能

PDF4me: かぶせる PDFs 2つ必要 PDFs、 ベース 背景として機能し、 レイヤー 上に位置するもので、両方が同じ場所に表示される単一のドキュメントを返します。 pages各ファイルには独自の入力タイプがあり、ベースはバイナリデータとして前のノードから取得され、レイヤーは URLマージとは異なり、ページ数が増えないため、レターヘッド、フレーム、テンプレートスタンプなどに最適なツールです。

関連ブログ記事(1)

認証 API リクエスト​

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

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

オーバーレイはマージされません
追加項目のマージ pages つまり、カウントが加算されるということです。重ね合わせると、両方のドキュメントが同じ上に積み重なります。 pagesページ数は変更されない。
2つのファイル、2つの独立した入力タイプ
ベース PDF 入力タイプとレイヤー PDF 入力タイプは個別に設定されるため、一方のファイルはバイナリデータ、もう一方のファイルは URL。
表示順序が変わると、何が引き続き表示されるかが変わる
このレイヤーはベースレイヤーの上に配置されます。単色の背景を持つレイヤーは、下のコンテンツを隠してしまう可能性があるため、まずはサンプルペアで両方の配置をテストしてください。
n8n の PDF4me ノードは、アクションを PDF オーバーレイに設定し、ベース PDF 入力タイプとレイヤー PDF 入力タイプの両方をバイナリ データ、ベース PDF バイナリ フィールド データ、レイヤー PDF バイナリ フィールド データ、出力ファイル名 overlayed_output.pdf、およびバイナリ データ出力名データを指定します。

PDF4me かぶせる PDFs パラメーターパネル n8n両方の入力タイプがバイナリデータに設定されている場合

オーバーレイ vs マージ vs ウォーターマーク​

追加コンテンツを PDFそれぞれが異なる文書を生成する。

アプローチ影響 pages最適なフィット感
Overlay PDFsBoth documents appear on the same pages, page count unchangedBranding that already exists as a designed PDF, such as a letterhead or certificate frame
Merge PDFsDocuments follow one another, page counts add upContent that genuinely belongs in sequence as one longer document
Add watermarkSimple text or a single image drawn onto the existing pagesA short notice such as DRAFT or CONFIDENTIAL, where no designed PDF layer exists

Overlay のパラメータは何ですか? PDFs 必要?​

必須: アクション、両方の入力タイプ、各入力タイプに対応するソースフィールド、および出力ファイル名。バイナリデータ出力名と詳細オプションの項目には、動作するデフォルト値が適用されます。

パラメータ必須その機能例
Base PDF Input TypeRequiredChoose how to provide the base PDF file. Options: Binary Data, Base64 String, URL. Default is `Binary Data`.Binary Data
Base PDF Binary FieldConditionalName of the binary property containing the base PDF file. Shown when Base PDF Input Type is Binary Data. Default is `data`.data
Base PDF Base64 ContentConditionalBase64 encoded base PDF content. Shown when Base PDF Input Type is Base64 String.JVBERi0xLjQK...
Base PDF URLConditionalURL to the base PDF file. Shown when Base PDF Input Type is URL.https://example.com/base.pdf
Layer PDF Input TypeRequiredChoose how to provide the layer PDF file. Options: Binary Data, Base64 String, URL. Default is `Binary Data`.Binary Data
Layer PDF Binary FieldConditionalName of the binary property containing the layer PDF file. Shown when Layer PDF Input Type is Binary Data. Default is `data`.data
Layer PDF Base64 ContentConditionalBase64 encoded layer PDF content. Shown when Layer PDF Input Type is Base64 String.JVBERi0xLjQK...
Layer PDF URLConditionalURL to the layer PDF file. Shown when Layer PDF Input Type is URL.https://example.com/letterhead.pdf
Output File NameOptionalName for the output overlayed PDF file. Default is `overlayed_output.pdf`.overlayed_output.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.
Binary Data Output NameOptionalCustom name for the binary data in n8n output. Default is `data`.data

出力フィールド​

成功したランは1 n8n 複合品を運ぶアイテム PDF。

出力​

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

分野タイプ内容物
fileNameStringFile name of the resulting file.
mimeTypeStringMIME type of the resulting file, for example `application/pdf`.
fileSizeNumberSize of the resulting file in bytes.
successBooleanTrue when the operation succeeded.
inputFileCountStringAlways 2 (base and layer PDF).
dataBinaryThe overlaid PDF.

オーバーレイの設定方法を教えてください PDFs で n8n?​

  1. 追加 PDF4me あなたの n8n ワークフローを選択し、 かぶせる PDFs アクション。
  2. で 接続するための認証情報選択してください PDF4me 認証情報またはクリック 新しい認証情報を作成する そしてあなたの API 鍵。
  3. セット ベース PDF 入力タイプ そして レイヤー PDF 入力タイプこれらは独立しているため、各ファイルは異なる方法で到着する可能性があります。
  4. 対応するソースフィールドに入力してください。例: ベース PDF バイナリフィールド そして レイヤー PDF バイナリフィールド両方ともデフォルトは data。
  5. セット 出力ファイル名 (必ず .pdf)
  6. ノードを実行し、結合されたデータをルーティングします。 PDF露出した バイナリデータ出力名次のステップへ。

典型的な構成​

ワークフローの例Common n8n workflow patterns using Overlay PDFs.
作成された文書のレターヘッド
  1. ブランド要素のないテンプレートから文書が生成されます。
  2. かぶせる PDFs 承認されたレターヘッドを適用します PDF から取得 URL レイヤーとして。
  3. ブランド化された製品は、デザイナーの手が一切入っていない状態で出荷される。
動的コンテンツ上の証明書フレーム
  1. コース完了データは平易な PDF 受取人名とともに。
  2. かぶせる PDFs デザインされた証明書の枠線をその上に重ねる。
  3. 完成した証明書はそれぞれ受取人にメールで送信されます。
審査書類への承認印
  1. 文書が提出されると、ワークフローにおける承認ステップが完了します。
  2. かぶせる PDFs 事前にデザインされ承認されたスタンプ層を適用します。
  3. 押印済みの控えは記録システムに登録されます。
バッチテンプレートアプリケーション
  1. 「アイテムのループ」ノードは、受信した仕入先文書のフォルダを反復処理します。
  2. かぶせる PDFs 同じレイヤーを適用する PDF から URL それぞれに。
  3. すべての文書は、一貫した枠組みの中でアーカイブに保存される。

実践的なヒント​

Test both orderings before a batch run
Swapping which file is base and which is layer changes what stays visible. Prove it on one sample pair rather than discovering it across a hundred documents.
Design the layer with transparency in mind
A layer PDF with a solid white background will hide the base underneath. Frames, borders, and letterheads work best when the middle is genuinely empty.
Match page sizes where you can
A layer built at the same page size as the base lines up predictably. Mismatched geometry is the usual reason a stamp lands in the wrong place.
Mix input types to avoid extra nodes
Keeping a static letterhead at a URL while the base arrives as binary from the previous node saves fetching the template into the workflow separately.
Reach for merge when page count should grow
If the second document is meant to be read after the first rather than on top of it, Merge Multiple PDFs is the correct action.
Check overlayCompleted alongside success
The output carries an explicit overlay confirmation flag, which is a more specific signal than the generic success boolean alone.

チートシート​

分野価値
ActionOverlay PDFs
Base PDF Input TypeBinary Data
Layer PDF Input TypeBinary Data
Base PDF Binary Fielddata
Layer PDF Binary Fielddata
Output File Nameoverlayed_output.pdf
Binary Data Output Namedata
Advanced OptionsNo properties
CredentialsPDF4me API credential

よくある質問​

What is the difference between overlaying PDFs and merging PDFs?+
Merging appends documents so the page count adds up and the files read one after another. Overlaying places the layer PDF on top of the base PDF on the same pages, so the page count does not grow and both sets of content appear together. Use overlay for letterheads, watermarks, and template stamps, and use merge when documents should follow each other.
Which file should be the base and which should be the layer?+
The base PDF is the background, and the layer PDF is placed on top of it, following the page content model described in the ISO 32000 PDF specification. For a letterhead applied to generated content, the content is usually the base and the branded template is the layer. If the layer has a solid background it can obscure what sits beneath, so test the order both ways on a sample first.
What happens if the two PDFs have different page counts?+
The two documents do not have to be identical, but the result is easiest to predict when they match or when the layer is a single page intended to repeat as a stamp. Run one representative pair through the node and inspect the output before committing a batch, since mismatched lengths are the most common cause of a surprising result.
Can the base and layer PDFs come from different sources?+
Yes. Base PDF Input Type and Layer PDF Input Type are set independently, so the base can arrive as Binary Data from a previous node in your n8n workflow while the layer is fetched from a URL, or any other combination.
Should I use Overlay PDFs or a watermark action for branding?+
Use a watermark action when you want simple text or a single image placed on the pages. Use Overlay PDFs when your branding already exists as a full PDF, such as a designed letterhead or a pre-approved certificate frame, because it preserves the layer document exactly as designed.

関連アクション​

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

ヘルプが必要な場合​