PDF Overlay

Lay a second PDF over the pages of the first — a letterhead, a stamp sheet or a frame — without changing what is underneath.

Runs on your devicePDFWorkingNo account needed

What this tool does

PDF Overlay superimposes one document on another. The first PDF in the queue is the base, the second is the stamp, and every page of the stamp is embedded into the base as a reusable object before being drawn over the pages you name. The base is not rebuilt page by page: its text stays selectable, its images keep the data they arrived with, and the page count comes back exactly as it went in. The /Rotate entry on both files is composed as the stamp is placed, so a letterhead still lands the right way up on a page a scanner turned sideways.

How the stamp repeats is the setting that decides what the tool is for. Stamping page 1 of the overlay on every page is the default, and it is the letterhead case — one sheet applied throughout. Cycling walks the overlay in order and starts again from the top, so a two-page overlay alternates across the document. Pairwise matches page for page by position, overlay page 4 onto base page 4, and skips any base page numbered past the end of the overlay: a two-page stamp over a forty-page report marks two pages and leaves the other thirty-eight alone.

The whole job runs in this tab. pdf-lib reads both files on your own machine, composes them there and hands back the result, so neither document goes anywhere, and the tool keeps working with the network switched off once the library has loaded. Scale to fit resizes the stamp — enlarging a small one as readily as shrinking a large one — to the biggest size that sits inside the base sheet with its proportions intact; keeping the overlay's own size leaves it at its native dimensions. Either way it is centred, and the base pages field takes all, odd, even, a number, a range such as 2-5, or a list like 1,4-6,last.

Opacity runs from 5 to 100 per cent, and it is worth knowing exactly what it dims. The value is written as a fill-alpha graphics state wrapped around the placed page, so filled text, solid shapes and scanned images fade the way you would expect. Stroked artwork does not. Ruled lines, table borders, outlines and the vector strokes of a plan keep their full weight at every setting, because pdf-lib writes no matching stroke alpha when it places an embedded page. For a letterhead, a scan or a block of type the slider behaves; for line art exported as vectors it will not.

The rest of the limits are worth reading before a long run. Exactly two PDFs are accepted — a third in the queue is refused with a count rather than guessed at — and nothing in the file list swaps them once they are there, so a reversed pair has to be removed and queued again in the right order. Only what the overlay page draws comes through, because it is embedded as a content stream: hyperlinks, form fields and comment annotations sitting on that page are left behind, and an overlay that paints a solid background will hide the base text beneath it. There is no offset, corner or coordinate control, so anything that must sit in a margin has to be positioned inside the overlay file itself, and at its own size an oversized stamp is simply clipped by the edges of the base sheet.

Two rougher edges round it off. Every page of the overlay is embedded whether the chosen mode ever draws it or not, so a twenty-page overlay used only for its first sheet still carries all twenty into the saved file and the result is larger than the job needed. A page in the overlay with no content stream at all — a truly empty sheet, not one that merely looks blank — stops the run with pdf-lib's own wording rather than a message written for you, and it does so even when that page would never have been drawn. Encrypted files cannot be parsed, and re-saving invalidates a digital signature the base already carried.

How to use it

  1. Add the base document, then the overlay. Order assigns the roles: the first PDF is stamped, the second does the stamping. Exactly two are accepted, and anything in the queue that is not a PDF is filtered out before that count is taken.
  2. Choose how the stamp repeats. Page 1 of the overlay on every page, cycling through the overlay pages in order, or pairing page for page and stopping once the overlay runs out.
  3. Set the size. Scale to fit resizes the stamp in either direction — a small one is enlarged, a large one shrunk — until it is the biggest undistorted rectangle the base sheet holds. Keeping the overlay's own size leaves it untouched, centred, and clipped if it is the larger of the two.
  4. Choose an opacity. At 100 per cent the stamp covers whatever it lands on. Move it towards 5 per cent to keep both layers readable, remembering that the setting fades fills and images but leaves stroked lines at full strength.
  5. Name the base pages. All by default. Odd, even, a single number, a range such as 3-8, an open end like 7-, or a list such as 1,4-6,last are all accepted, and a number past the end of the document is refused with the page count.

Processing & privacy

Runs on your device. Your file is processed directly in this browser.

Common use cases

Putting headed paper on a plain export

A report from software with no template of its own picks up the company letterhead on every page, and not a line of the report has to be retyped.

Comparing two scanned revisions of a drawing

Lay one scan of a plan over the other at about 50 per cent opacity and the lines that moved separate at a glance. A scan is a single image, which is exactly the kind of page the opacity setting really does fade.

Applying a sheet of approvals

A scanned page of stamps and initials, paired page for page against the document it signs off, marks every sheet in the set in a single pass.

Adding a frame or a certificate border

One decorative sheet, scaled to fit and repeated throughout, turns a plain text export into something worth printing and handing over.

Questions

Which file gets stamped?
The first PDF in the queue is the base and the second is the overlay. Reverse them and you stamp the letterhead with the document, so check the order before running the job — there is no swap control, so a wrong pair has to be cleared and added again.
Is anything uploaded?
No. Both documents are read, composed and written back inside this browser tab by pdf-lib, so they stay on your machine and the summary you see afterwards is produced there too.
Why does lowering the opacity not fade the lines in my overlay?
Because the transparency is applied as a fill alpha only. Filled text, solid shapes and images honour the slider; strokes — rules, borders, outlines, vector line work — are drawn at full strength whatever it is set to. Flatten the overlay to an image first if those lines have to fade.
Can I move the stamp into a corner?
No. The overlay is always centred on the base page — there is no offset, margin or coordinate box. Position it within the overlay file itself, or reach for Watermark PDF, Add Page Numbers or Header & Footer, which write to a named position.
What if the two documents have different page counts?
It depends on the repeat mode. Repeat-first and cycling cover every page you selected whatever the counts are; pairwise stops at the last overlay page and leaves the remaining base pages untouched. The base page count itself never changes.
Does the overlay sit above the page or behind it?
Above. It is drawn after the content already there, so an overlay that paints its own background will conceal what is underneath. Lower the opacity, or use an overlay whose background was left empty.
Do links and form fields on the overlay survive?
No. Only the drawn content of each overlay page is embedded, so hyperlinks, form fields and comment annotations on that page are dropped. Links and fields the base document already carried do come through, because its pages are not rebuilt.
Why is the result bigger than I expected?
Because every page of the overlay is embedded, including the ones the chosen mode never draws. A one-page letterhead adds almost nothing; a long overlay used only for its first page carries the whole thing along. Trim the overlay to the pages you actually need.
Can I overlay three or more PDFs?
Not in one pass — a third file in the queue is refused with a count. Run the tool twice, feeding the first result back in as the base, or combine layers into a single overlay document beforehand.
Does it handle a password-protected file?
No. An encrypted document cannot be parsed in the browser and is refused with a message pointing at Unlock PDF. Remove the password there with the one you already hold, then overlay the result.
How is this different from Merge PDF?
Merge PDF joins documents end to end, so a four-page and a two-page file become six pages. PDF Overlay puts one on top of the other, so what comes back has the same pages as the base, with the stamp drawn across them.

Related tools

  • Merge PDF — Combine several PDFs into one document in the order you choose.
  • Split PDF — Split one PDF into separate documents by page range.
  • Compress PDF — Reduce PDF file size while preserving the quality that matters.
  • PDF to JPG — Export every page of a PDF as a JPG image.
  • JPG to PDF — Turn one or many JPG photos into a single PDF.
  • Protect PDF — Add a password and set permissions on a PDF.