Free plan

PDF Watermark

Stamp text, a logo or page numbers on every PDF page
POST
/v1/pdfs/watermark

About this tool

This tool puts text, a picture or page numbers on the pages of a PDF, for example CONFIDENTIAL or DRAFT. You choose where it goes, how see-through it is, its size and colour, and which pages get it. It can also lay another PDF over or under your pages, such as a letterhead.
For example, you stamp DRAFT across every page of a report that is not final yet.

How to use it

  1. Choose this tool.
  2. Add your PDF, and a logo picture or a second PDF if you want one.
  3. Type the watermark text, or choose page numbers.
  4. Choose the position, size, colour, how see-through it is and which pages.
  5. Press Generate, then download the new PDF.

What you get back

You get a new PDF with the watermark on the chosen pages, ready to download.
TEST IT LIVE

Try PDF Watermark in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
PDFs
Plan
Free
Method
POST
Endpoint
/v1/pdfs/watermark
Tool ID
pdfs.watermark
Authentication
API key
Accepts
PDF
Background jobs
Yes
Usage group
Pdf
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/pdfs/watermark" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'file=@document.pdf' \
  -F 'opacity=0.3' \
  -F 'margin=24' \
  -F 'position=center'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.pdfs.watermark({
    "file": 'document.pdf',
    "opacity": 0.3,
    "margin": 24,
    "position": "center"
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->pdfs()->watermark([
    'file' => 'document.pdf',
    'opacity' => 0.3,
    'margin' => 24,
    'position' => 'center',
]);
echo $result->requestId;
FAQ

Frequently asked questions

Stamp text, a logo or page numbers on every PDF page.

PDF Watermark accepts PDF. You can send several files in one request.

PDF Watermark is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/pdfs/watermark with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.