# PDF にテキスト透かしを追加する
Power Automate のフローで、PDF ドキュメントのページに最大3行のテキストを透かしとして付与します。テンプレート、色、透明度を指定できます。
このアクションを使用すると、Power Automate のフロー内で PDF ドキュメントに透かしを追加できます。
<PowerAutomateAction
title="Add a text watermark to a PDF" caption="Add a text watermark to a PDF." fields={[ { label: "File Content", kind: "token", value: "File Content", required: true }, { label: "1st Line", placeholder: "The first line of text of the watermark", required: true }, { label: "2nd Line", placeholder: "The second line of text of the watermark" }, { label: "3rd Line", placeholder: "The third line of text of the watermark" }, { label: "Template", value: "1001" }, { label: "Color", kind: "select", value: "Gray", options: ["Black", "Blue", "Gray", "Red"] }, { label: "Transparency", value: "75" }, { label: "Margin", value: "1" }, { label: "Pages", placeholder: "The pages to stamp, as a comma-separated list of page numbers", advanced: true }, ]} />
利用可能な透かしテンプレートは、[カタログ](https://pdfblocks.com/assets/documents/pdfblocks-watermark-templates.pdf)でご確認ください。
## パラメーター
<ParamField name="File Content" type="File" required>
入力 PDF ドキュメントの内容です。
</ParamField>
<ParamField name="1st Line" type="String" required>
透かしのテキストの1行目です。最大長は32文字です。
</ParamField>
<ParamField name="2nd Line" type="String">
透かしのテキストの2行目です。省略可能です。最大長は32文字です。
</ParamField>
<ParamField name="3rd Line" type="String">
透かしのテキストの3行目です。省略可能です。最大長は32文字です。
</ParamField>
<ParamField name="Template" type="Integer Number" default="1001">
透かしテンプレートの ID です。利用可能なテンプレートは、[透かしテンプレートカタログ](https://pdfblocks.com/assets/documents/pdfblocks-watermark-templates.pdf)でご確認ください。省略可能です。
</ParamField>
<ParamField name="Color" type="String" default="Gray">
透かしのテキストの色です。省略可能です。有効な値は Gray、Red、Blue、および Black です。
</ParamField>
<ParamField name="Transparency" type="Integer Number" default="75">
透かしの透明度を0(不透明)から100(透明)の範囲で指定します。省略可能です。有効な値は0から100までの整数です。
</ParamField>
<ParamField name="Margin" type="Number" default="1.0">
ページの端から透かしまでの距離をインチ単位で指定します。省略可能です。値は正の数である必要があり、小数も指定できます。
</ParamField>
<ParamField name="Pages" type="String">
透かしを付与するページを、ページ番号と範囲をカンマ区切りにしたリストで指定します(例:`1..3,5`)。負の数は末尾からカウントするため、`-1` は最後のページを表します。空欄のままにすると、すべてのページに透かしが付与されます。省略可能です。
</ParamField>
## レスポンス
<ParamField name="Watermarked PDF File Content" type="File">
透かしが付与された PDF ドキュメントの内容です。フロー内の他のアクションへの入力として使用できます。
</ParamField>
## 関連アクション
<CardGroup cols={2}>
<Card title="画像の透かしを追加" href="/docs/power-automate/add-image-watermark-to-pdf">
テキストの代わりに画像を付与します。
</Card>
<Card title="パスワードを追加" href="/docs/power-automate/add-password-to-pdf">
透かしを付与したドキュメントをパスワードで保護します。
</Card>
<Card title="制限を追加" href="/docs/power-automate/add-restrictions-to-pdf">
コピー、印刷、編集を制限します。
</Card>
<Card title="ドキュメントを結合" href="/docs/power-automate/merge-pdf-documents">
透かしを付与する前後に複数の PDF を結合します。
</Card>
</CardGroup>
PDF にテキスト透かしを追加する
Power Automate のフローで、PDF ドキュメントのページに最大3行のテキストを透かしとして付与します。テンプレート、色、透明度を指定できます。
コネクタのフィールド名は英語で表示されます。これは Power Automate 自体がそのように表示しているためです。
このアクションを使用すると、Power Automate のフロー内で PDF ドキュメントに透かしを追加できます。
ParametersSettingsCode viewTestingAbout
File Content
File Content
1st Line
The first line of text of the watermark
2nd Line
The second line of text of the watermark
3rd Line
The third line of text of the watermark
Template
1001
Color
Black
Blue
Gray
Red
Enter custom value
Transparency
75
Margin
1
Pages
The pages to stamp, as a comma-separated list of page numbers
利用可能な透かしテンプレートは、カタログでご確認ください。
パラメーター
File ContentFilerequired入力 PDF ドキュメントの内容です。
1st LineStringrequired透かしのテキストの1行目です。最大長は32文字です。
2nd LineString透かしのテキストの2行目です。省略可能です。最大長は32文字です。
3rd LineString透かしのテキストの3行目です。省略可能です。最大長は32文字です。
TemplateInteger Numberdefault:1001透かしテンプレートの ID です。利用可能なテンプレートは、透かしテンプレートカタログでご確認ください。省略可能です。
ColorStringdefault:Gray透かしのテキストの色です。省略可能です。有効な値は Gray、Red、Blue、および Black です。
TransparencyInteger Numberdefault:75透かしの透明度を0(不透明)から100(透明)の範囲で指定します。省略可能です。有効な値は0から100までの整数です。
MarginNumberdefault:1.0ページの端から透かしまでの距離をインチ単位で指定します。省略可能です。値は正の数である必要があり、小数も指定できます。
PagesString透かしを付与するページを、ページ番号と範囲をカンマ区切りにしたリストで指定します(例:1..3,5)。負の数は末尾からカウントするため、-1 は最後のページを表します。空欄のままにすると、すべてのページに透かしが付与されます。省略可能です。
レスポンス
Watermarked PDF File ContentFile透かしが付与された PDF ドキュメントの内容です。フロー内の他のアクションへの入力として使用できます。