Skip to main content

Sign PDF

EditSign PDF

The Sign PDF API places a signature image on your PDF. You send the PDF (docContent, docName), the signature image (imageFile Base64, imageName), alignX and alignY, optional pages, size (mm or px), margins, opacity, showOnlyInPrint, isBackground, and async. The API returns the PDF with the signature applied. Use the tester below to try it; more details are in the sections that follow.

Try the Sign PDF API

:::note Quick reference Endpoint: POST /api/v2/SignPdf · Required: api-key, docContent, docName, imageFile, imageName, alignX, alignY :::

:::info Try it live Use the form below to send your API key, PDF (Base64), and signature image (Base64). The response is the PDF with the signature. No code required—fill the fields and click Send request. :::

Loading API Tester...

Overview, parameters, and use cases

What is Sign PDF?

This endpoint places a signature image on specified pages of a PDF. You provide the PDF (Base64), the signature image (Base64), position (alignX, alignY), optional pages, size (widthInMM/heightInMM or widthInPx/heightInPx), margins in mm or px, opacity (0–100), showOnlyInPrint, and isBackground. The API returns the PDF with the signature applied. Perfect for adding visual signatures to contracts, forms, or letters.

Key features

  • Signature imageimageFile (Base64), imageName (e.g. signature.jpg).
  • Position and sizealignX (Left, Center, Right), alignY (Top, Middle, Bottom); size in mm (10–200) or px (20–600); margins in mm or px.
  • Opacity – 0 = invisible, 100 = fully opaque (typically 100 for signatures).
  • Page targetingpages: e.g. 1, 1,3,5, 2-5, 1,3,7-10, 2-.
  • showOnlyInPrint – Show signature only when printing; isBackground places it behind or in front of content.

:::tip Best for Use for visual signatures on contracts, forms, or approval documents. For image watermarks or stamps use Add Image Stamp to PDF; for text watermarks use Add Text Stamp to PDF. :::

Prerequisites

Before using this endpoint, make sure you have:

  • A valid PDF4me API key (Get your API Key)
  • A PDF document in Base64 format or a public URL to a PDF file
  • A signature image file (JPG, PNG, etc.)

Response Format

The API returns a PDF document with the signature image applied to the specified pages.

Get Help