Free plan

Add Cover Page

Add a title page in front of a PDF
POST
/v1/pdfs/cover

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

  1. Choose this tool.
  2. Add your PDF with Upload or drag and drop.
  3. Type the title and any subtitle, author and date.
  4. Optionally add a picture and choose the colours and alignment.
  5. 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.
Open in the Studio
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;
FAQ

Frequently asked questions

Put a cover page in front of a PDF, with a title, subtitle, author, date, extra lines and an optional image, in any script, on a page the size of the first page.

Add Cover Page accepts PDF. You can send several files in one request.

Add Cover Page is included in every plan, including Free. Each run uses credits from your monthly allowance.

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