# Add a text watermark to a PDF
Stamp up to three lines of text across the pages of a PDF in a Power Automate flow, with control over the template, color, and transparency.
Use this action to add a watermark to a PDF document in your Power Automate flow.
<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 },
]}
/>
Check the available watermark templates in our [Catalog](https://pdfblocks.com/assets/documents/pdfblocks-watermark-templates.pdf).
## Parameters
<ParamField name="File Content" type="File" required>
The content of the input PDF document.
</ParamField>
<ParamField name="1st Line" type="String" required>
The first line of text of the watermark. The maximum length is 32 characters.
</ParamField>
<ParamField name="2nd Line" type="String">
The second line of text of the watermark. This field is optional. The maximum length is 32 characters.
</ParamField>
<ParamField name="3rd Line" type="String">
The third line of text of the watermark. This field is optional. The maximum length is 32 characters.
</ParamField>
<ParamField name="Template" type="Integer Number" default="1001">
The id of the watermark template. Check available templates in our [Watermark Template Catalog](https://pdfblocks.com/assets/documents/pdfblocks-watermark-templates.pdf). This field is optional.
</ParamField>
<ParamField name="Color" type="String" default="Gray">
The color of the text of the watermark. This field is optional. Valid values are Gray, Red, Blue, and Black.
</ParamField>
<ParamField name="Transparency" type="Integer Number" default="75">
The transparency level for the watermark from 0 (opaque) to 100 (transparent). This field is optional. Valid values are integer numbers between 0 and 100.
</ParamField>
<ParamField name="Margin" type="Number" default="1.0">
The distance in inches from the border of the page to the watermark. This field is optional. The value must be positive and can be decimal.
</ParamField>
<ParamField name="Pages" type="String">
The pages to stamp, as a comma-separated list of page numbers and ranges (for example `1..3,5`). A negative number counts from the end, so `-1` is the last page. Leave empty to stamp every page. This field is optional.
</ParamField>
## Response
<ParamField name="Watermarked PDF File Content" type="File">
The content of the watermarked PDF document. You can use it as an input to other actions in your flow.
</ParamField>
## Related actions
<CardGroup cols={2}>
<Card title="Add image watermark" href="/docs/power-automate/add-image-watermark-to-pdf">
Stamp an image instead of text.
</Card>
<Card title="Add password" href="/docs/power-automate/add-password-to-pdf">
Protect the watermarked document with a password.
</Card>
<Card title="Add restrictions" href="/docs/power-automate/add-restrictions-to-pdf">
Restrict copying, printing, and editing.
</Card>
<Card title="Merge documents" href="/docs/power-automate/merge-pdf-documents">
Combine several PDFs before or after watermarking.
</Card>
</CardGroup>
The first line of text of the watermark. The maximum length is 32 characters.
2nd LineString
The second line of text of the watermark. This field is optional. The maximum length is 32 characters.
3rd LineString
The third line of text of the watermark. This field is optional. The maximum length is 32 characters.
TemplateInteger Numberdefault:1001
The id of the watermark template. Check available templates in our Watermark Template Catalog. This field is optional.
ColorStringdefault:Gray
The color of the text of the watermark. This field is optional. Valid values are Gray, Red, Blue, and Black.
TransparencyInteger Numberdefault:75
The transparency level for the watermark from 0 (opaque) to 100 (transparent). This field is optional. Valid values are integer numbers between 0 and 100.
MarginNumberdefault:1.0
The distance in inches from the border of the page to the watermark. This field is optional. The value must be positive and can be decimal.
PagesString
The pages to stamp, as a comma-separated list of page numbers and ranges (for example 1..3,5). A negative number counts from the end, so -1 is the last page. Leave empty to stamp every page. This field is optional.