About this tool
This tool puts a new cover page at the start of your PDF. You type a title, and optionally a subtitle, an author, a date and extra lines, and you can add a picture. You can choose the colours, alignment and font. By default the cover has the same size as the first page of your document.
For example, you add a title page with your name and the date to the front of a report.
How to use it
- Choose this tool.
- Add your PDF with Upload or drag and drop.
- Type the title and any subtitle, author and date.
- Optionally add a picture and choose the colours and alignment.
- Press Generate, then download the PDF.
What you get back
You get a new PDF with the cover page in front, ready to download.
TEST IT LIVE
Try Add Cover Page in the Studio
One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Family
PDFs
Plan
Free
Method
POST
Endpoint
/v1/pdfs/cover
Tool ID
pdfs.cover
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/cover" \
-H "X-Api-Key: $DAVIX_H2I_API_KEY" \
-F 'file=@document.pdf' \
-F 'align=center' \
-F 'direction=auto' \
-F 'output_bundle=zip'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.cover({
"file": 'document.pdf',
"align": "center",
"direction": "auto",
"output_bundle": "zip"
});
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()->cover([
'file' => 'document.pdf',
'align' => 'center',
'direction' => 'auto',
'output_bundle' => 'zip',
]);
echo $result->requestId;More in PDFs
