Skip to main content

Merge PDF Overlay

Merge & SplitMerge PDF Overlay

The Merge PDF Overlay API overlays one PDF on top of another. You send baseDocContent and baseDocName (base PDF), layerDocContent and layerDocName (layer PDF), and optionally async. The API returns a single PDF with the layer overlaid on the base. Use the tester below to try it; more details are in the sections that follow.

Try the Merge PDF Overlay API

Quick reference

Endpoint: POST /api/v2/MergeOverlay · Required: api-key, baseDocContent, baseDocName, layerDocContent, layerDocName

Try it live

Use the form below to send your API key, base PDF (Base64), and layer PDF (Base64). The response is one PDF with the overlay applied. No code required—fill the fields and click Send request.

Loading API Tester...

Overview, parameters, and use cases

What is Merge PDF Overlay?

This endpoint overlays a layer PDF on top of a base PDF. You provide baseDocContent and baseDocName (base PDF) and layerDocContent and layerDocName (layer PDF). The API combines them into one PDF with the layer overlaid on the base. Use it for watermarks, letterheads, or combining form and content.

Key features

  • Base and layer – Base PDF (first layer), layer PDF (overlaid on top).
  • Single output – One PDF with both combined.
  • Async – Use async for large PDFs.
Best for

Use when overlaying a letterhead, watermark, or form on content. For concatenating PDFs use Merge Multiple PDF Files.

Prerequisites

Before using this endpoint, make sure you have:

  • A valid PDF4me API key (Get your API Key)
  • A base PDF file in Base64 format
  • A layer PDF file in Base64 format to overlay

Response Format

The API returns a PDF file with the layer PDF overlaid on top of the base PDF.

Get Help