PDF Watermark
PDF Watermark
Position
How to watermark a PDF
Add your PDF
Drag your file onto the dropzone or click to choose. A preview of the first page appears with the stamp drawn on it, and it updates as you change the settings.
Type the watermark text
Common choices: CONFIDENTIAL, DRAFT, COPY, SAMPLE, NOT FOR DISTRIBUTION, or your name/company for a personal stamp. Up to 200 characters.
Choose position
Diagonal centres the text on the page at −45°, running down and to the right. The 3×3 grid puts it in a corner, on an edge or in the middle, at any rotation you type (positive turns counter-clockwise), and keeps the whole turned text inside the margin. If it cannot fit, the note under the preview says so and gives the largest size that does.
Fine-tune colour, size, opacity
Default is a 72pt grey watermark at 25% opacity. Pick any colour with the swatch or hex code, and slide opacity to make it bolder or fainter. Margin is how far from the page edge a grid-position stamp sits. Leave Pages blank to stamp every page, or list them, for example 1, 3-5.
Apply and download
Click Apply watermark and download. The output saves as {original}-watermarked.pdf with the stamp drawn on the pages you chose. The original content stays selectable and searchable underneath, and links, bookmarks and form fields survive because the tool edits the document you loaded rather than rebuilding it. Two metadata fields change: Producer becomes "RECATOOLS PDF Watermark" and the modification date is set to now. The creation date and author are left alone.
PDF watermarks — visible stamps, semitransparent intent
A PDF watermark is a layer of text drawn on top of every page with a level of transparency that lets the underlying content remain readable. The watermark text travels with the document — it's part of the PDF, not a viewer overlay — so anyone opening the file in any reader sees the same stamp. The pages aren't re-rendered; the watermark is just additional drawing operations appended after the existing page content stream.
Watermark vs redaction vs encryption
It's worth being precise about what a watermark actually does. A watermark is a visible label intended for human readers — "this is a draft" or "this is confidential." It doesn't prevent anyone from reading the document, screenshotting it, or extracting the text. Redaction is the removal of specific content from the document. Encryption is access control — preventing the document from being opened without a password. Watermarking is the lightest-touch of the three: it signals intent without restricting access.
Watermarks are honour-system markers. They work on people who would respect "draft, do not circulate" anyway. For anything stronger, use access control plus redaction — not a label.
Content stream, not annotation
PDF does define a watermark annotation subtype (ISO 32000-2 §12.5.6.22) — a separate object a reader can hide, flatten or delete along with the comments. This tool does not use it. It appends the text to each page's content stream, which is why the stamp behaves like body text: it prints, it survives a flatten, and no viewer setting turns it off. The trade-off is that it also cannot be removed without editing the content stream, so keep an unstamped copy of anything you watermark.
What this tool does — and what it doesn't
This tool adds a text watermark to every page or to the pages you list, with control over text, colour, font size, opacity, rotation and position. Each page is placed on what a viewer actually shows of it: its CropBox (ISO 32000-1 Table 30, "the visible region of default user space"), turned by its own /Rotate value, which the standard defines as the degrees the page "shall be rotated clockwise when displayed or printed". A position is chosen on the page as you see it, then mapped back into the page's own coordinates, so the stamp lands the right way up on scanned or landscape pages. What it does not do: image or logo watermarks; different text on different pages (run the tool once per text, each time with its own page list); non-Latin text, because the built-in Helvetica Bold is limited to the WinAnsi character set; encrypted files, which pdf-lib cannot decrypt; or removing an existing watermark, which would mean recovering page bytes a flattened file no longer holds.
Where this stamp is written, what it costs in bytes, and why it breaks PDF/A
The stamp is appended to each page's content stream after the existing drawing operations, so it paints over the page's content rather than under it. Nothing beneath is altered or removed. Annotations, such as form fields and comments, are composited on top of the page content (ISO 32000-1 §12.5.5), so they sit over the stamp.
PDF does have a watermark object: annotation subtype /Watermark, ISO 32000-2 §12.5.6.22. This tool deliberately does not use it — an annotation can be hidden or deleted in a reader, and content-stream text cannot.
Transparency comes from a graphics-state dictionary: pdf-lib registers an /ExtGState with ca (fill alpha) set to your opacity and references it before drawing. The default here is 0.25.
pdf-lib turns text about its starting point, so a centred stamp has to start half its turned width and height away from the middle. At 72pt, "CONFIDENTIAL" is 536pt wide and its capitals 51.7pt tall; turned −45° it fills a 415.5pt square, which this tool centres on the page. Until 5 November 2026 it skipped that offset, and the diagonal band sat low and to the left.
The watermark text must be encodable in WinAnsi (Latin-1). Type 機密 or 기밀 and the tool names the characters as you type; pdf-lib itself would refuse them with "WinAnsi cannot encode".
This output is not PDF/A. ISO 19005-1 clause 6.3.4 requires every font used for rendering to be embedded, and the standard-14 Helvetica Bold written here carries no font program. A PDF/A input stops conforming once it is stamped.
That non-embedded font is also why the stamp is cheap: the whole font entry is four keys — Type, Subtype, BaseFont, Encoding — and every reader supplies the glyphs itself.
Measured on a 50-page A4 test file on 5 November 2026: 11,145 bytes before, 24,156 after a centred 72pt diagonal stamp on every page, about 260 bytes per page. A pdf-lib round trip with no stamp changed the size by zero bytes.
FAQ
-
No. pdf-lib 1.17.1 and pdf.js run in your browser and are served from this domain. The PDF is read into memory, previewed and stamped in memory, and handed to the browser as a blob download. The tool's own code sends nothing anywhere; the only requests are pdf.js loading its worker and character maps from this domain, and none of them contains your file. Open DevTools → Network and watch when you add a file and click Apply.
-
Not reliably. Once a watermark is drawn into the content stream, it's just another set of drawing operations alongside the original content. Removing it would require manually editing each page's content stream and you can't recover what was beneath. Keep an un-watermarked copy of every document you watermark.
-
Yes. The watermark is drawn on top of the existing content and the tool edits the document you loaded rather than rebuilding it, so the text, links, bookmarks and form fields all survive and stay searchable and selectable. Two things do change: the Producer string becomes "RECATOOLS PDF Watermark" and the modification date is set to the moment you clicked Apply. Before 5 November 2026 pdf-lib also wrote its own name into the Creator field of any file that had none; it no longer does. The stamp is itself text, so a search for "CONFIDENTIAL" will find it too.
-
In front of the page's content. The text is appended at the end of each page's content stream, so it is painted after everything else on the page. The default 25% fill alpha, set through an
/ExtGStatedictionary, keeps whatever is underneath readable through it. Annotations are the exception: form fields, comments and stamps are composited over the page content, so they appear on top of the watermark. There is no "behind the content" option — placing the stamp under the page would mean rewriting the whole stream rather than appending to it. -
Yes. Type them in Pages, for example
1for a cover sheet or2-10, 14; leave it blank for every page. A page number the file does not have is refused with a message rather than skipped. The download has every page of the original, stamped only on the ones you listed. For different text on different pages, run the tool again on its own output with the next text and page list. -
No — this tool draws text only. An image stamp is a different operation: the picture has to be embedded as an XObject, scaled against each page's media box and given its own transparency group, and none of that is wired up here.
-
Because the stamp uses Helvetica Bold, one of the fourteen fonts every PDF reader supplies, and its WinAnsi encoding covers Latin-1 plus 27 punctuation marks and letters such as € and Š, 218 characters in all. Type 機密 and the note under the preview names both characters straight away; pdf-lib itself would stop with
WinAnsi cannot encode "機". Most Vietnamese tone-marked letters fail the same way (ả, ế), although the ones Latin-1 has (á, à, é) work. There is no workaround inside this tool: a CJK stamp needs a real font file embedded in the output, which is what the size and simplicity of this version trades away. -
No. ISO 19005-1 clause 6.3.4 requires the font program of every font used for rendering to be embedded in the file, and the only exemption is for text drawn invisibly in rendering mode 3 — which a watermark, by definition, is not. The Helvetica Bold this tool writes is a reference to a standard font with no embedded program, so a PDF/A input stops validating the moment it is stamped. If the archival copy has to conform, stamp a working copy and keep the conforming original.
-
No. pdf-lib has no decryption support of any kind; its documentation says so and warns that loading an encrypted file anyway "may fail, or have unexpected results". So the tool refuses an encrypted file as soon as you add it, including one that opens without a password but restricts printing or editing. Save a decrypted copy in a reader that has the password, then stamp that.
-
Check the note under the preview first: if the text is too big for the page at that size and margin, it is centred on the axis it overflows and cut at the page edge, and the note gives the largest size that fits. Before 5 November 2026 there were three real placement errors, now fixed: pages carrying /Rotate 90 or 270 (common in scans) were mapped with the two turns swapped, which put a "bottom" stamp near the top and, on 270, off the page altogether; pages whose visible area (CropBox) does not start at the corner of the paper were measured from the wrong corner; and turned text, Diagonal included, was turned about its first letter, so it sat off-centre. If a stamp still lands somewhere the preview did not show, the preview and the file disagree, and that is a bug worth reporting.
-
No — the stamp is always Helvetica Bold, one of the fourteen standard fonts a PDF reader is required to supply. Referencing it instead of embedding a font file is what keeps the added weight to a couple of hundred bytes per page, and it is also what limits the text to Latin-1 and stops the output conforming to PDF/A. Embedding a font would fix both and cost tens to hundreds of kilobytes; this version takes the other side of that trade.
-
No. Watermarks are visual labels, not security controls. They signal intent ("this is confidential, please treat it that way") but anyone with intent to ignore the watermark can — by screenshotting, extracting the text, or using a different tool to remove the watermark. For actual access control, use PDF encryption (password protection).
-
Yes — pdf-lib is plain JavaScript and runs in mobile Safari and Chrome on Android, and the position grid keeps its 3×3 touch targets on a narrow screen. Speed depends on your device and the size of the file, and because the whole document is held in memory a very large PDF can exhaust a phone's tab before it finishes. If a big file stalls, do it on a desktop.
Method & sources
How it computes
Helvetica Bold text drawn into each chosen page's content stream by pdf-lib. Position is chosen on the page as displayed (CropBox ∩ MediaBox, turned clockwise by /Rotate), the turned text box is kept inside the margin and centred by offsetting the start by half its turned extent, then mapped back to user space. Opacity is an ExtGState fill alpha.
What this tool implements
- ISO 32000-1 Table 30: /Rotate is the number of degrees the page "shall be rotated clockwise when displayed or printed" and "shall be a multiple of 90"; the CropBox is "the visible region of default user space" and defaults to the MediaBox. Each page is stamped against that visible region, the right way up for its own /Rotate, as pdf.js 4.10.38 shows it (CropBox ∩ MediaBox; a /Rotate that is not a multiple of 90 reads as 0).
- Placement checked 2026-11-05 against pdf.js, not against the tool's own formulas: stamped files with pages at /Rotate 0, 90, 180, 270 and -90, and a cropped page, are read back with pdf.js, which must report each run of text starting where the tool put it and reading at the chosen angle. A control runs the pre-fix placement through the same check and fails it: on /Rotate 270 its stamp was off the page.
- Corrected 2026-11-05: /Rotate 90 and 270 were mapped with swapped formulas and the page width for the height; placement ignored the CropBox and any box not starting at (0, 0); turned text was turned about its first letter, so Diagonal sat low and left of centre; the Diagonal button could not be re-selected once a grid position was picked; pdf-lib added its own Creator to files with none.
- The stamp is page content appended to the content stream, not a /Watermark annotation (ISO 32000-1 §12.5.6.22). Annotations are composited over the page content (§12.5.5), so form fields and comments sit over the stamp.
- Text must be WinAnsiEncoding (ISO 32000-1 Annex D): checked as the reader types against the 218 characters pdf-lib 1.17.1 encodes, verified over every BMP code point. The output cannot be PDF/A-1: ISO 19005-1 clause 6.3.4 requires the program of every rendered font to be embedded, and the standard-14 Helvetica Bold is not.
- Measured 2026-11-05 on a 50-page A4 test file: 11,145 bytes before, 24,156 after a 72 pt diagonal stamp on every page, about 260 bytes per page; a pdf-lib round trip with no stamp changed the size by 0 bytes. Only Producer and the modification date are written to the metadata.
Sources
- ISO 32000-1:2008, Document management — Portable document format — Part 1: PDF 1.7, free copy published by Adobe: §7.7.3.3 Table 30 (Rotate, CropBox, MediaBox), §12.5.5 Appearance streams, §12.5.6.22 Watermark annotations, Annex D character sets. https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/PDF…
- ISO 19005-1:2005 (PDF/A-1) clause 6.3.4, as encoded in the veraPDF PDF/A-1b validation profile: https://raw.githubusercontent.com/veraPDF/veraPDF-validation-prof…
- Hopding A. pdf-lib v1.17.1 (2021), README "Encryption Handling": loading with ignoreEncryption "does not decrypt the document". https://github.com/Hopding/pdf-lib/releases/tag/v1.17.1
What can make this go out of date
- None at runtime: pdf-lib 1.17.1 and pdf.js 4.10.38 are vendored copies served from this domain, and the PDF is never sent anywhere.