Headers, Footers, Page Numbers
About this tool
How to use it
- Choose this tool.
- Add your PDF with Upload or drag and drop.
- Type the header and footer text, or switch on page numbers.
- Choose the number style, the start number and whether to skip the first page.
- Press Generate, then download the PDF.
What you get back
Try Headers, Footers, Page Numbers in the Studio
Use it from your code
cURL
curl -X POST "https://app.h2i.davixlabs.io/v1/pdfs/headers-footers" \
-H "X-Api-Key: $DAVIX_H2I_API_KEY" \
-F 'file=@document.pdf' \
-F 'numbering=arabic' \
-F 'margin=28' \
-F 'fontSize=10'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.headersFooters({
"file": 'document.pdf',
"numbering": "arabic",
"margin": 28,
"fontSize": 10
});
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()->headersFooters([
'file' => 'document.pdf',
'numbering' => 'arabic',
'margin' => 28,
'fontSize' => 10,
]);
echo $result->requestId;