Free plan

Verify Signatures

Check who signed a PDF and whether it changed since
POST
/v1/pdfs/verify-signature

About this tool

This tool reads the digital signatures of a PDF and reports each one: who signed, when, whether the signed content is still intact, whether the signature covers the whole document and whether the certificate (the digital ID) is trusted. It only reports and does not change the file. A PDF with only a picture of a signature has no digital signature to check.
For example, you received a signed contract and want to make sure nobody edited it after it was signed.

How to use it

  1. Choose this tool.
  2. Add the signed PDF.
  3. Press Generate.
  4. Read the report for each signature.

What you get back

You get a report on screen listing every signature and what could be confirmed. You can copy it.
GOOD TO KNOW
Certificate trust depends on the CA store of the server: self-signed and private-CA certificates are not trusted even when the signature is valid. Revocation is not checked online.
TEST IT LIVE

Try Verify Signatures 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/verify-signature
Tool ID
pdfs.verify-signature
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/verify-signature" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'file=@document.pdf' \
  -F 'validate_only=false' \
  -F 'presetId=00000000-0000-4000-8000-000000000000' \
  -F 'app=x'

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.verifySignature({
    "file": 'document.pdf',
    "validate_only": false,
    "presetId": "00000000-0000-4000-8000-000000000000",
    "app": "x"
  });
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()->verifySignature([
    'file' => 'document.pdf',
    'validate_only' => false,
    'presetId' => '00000000-0000-4000-8000-000000000000',
    'app' => 'x',
]);
echo $result->requestId;
FAQ

Frequently asked questions

Report every signature of a PDF: signer, signing time, hash algorithm, whether the signed bytes are intact, whether the signature covers the whole document and whether the certificate is trusted by this server. The file is not changed.

Verify Signatures accepts PDF. You can send several files in one request.

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

Send a POST request to /v1/pdfs/verify-signature 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.