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.
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
- 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.
- 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.
- 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.
- 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.
- 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?
Is anything uploaded?
Why does lowering the opacity not fade the lines in my overlay?
Can I move the stamp into a corner?
What if the two documents have different page counts?
Does the overlay sit above the page or behind it?
Do links and form fields on the overlay survive?
Why is the result bigger than I expected?
Can I overlay three or more PDFs?
Does it handle a password-protected file?
How is this different from Merge PDF?
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.