Tool guides

Sign PDF

Sign a PDF with a typed name, an image of your signature or a digital certificate, placed on the page and at the spot you choose, with an optional company stamp.

What it does

Sign a PDF with a typed name, an image of your signature or a digital certificate, placed on the page and at the spot you choose, with an optional company stamp.

It reads one PDF file. You get: the signed PDF.

Step by step on the website

Use Sign PDF

  1. Open Sign PDF on the website.

    Open Sign PDF
  2. Drop your PDF file on the page, or choose it.

  3. Choose your settings, or keep the ones already chosen:

    • Signature: Typed name, Signature image or Digital certificate (Signature image at first). Type your name, use a signature image, or sign with a certificate.
    • Signature image: choose the file. Accepts AVIF, JPEG, JPG, PNG, TIF, TIFF or WEBP files. Appears when Signature is Signature image.
    • Certificate (.p12 or .pfx): choose the file. Accepts P12 or PFX files. Appears when Signature is Digital certificate.
    • Signer name: type it in. Your name as it appears on the signature. Appears when Signature is Typed name or Digital certificate.
    • Font: pick a font from the font list. The font the text is set in. The list shows every font you can use, including fonts you uploaded; see the fonts guide for the full list. Appears when Signature is Typed name or Digital certificate.
    • Page: a number from 1 to 100000 (1 at first). The page the signature goes on.
    • Position: Top left, Top centre, Top right, Middle left, Centre, Middle right, Bottom left, Bottom centre, Bottom right or Diagonal (Bottom right at first). Where the signature sits on the page.
    • Placement: Preset or Custom spot (Preset at first). A preset spot, or exactly where you click.
    • Across: a number from 0 to 100% (50% at first). From the left edge to the right edge. Appears when Placement is Custom spot.
    • Down: a number from 0 to 100% (50% at first). From the top edge to the bottom edge. Appears when Placement is Custom spot.
    • Rotation: a number from -360 to 360° (0° at first). Turn of the visible signature in degrees, counter-clockwise, from -360 to 360 (decimals allowed). It sits at its spot, and stays whole on the page, by the box it covers once turned.
    • Visible signature: switch it on or off (On at first). Show the signature on the page as well as in the file. Appears when Signature is Digital certificate.
    • Certificate passphrase: type the password. The passphrase that opens the certificate. Appears when Signature is Digital certificate.
  4. To fine-tune, open More options:

    • Scale: a number from 0.1 to 4× (1× at first). Makes the signature larger or smaller.
    • Signature fields (JSON): add one row for each item. Several signature or stamp boxes at once, as a JSON list. Leave it empty for one signature.
    • Date format: DD/MM/YYYY, MM/DD/YYYY, YYYY-MM-DD or D MMM YYYY (D MMM YYYY at first). How a date field without text prints the signing date (UTC).
    • Company stamp: choose the file. Accepts AVIF, JPEG, JPG, PNG, TIF, TIFF or WEBP files.
    • File name: type a name, or keep the one suggested. Optional. The extension is added for you.
  5. Select Sign PDF to run it.

  6. When it finishes, select Download to save your PDF file.

Settings

Every setting, with the name the page shows and the name the API uses. On the page: shown next to your file. More options: under More options. API only: not offered on the website.

