Overlay PDF Pages Online — Merge Letterheads & Background Layers
Superimpose one PDF on top of or behind another online for free. Apply digital stationery letterheads, watermarks, or form grids across all pages locally.
1. Base PDF Document
Main content document to stamp
2. Overlay PDF Template
Letterhead, stamp, or watermark layer
Upload your base document and overlay template to configure layer order (foreground watermark vs background letterhead) and apply stamps across all pages.
How PDF Overlay Works
Superimpose letterheads, stamps, or watermarks in 3 client-side steps.
Upload your content document and your overlay stationery or stamp. Both streams parse locally without leaving your browser.
Choose whether to stamp all pages or just the first page, and slide opacity from 10% to 100% for perfect transparency.
PDF-Lib embeds the overlay as a native Form XObject sub-resource and outputs an ISO 32000-compliant document instantly.
Four Built-In PDF Overlay Features
Engineered for vector precision, multi-page stationery stamping, and transparent layer compositing.
Form XObject Compositing
Embeds the overlay page as an ISO 32000 Form XObject directly into the base document's content stream without converting to pixels.
Variable Scope Control
Apply overlay stamps globally across all pages or target strictly the first title page for letterheads and cover sheets.
ExtGState Opacity Blending
Configures standard CA and ca alpha values from 10% to 100% for subtle watermarking or bold letterheads.
Lossless Vector Preservation
Retains 100% selectable text, embedded fonts, and vector paths across both superimposed document layers.
Local PDF Layer Overlay vs. Cloud Stamping Tools
Compare local Form XObject compositing with traditional remote server watermarkers.
| Feature Comparison | Utilvo In-Browser | Remote Cloud Stampers |
|---|---|---|
| Processing Architecture | 100% Client-Side WebAssembly | External server-side print queues |
| Vector Preservation | Pure Form XObject; zero rasterization | Often flattens pages into raster images |
| Text Selectability | Text remains searchable and selectable | May break font encoding or lock text |
| Document Privacy | Zero file uploads; strictly private | Files uploaded and retained on servers |
| Processing Limits & Costs | Completely free with no file limits | Strict file caps or required subscriptions |
Superimposing Digital Letterheads & Stationery onto Invoices
How PDF-Lib coordinates native Form XObject sub-resources and alpha transparency dictionaries.
Form XObject Stream Injection
Rather than merging raw content operator streams, the overlay page is encapsulated as an independent `/XObject` dictionary. This prevents graphics state leaks (like unclosed clipping paths or color transform matrices) between the two files.
ExtGState Alpha Transparency
To achieve non-destructive transparency, the compositor injects an `/ExtGState` resource setting `/CA` (stroking alpha) and `/ca` (non-stroking alpha) according to the user opacity slider before issuing the `Do` invocation operator.
MediaBox & CropBox Coordinate Scaling
The engine inspects each target page's bounding box and computes an affine transformation matrix (`cm` operator) so the overlay stretches or centers precisely across standard US Letter or ISO A4 dimensions.
Resource Dictionary Deduplication
When overlaying across hundreds of pages, the engine reuses a single embedded Form XObject reference across every target page dictionary, ensuring output file sizes increase by only a few kilobytes.
Comparing Blueprint Revisions with Transparent Layer Overlays
Follow these best practices before compiling your overlaid document.
Verify Page Aspect Ratios
Ensure your overlay template matches the aspect ratio of the base document (e.g. Portrait A4 vs Landscape US Letter) to avoid geometric distortion.
Test Opacity & Readability
For background watermarks, 20% to 40% opacity is ideal. For official letterhead headers and footers, select 80% to 100% opacity.
Confirm Target Page Scope
Select "First Page Only" if applying a cover sheet letterhead or formal invoice header. Choose "All Pages" for continuous confidentiality stamps.
Review Background Transparency
Verify that the overlay PDF does not contain an opaque solid white background box that would obscure the base document text.
Document Formats vs PDF Overlay Specifications
Specification matrix detailing input layer characteristics and composited output behavior.
| Document Type | Vector Preservation | Selectable Text | Target Opacity | Compositing Mode | Export Container |
|---|---|---|---|---|---|
| PDF (Base Document) | Native vector content | Fully selectable text | 100% Solid background | Primary content stream | Original PDF structure |
| Overlaid PDF (Layered Output) | 100% Lossless Vector | Dual Stream Searchable | 10% – 100% User Alpha | Form XObject Sub-Resource | Target of this export |
| Vector Stamp PDF (Transparent Master) | Bézier curves & paths | Embedded font strings | Configurable opacity | Superimposed layer | Standard PDF container |
| Letterhead PDF (Corporate Header/Footer) | Vector logos & rules | Company address text | 100% Solid stationery | Cover or master layer | Standard PDF container |
| Watermark PDF (Diagonal Security Stamp) | Angled vector outlines | Audit / Draft labels | 20% – 40% Low alpha | All-page replication | Standard PDF container |
| Signed Form PDF (Composite Document) | Digital signature paths | Form entry fields | 100% Solid stamp | Finalized overlay | Standard PDF container |
Frequently Asked Questions
Everything you need to know about PDF overlaying, Form XObjects, and opacity settings.
1How does PDF Overlay technically combine two documents?
The tool parses both PDF binary streams in WebAssembly, imports the first page of your overlay document as a native Form XObject sub-resource, and appends it to the content stream of the target pages. It applies an Extended Graphic State (ExtGState) dictionary for alpha transparency, allowing the overlay to composite seamlessly over existing vector paths and text without rasterizing either layer.
2Does applying an overlay rasterize text or degrade graphic quality?
No. Unlike image-based watermarking tools that flatten pages into low-resolution bitmaps, our overlay engine retains full vector paths, Bézier curves, and embedded font glyphs. Both your underlying content and the superimposed template remain infinitely scalable and crystal clear at any zoom level or print resolution.
3Can I overlay a multi-page PDF onto different pages?
The current tool uses page one of the overlay document as the master template or stamp, which can be applied either to the first page or replicated across all pages of the target PDF. If your project requires multi-page pagination or varied stationery templates across chapters, you can run successive batch passes or split the document first.
4What happens if the base and overlay pages have different dimensions?
The overlay Form XObject automatically scales to fit the exact bounding MediaBox and CropBox coordinates of each target page. Whether your base document is standard US Letter (8.5 x 11 inches) or ISO A4 (210 x 297 mm), the overlay aligns precisely across the printable canvas.
5How does opacity adjustment work under ISO 32000 standards?
When you adjust the opacity slider, the engine assigns an alpha constant (CA and ca values ranging from 0.0 to 1.0) inside the ExtGState resource dictionary. When modern PDF viewers render the page, they compute standard Porter-Duff alpha blending, preserving background readability beneath dark stamps or rich graphical letterheads.
6Are my files uploaded or transmitted to an external server?
Zero bytes of your files leave your device. All parsing, font referencing, graphic state compositing, and serialization occur directly within your browser's local sandbox using client-side JavaScript and PDF-Lib. Your private legal contracts, financial sheets, and signatures remain strictly confidential.
Continue with Adjacent PDF Utilities
Combine PDF overlaying with companion layout, trimming, and page processing tools.