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

テキストスタンプを追加する PDF で n8n

テキストスタンプを追加する PDF は n8n ノードによる PDF4me カスタムテキスト(機密、下書き、承認済み、または任意のカスタム文字列)を重ねて表示します PDF 正確な配置、フォント、色、透明度、回転を制御できるページ。機密マーク、承認スタンプ、下書きラベル、手動編集不要の自動文書ブランディングなどにご利用いただけます。

このノードの機能

PDF4me: テキストスタンプを追加 PDF 選択した水平方向と垂直方向の位置に、対象とするすべてのページにテキスト文字列をレンダリングします。フォントサイズ、フォントカラー、不透明度、回転角度、余白、背景/前景レイヤーを制御できます。ソースを受け入れます。 PDF バイナリデータを介して、 Base64 文字列、または URL機密ラベル、下書きマーカー、承認スタンプ、著作権表示、斜め透かしスタイルのブランディングに最適です。

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

認証 API リクエスト​

毎 PDF4me ノード n8n 有効な 接続するための認証情報. 作成または選択して、 PDF4me API ワークフローがスタンプ発行リクエストを安全に認証できるようにするためのキー。

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

必須項目は6つだけです
根本的な PDF4me API 必要なのは PDF 入力、出力ファイル名、テキスト、ページ数、水平方向の配置、垂直方向の配置。フォント、色、透明度、回転、余白、背景、非同期処理にはすべて、動作するデフォルト値が用意されています。
背景は重ね合わせを制御するものであり、表示を制御するものではありません。
背景をtrueに設定すると、スタンプは既存のページコンテンツの背後に表示されます(さりげない透かしのような外観)。背景をfalse(デフォルト)に設定すると、スタンプはページの上部に表示されます。これは、目に見える機密性マークや承認マークに最適です。
回転と不透明度を組み合わせることで、古典的な斜めの透かし模様が生まれます。
回転角度を45度に設定し、不透明度を30~50程度に下げ、背景を有効にすると、下書きや機密文書に使用される、従来型の傾斜した半透明の透かし効果が得られます。
PDFにテキストスタンプを追加するn8nノードは、アクション「PDFにテキストスタンプを追加」、入力データタイプ「バイナリデータ」、入力バイナリフィールド「データ」、出力ファイル名「document_with_text_stamp.pdf」、ドキュメント名「document.pdf」、テキスト「機密」、ページ数「1」、水平方向の配置「中央」、垂直方向の配置「中央」、水平方向の余白と垂直方向の余白が0に設定されています。

PDF4me テキストスタンプを追加する PDF ノードパラメータパネル n8n

Add Text Stamp はどのようなパラメータを使用しますか? PDF 必要?​

必須: 入力データタイプ、出力ファイル名、テキスト、ページ数、水平方向の配置、垂直方向の配置。条件付きフィールド(入力バイナリフィールド、Base64ドキュメントコンテンツ、ファイルURL)は、親の入力データタイプが選択されている場合にのみ表示されます。ドキュメント名、余白、不透明度、フォント、回転、背景、非同期処理、バイナリデータ出力名など、その他の項目はすべてオプションで、デフォルト値が設定されています。

パラメータ必須その機能例
Input Data TypeRequiredChoose how to provide the PDF file to add text stamp to. Options: Binary Data, Base64 String, URL. Default is `Binary Data`.Binary Data
Input Binary FieldConditionalName of the binary property that contains the PDF file. 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.JVBERi0xLjQK...
PDF URLConditionalURL to the PDF file to add text stamp to. Shown when Input Data Type is URL.
Output File NameOptionalName for the output PDF file with text stamp. Default is `document_with_text_stamp.pdf`.document_with_text_stamp.pdf
Document NameOptionalName of the source PDF file for reference. Default is `document.pdf`.document.pdf
TextRequiredText to be stamped on the PDF.CONFIDENTIAL
PagesOptionalPage range where text stamp should be applied. Default is `all`.all
Horizontal AlignmentOptionalHorizontal alignment of the text stamp. Options: Left, Center, Right. Default is `Center`.Center
Vertical AlignmentOptionalVertical alignment of the text stamp. Options: Top, Center, Bottom. Default is `Center`.Center
Horizontal Margin (Mm)OptionalHorizontal margin in millimeters. Default is `0`.0
Vertical Margin (Mm)OptionalVertical margin in millimeters. Default is `0`.0
OpacityOptionalOpacity of the text stamp (50 = 50% transparent). Default is `50`.50
Font SizeOptionalFont size (8-72). Default is `24`.24
Font ColorOptionalFont color for the text stamp (hex color code). Default is `#FF0000`.#FF0000
RotationOptionalRotation angle of the text stamp in degrees. Default is `45`.45
BackgroundOptionalWhether the text stamp is placed in the background. Default is `No`.No
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 持ち運んでいるアイテム JSON メタデータと刻印されたバイナリ PDF。

出力​

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

分野タイプ内容物
fileNameStringOutput File Name; `.pdf` is set as extension when it does not end in .pdf.
mimeTypeStringMIME type of the resulting file, for example `application/pdf`.
fileSizeNumberSize of the resulting file in bytes.
successBooleanTrue when the operation succeeded.
messageStringStatus message, `Text stamp added successfully`.
dataBinaryThe PDF with the text stamp.