SettingAPI nameChoices or valuesDefaultWhereWhat it does
SignaturesignatureTypeTyped name (type), Signature image (image), Digital certificate (digital)Signature imageOn the pageType your name, use a signature image, or sign with a certificate.
Signature image (required)signatureImageA fileOn the page, when Signature is Signature imageAccepts AVIF, JPEG, JPG, PNG, TIF, TIFF or WEBP files.
Certificate (.p12 or .pfx) (required)certificateFileA fileOn the page, when Signature is Digital certificateAccepts P12 or PFX files.
Signer namenameTextOn the page, when Signature is Typed name or Digital certificateYour name as it appears on the signature.
FontfontFamilyTextOn the page, when Signature is Typed name or Digital certificateThe font the text is set in. The list shows every font you can use, including fonts you uploaded; see the fonts guide for the full list.
Pagepage1 to 1000001On the pageThe page the signature goes on.
PositionpositionTop left (top-left), Top centre (top-center), Top right (top-right), Middle left (middle-left), Centre (middle-center), Middle right (middle-right), Bottom left (bottom-left), Bottom centre (bottom-center), Bottom right (bottom-right), Diagonal (diagonal)Bottom rightOn the pageWhere the signature sits on the page.
PlacementpositionModePreset (preset), Custom spot (custom)PresetOn the pageA preset spot, or exactly where you click.
AcrossxPercent0 to 100%50On the page, when Placement is Custom spotFrom the left edge to the right edge.
DownyPercent0 to 100%50On the page, when Placement is Custom spotFrom the top edge to the bottom edge.
Rotationrotation-360 to 360°0On the pageTurn of the visible signature in degrees, counter-clockwise, from -360 to 360 (decimals allowed). It sits at its spot, and stays whole on the page, by the box it covers once turned.
Scalescale0.1 to 4×1More optionsMakes the signature larger or smaller.
Signature fields (JSON)fieldsA listMore optionsSeveral signature or stamp boxes at once, as a JSON list. Leave it empty for one signature.
Date formatdateFormatDD/MM/YYYY, MM/DD/YYYY, YYYY-MM-DD, D MMM YYYYD MMM YYYYMore optionsHow a date field without text prints the signing date (UTC).
Visible signaturedigitalVisibleOn (true), Off (false)OnOn the page, when Signature is Digital certificateShow the signature on the page as well as in the file.
Certificate passphrasecertificatePassphraseTextOn the page, when Signature is Digital certificateThe passphrase that opens the certificate.
Company stampstampImageA fileMore optionsAccepts AVIF, JPEG, JPG, PNG, TIF, TIFF or WEBP files.
File nameoutputNameTextMore optionsOptional. The extension is added for you.

Run it with the API

Upload your file with POST /api/v2/documents, then start Sign PDF with POST /api/v2/document-operations and toolId sign-pdf. The parameters use the API names in the settings table; anything you leave out takes its default. Read the operation until its state is completed, then download the output version.

The request below uses the same starting settings as the website. The script after it does the whole journey: upload, run, wait and download.

Request body
{
  "documentId": "doc_8kq2W1",
  "versionId": "ver_3Jx9Lm",
  "toolId": "sign-pdf",
  "parameters": {},
  "assets": {
    "signatureImage": {
      "documentId": "doc_signatureImage",
      "versionId": "ver_signatureImage"
    }
  },
  "idempotencyKey": "sign-pdf-2026-11-22-1"
}
cURL
#!/usr/bin/env bash
# Needs curl and jq.
# Your API key: set WELLFRIEND_API_KEY, or replace YOUR_API_KEY (keys: https://wellfriend.dev/dashboard/developer-api/keys).
set -euo pipefail
API="${WELLFRIEND_API_URL:-https://wellfriend.dev}"
WELLFRIEND_API_KEY="${WELLFRIEND_API_KEY:-YOUR_API_KEY}"
AUTH="Authorization: Bearer $WELLFRIEND_API_KEY"
RUN=$(uuidgen) # reuse this value to retry safely

# upload FILE CONTENT_TYPE KEY: prints the document id and its version id
upload() {
  curl -sS --fail-with-body -X POST "$API/api/v2/documents" -H "$AUTH" -H "Idempotency-Key: $3" \
    -H "Content-Type: $2" -H "X-Wellfriend-Filename: $(basename "$1")" --data-binary "@$1" \
    | jq -r '"\(.document.id) \(.document.currentVersion.id)"'
}

read -r DOCUMENT_ID VERSION_ID < <(upload 'input.pdf' 'application/pdf' "$RUN-upload")
read -r FILE1_DOC FILE1_VER < <(upload 'signature.png' 'image/png' "$RUN-file-1")

