Place signature on a PDF
About this tool
How to use it
- Choose this tool.
- Add your PDF and, as the second file, the picture of your signature.
- Choose which pages to sign and where the signature goes: a corner, exact position, or next to a word.
- Set optional choices such as size, opacity, a date and your name under it.
- Press Generate, then download the signed PDF.
What you get back
Try Place signature on a PDF in the Studio
Use it from your code
cURL
curl -X POST "https://app.h2i.davixlabs.io/v1/pdfs/place-signature" \
-H "X-Api-Key: $DAVIX_H2I_API_KEY" \
-F 'file=@document.pdf' \
-F 'signature=@document.pdf' \
-F 'position=bottom-right' \
-F 'unit=pt' \
-F 'opacity=1'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.placeSignature({
"file": 'document.pdf',
"signature": 'document.pdf',
"position": "bottom-right",
"unit": "pt",
"opacity": 1
});
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()->placeSignature([
'file' => 'document.pdf',
'signature' => 'document.pdf',
'position' => 'bottom-right',
'unit' => 'pt',
'opacity' => 1,
]);
echo $result->requestId;