Skip to content
DevToolKit

Add Watermark

Add text or image watermarks to PDF documents. Customize opacity, rotation, position, and size. Supports diagonal "CONFIDENTIAL" stamps, company logos, and draft markers. Entirely client-side — your files never leave your browser.

pdf

Drop your PDF here, or click to browse

Files are processed entirely in your browser — never uploaded

Processed locally
Was this tool helpful?

How to Use

Add a watermark to your PDF document:

  1. Upload your PDF — Drag and drop the file or click to browse. The tool displays a preview of the first page for watermark positioning.
  2. Choose watermark type — Select "Text" to type a custom message or "Image" to upload a logo or stamp graphic (PNG, JPG, or SVG).
  3. Customize appearance — For text: set the message, font, size, color, and opacity. For images: adjust size, opacity, and position. Both types support rotation angle and tiling (repeating pattern).
  4. Position the watermark — Choose from preset positions (center, corners, header, footer) or drag the watermark on the preview to set custom coordinates.
  5. Select page range — Apply to all pages, even/odd only, or a custom range.
  6. Click "Add Watermark" — The tool stamps the watermark onto each selected page and generates the output PDF.
  7. Download the result — Save the watermarked PDF to your device.

The watermark is applied by drawing directly into the page content stream with controlled opacity via the graphics state's ca (fill opacity) parameter. This produces a semi-transparent overlay that is visible on every page without obscuring the underlying content. The technique is the same approach used by professional publishing and prepress software.

About This Tool

Watermarking a PDF involves overlaying graphical content — text, images, or both — onto existing page content with controlled transparency. The PDF specification provides several mechanisms for achieving this, each with different trade-offs between flexibility, security, and compatibility.

The most robust watermarking method embeds the watermark directly into each page's content stream. This is accomplished by appending PDF operators that set a transparent graphics state (using the gs operator with an ExtGState dictionary containing a /ca entry for fill opacity and/or /CA for stroke opacity), then drawing the watermark text or image. The graphics state save/restore operators (q/Q) isolate the watermark's rendering parameters from the existing page content. Because the watermark becomes part of the page's drawing instructions, it cannot be removed by simply deleting a layer or annotation — the content stream would need to be parsed and surgically edited.

For text watermarks, the tool uses the PDF text-rendering operators with a transformation matrix that combines translation (positioning), rotation (diagonal placement), and scaling (font size). The classic diagonal watermark — "CONFIDENTIAL" spanning corner to corner at a 45-degree angle — is achieved by computing the rotation angle from the page dimensions and setting the Tm (text matrix) operator accordingly. The text is rendered in a specific color (typically gray) at reduced opacity, creating a visible but non-intrusive mark. Font metrics are used to center the text string precisely within the computed diagonal span.

Image watermarks require embedding the watermark graphic as an image XObject in the page's resources and then painting it with the Do operator inside a transparent graphics state. The image is positioned and scaled using the current transformation matrix (cm operator). For company logos, the tool supports PNG images with alpha channels — the logo's built-in transparency composes naturally with the page content when rendered with the PDF transparency model. The image data is compressed using DCTDecode (JPEG) for photographic watermarks or FlateDecode (deflate) for graphic watermarks with solid colors and sharp edges.

Tiled watermarks — where the watermark pattern repeats across the entire page — use a PDF tiling pattern (Type 1 pattern with /PaintType 1). The pattern cell contains the watermark graphic and is defined with a specific step size that controls the spacing between repetitions. When used as a fill pattern, the renderer tiles the watermark automatically across the page area. This approach is more efficient than drawing individual watermarks in a grid, because the pattern definition is stored once and referenced by the rendering engine for each repetition.

An alternative to content stream watermarking is the use of PDF page-level watermark annotations or Optional Content Groups (OCG/layers). Annotation-based watermarks are stored as separate objects that can be toggled or removed, making them less tamper-resistant. OCG-based watermarks allow visibility toggling in viewers that support layers (Acrobat, Foxit) but are invisible in viewers that ignore OCG (most browser-based renderers). The content stream approach used by this tool provides maximum compatibility and tamper resistance — the watermark renders identically in every PDF viewer because it uses only fundamental drawing operators that are supported since PDF 1.0.

Why Use This Tool

Watermarking PDFs serves important purposes across business, legal, and creative workflows:

  • Document classification — Marking documents as "CONFIDENTIAL," "INTERNAL ONLY," "DRAFT," or "FOR REVIEW" communicates handling requirements at a glance. When a watermarked document is printed or shared, the classification stamp is immediately visible without reading the content.
  • Intellectual property protection — Photographers, designers, and publishers watermark proofs and previews with their brand name or logo to prevent unauthorized use. The watermark deters copying while still allowing clients to evaluate the content for approval.
  • Legal draft identification — Law firms circulate contract drafts with "DRAFT" watermarks to prevent unsigned versions from being mistaken for executed documents. The watermark provides a clear visual cue that the document is not final and legally binding.
  • Brand consistency — Adding a company logo watermark to reports, proposals, and white papers reinforces brand identity. A subtle logo in the corner of each page creates a consistent, professional appearance across all company documents.
  • Recipient tracking — Adding a unique text watermark (such as the recipient's name or an ID number) to each copy of a distributed document enables tracing if the document is leaked. Each recipient's copy carries a distinct mark that identifies its origin.
  • Regulatory compliance — Some industries require specific document markings. Healthcare documents may need "PHI" stamps, financial documents may require "PRE-DECISIONAL" markers, and government documents may need classification labels at specific positions on each page.

Cloud-based watermarking tools require uploading your documents — potentially containing the very sensitive content you are trying to protect with the watermark. This tool processes everything locally in your browser, so confidential documents, legal drafts, proprietary designs, and classified materials never leave your device. The privacy of your content is guaranteed by the client-side architecture.

FAQ

Can I add both text and image watermarks?
Yes. You can add a text watermark (such as "CONFIDENTIAL" or "DRAFT"), an image watermark (such as a company logo), or both simultaneously. Text and image watermarks can be positioned and styled independently.
Is the watermark easy to remove?
The watermark is embedded directly into the page content stream as a drawn graphical element, not as a separate layer or annotation. Removing it would require manually editing the PDF content stream, which is technically possible but non-trivial. For security purposes, this is more tamper-resistant than annotation-based watermarks.
Can I watermark specific pages only?
Yes. You can apply the watermark to all pages, even pages only, odd pages only, or a custom page range. This is useful for watermarking body content while leaving cover pages and appendices clean.
Does the watermark affect print quality?
No. The watermark is rendered as vector text or a raster image at the resolution you specify. For text watermarks, the font outlines scale perfectly to any print resolution. For image watermarks, use a high-resolution source image (300+ DPI at the intended print size) for best results.