# Run sign-pdf
OP=$(jq -n --arg doc "$DOCUMENT_ID" --arg ver "$VERSION_ID" --arg key "$RUN-1" --arg file1d "$FILE1_DOC" --arg file1v "$FILE1_VER" \
  --argjson parameters '{}' \
  '{documentId: $doc, versionId: $ver, toolId: "sign-pdf", parameters: $parameters, idempotencyKey: $key, assets: {signatureImage: {documentId: $file1d, versionId: $file1v}}}' \
  | curl -sS --fail-with-body -X POST "$API/api/v2/document-operations" -H "$AUTH" \
      -H "Content-Type: application/json" -H "Idempotency-Key: $RUN-1" --data-binary @- | jq -r .operation.id)
while :; do
  RESULT=$(curl -sS --fail-with-body "$API/api/v2/document-operations/$OP" -H "$AUTH")
  STATE=$(echo "$RESULT" | jq -r .operation.state)
  case "$STATE" in completed) break ;; failed|cancelled|canceled) echo "$RESULT" >&2; exit 1 ;; esac
  sleep 1
done
DOCUMENT_ID=$(echo "$RESULT" | jq -r .operation.outputDocumentId)
VERSION_ID=$(echo "$RESULT" | jq -r .operation.outputVersionId)

# Download the result
curl -sS --fail-with-body "$API/api/v2/documents/$DOCUMENT_ID/versions/$VERSION_ID/content" -H "$AUTH" -o 'input-wellfriend.pdf'

Run it with the SDKs

The SDKs upload the file, run sign-pdf with the same parameters and wait for the result: wf.tools.signPdf() in TypeScript, wf.tools.sign_pdf() in Python, wf.Tools.SignPDF() in Go.

TypeScript SDK
// wellfriend-document-sdk: npm install wellfriend-document-sdk@latest. An ES module (top-level await): save it as .mts.
// Your API key: set WELLFRIEND_API_KEY, or replace YOUR_API_KEY (keys: https://wellfriend.dev/dashboard/developer-api/keys).
import { Wellfriend } from "wellfriend-document-sdk";

const wf = new Wellfriend({ apiKey: process.env.WELLFRIEND_API_KEY ?? "YOUR_API_KEY" });
const result = await wf.tools.signPdf("input.pdf", {}, { assets: { signatureImage: "signature.png" } });
await result.save("input-wellfriend.pdf");
Python SDK
# wellfriend-document-sdk: pip install -U wellfriend-document-sdk
# Your API key: set WELLFRIEND_API_KEY, or replace YOUR_API_KEY (keys: https://wellfriend.dev/dashboard/developer-api/keys).
import os

from wellfriend import Wellfriend

wf = Wellfriend(api_key=os.environ.get("WELLFRIEND_API_KEY", "YOUR_API_KEY"))
result = wf.tools.sign_pdf("input.pdf", signature_image="signature.png")
result.save("input-wellfriend.pdf")
Go SDK
// go get wellfriend.dev/go/wellfriend@latest
package main

import (
	"context"
	"fmt"
	"os"

	"wellfriend.dev/go/wellfriend"
)

func main() {
	if err := run(); err != nil {
		fmt.Fprintln(os.Stderr, err)
		os.Exit(1)
	}
}

func run() error {
	// Your API key: set WELLFRIEND_API_KEY, or replace YOUR_API_KEY (keys: https://wellfriend.dev/dashboard/developer-api/keys).
	apiKey := os.Getenv("WELLFRIEND_API_KEY")
	if apiKey == "" {
		apiKey = "YOUR_API_KEY"
	}
	wf := wellfriend.New(wellfriend.WithAPIKey(apiKey))
	ctx := context.Background()
	res, err := wf.Tools.SignPDF(ctx, wellfriend.File("input.pdf"), &wellfriend.SignPDFParams{SignatureImage: wellfriend.File("signature.png")})
	if err != nil {
		return err
	}
	return res.Save(ctx, "input-wellfriend.pdf")
}