テキストスタンプを追加するにはどうすればいいですか? PDF で n8n?​

  1. 追加 PDF4me あなたの n8n ワークフローを選択し、 テキストスタンプを追加する PDF アクション。
  2. で 接続するための認証情報選択してください PDF4me 認証情報またはクリック 新しい認証情報を作成する そしてあなたの API 鍵。
  3. セット 入力データタイプ に バイナリデータ (デフォルト)、 Base64 弦、 または URL 対応するソースを提供する PDF 分野。
  4. セット 出力ファイル名 (必ず .pdf)そしてオプションで 文書名 追跡のため。
  5. 入力 文章 (例えば。 CONFIDENTIAL) ページ ターゲットにし、 水平方向の配置 / 垂直方向の配置。
  6. オプションで調整 水平余白、 垂直マージン、 不透明度、 フォントサイズ、 フォントの色、 回転、 そして 背景。
  7. 有効にする 非同期処理 必要に応じて大きなドキュメントの場合。ノードを実行し、スタンプされた PDF 次のステップへ。

典型的な構成​

ワークフローの例Common n8n workflow patterns using Add Text Stamp to PDF.
外部共有前に機密印を押印してください。
  1. Googleドライブのトリガーは、新しいファイルが送信ドキュメントフォルダに保存されたときに作動します。
  2. PDF4me テキストスタンプを追加する PDF テキスト「機密」、水平方向の中央揃え、垂直方向の上揃え、フォントの色は赤で実行されます。
  3. 刻印 PDF レビュー済みのフォルダにアップロードされ、受信者にメールで送信されます。
生成されたレポートに斜めの「DRAFT」透かしが入ります。
  1. スケジュールトリガーは週次レポートを生成します PDF 経由 PDF4me ドキュメントを生成します。
  2. PDF4me テキストスタンプを追加する PDF テキストを「下書き」、回転角度を45度、不透明度を30度、背景を「true」に設定して実行すると、微妙な斜めの透かしが表示されます。
  3. 透かし入りの下書きは、最終承認前にSlackのレビューチャンネルに投稿されます。
署名後、特定のページに承認印が押される
  1. 承認ウェブフックは、管理者が社内ツールで文書を承認済みとしてマークした時点で起動します。
  2. PDF4me テキストスタンプを追加する PDF テキスト承認済み、ページ設定は署名ページのみ、垂直方向の配置は下向きで実行されます。
  3. 最終決定 PDF アーカイブされています SharePoint ファイル名に承認日を含める。
ホストされているPDF URLからの一括スタンプ
  1. Loop Over Itemsノードはドキュメントのリストを反復処理します URLデータベースのエクスポートから取得したデータ。
  2. PDF4me テキストスタンプを追加する PDF 入力データ型で実行 URL、 ファイル URL アイテムごとに設定され、信頼性を高めるために非同期処理が有効になっています。
  3. スタンプが押された各出力は、ソースレコードIDをファイル名としてクラウドストレージに書き込まれます。

実践的なヒント​

Only 6 fields are required
Input, Output File Name, Text, Pages, Horizontal Alignment, and Vertical Alignment. Do not feel obligated to set every optional field.
Use Background true for subtle watermarks
Combine Background true with a lower Opacity (30-50) so the stamp does not obscure page content underneath.
Pages accepts open ranges
Use 2- to stamp from page 2 to the end, useful for skipping a cover page while stamping the rest.
Font Color must be a valid hex code
Values like #FF0000 work; unrecognized color names or malformed hex strings fail the request.
Enable Async Processing for large PDFs
Large or high-page-count documents benefit from asynchronous processing so the workflow execution does not time out.
Document Name is reference-only
It labels the source file for tracking; it does not affect stamping behavior or the output filename.

チートシート​

分野価値
ActionAdd Text Stamp To PDF
Input Data TypeBinary Data
Input Binary Fielddata
Output File Namedocument_with_text_stamp.pdf
TextCONFIDENTIAL
Pages1 (or "all")
Horizontal AlignmentCenter
Vertical AlignmentCenter
Opacity50 (lower for subtle watermark)
Rotation0 (45 for diagonal watermark)
CredentialsPDF4me API credential

よくある質問​

Which fields are actually required for Add Text Stamp to PDF?+
Only six: the PDF input (via Input Data Type), Output File Name, Text, Pages, Horizontal Alignment, and Vertical Alignment. Font, color, opacity, rotation, margins, background, and async processing are all optional with sensible defaults. See Adobe's stamp-placement guidance for how alignment and margins interact on a page.
Can I stamp only some pages instead of the whole document?+
Yes. Pages accepts a single page (1), a range (2-5), a mixed list (1,3,7-10), or an open range (2-). Leaving it unset processes every page.
How do I create a diagonal watermark-style stamp?+
Set Rotation to a non-zero angle such as 45 for a classic diagonal watermark, combine with a lower Opacity value and Background set to true so the stamp sits behind the page content instead of on top of it.
What is the difference between Background true and false?+
Background true places the stamp behind existing page content, ideal for subtle watermarks. Background false (the default) places it in the foreground, on top of existing content, ideal for visible approval or confidentiality marks.
Can I stamp large PDFs asynchronously?+
Yes. Enable Async Processing for large documents so the node processes in the background instead of holding the workflow execution open, improving reliability for batch or high-page-count PDFs.
Does the stamp text support dynamic values?+
Yes, map an n8n expression into Text (for example a customer name or timestamp from an upstream node) since the field accepts any string, the same way n8n handles dynamic values across the platform per the n8n expressions documentation.

関連アクション​

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

ヘルプが必要な場合​