Free plan

Digital Signature

Sign a PDF with a certificate so anyone can verify it
POST
/v1/pdfs/sign

About this tool

This tool adds a true digital signature to a PDF. It uses a certificate (a digital ID file) and its private key that you supply. Anyone can then check who signed the file and that it was not changed after signing. This is different from a picture of a handwritten signature. You can add a reason, your name, contact details and a place.
For example, you sign a contract with your company certificate so the other side can prove it is genuine.

How to use it

  1. Choose this tool.
  2. Add your PDF.
  3. Choose a saved certificate, or paste your certificate and private key.
  4. Fill in the optional details: reason, your name, contact and location.
  5. Press Generate, then download the signed PDF.

What you get back

You get a new PDF carrying your digital signature, ready to download and send. Do not edit it afterwards, or the signature will no longer match.
TEST IT LIVE

Try Digital Signature in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
PDFs
Plan
Free
Method
POST
Endpoint
/v1/pdfs/sign
Tool ID
pdfs.sign
Authentication
API key
Accepts
PDF
Background jobs
Yes
Usage group
Pdf
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/pdfs/sign" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'file=@document.pdf' \
  -F 'certificateId=1' \
  -F 'output_bundle=zip' \
  -F 'response=url'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.pdfs.sign({
    "file": 'document.pdf',
    "certificateId": 1,
    "output_bundle": "zip",
    "response": "url"
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->pdfs()->sign([
    'file' => 'document.pdf',
    'certificateId' => 1,
    'output_bundle' => 'zip',
    'response' => 'url',
]);
echo $result->requestId;
FAQ

Frequently asked questions

Sign a PDF with a certificate so anyone can verify it.

Digital Signature accepts PDF. You can send several files in one request.

Digital Signature is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/pdfs/sign with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.