Free plan

PDF Annotations

See, remove or lock the comments and highlights in a PDF
POST
/v1/pdfs/annotations

About this tool

Annotations are the comments, highlights, notes and links that people add on top of a PDF page. This tool can list them, remove the ones you choose, or flatten them, which means drawing them into the page so they can no longer be edited. You can limit the work to some pages or some kinds of annotation.
For example, you flatten the highlights and comments in a contract so they stay visible and cannot be changed.

How to use it

  1. Choose this tool.
  2. Add your PDF with Upload or drag and drop.
  3. Choose what to do: list, remove or flatten.
  4. Optionally choose the pages or the kinds of annotation to work on.
  5. Press Generate, then view the list or download the new PDF.

What you get back

For list you get a list of the annotations on screen. For remove or flatten you get a new PDF to download.
GOOD TO KNOW
Adding annotations is done by the manipulate tool (highlight, note, ink, stamp ...). The pop-up windows of a removed annotation go with it. Counts as one file.
TEST IT LIVE

Try PDF Annotations 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/annotations
Tool ID
pdfs.annotations
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/annotations" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'file=@document.pdf' \
  -F 'operation=list' \
  -F 'pages=1-3' \
  -F 'types=["highlight"]'

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.annotations({
    "file": 'document.pdf',
    "operation": "list",
    "pages": "1-3",
    "types": "[\"highlight\"]"
  });
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()->annotations([
    'file' => 'document.pdf',
    'operation' => 'list',
    'pages' => '1-3',
    'types' => '["highlight"]',
]);
echo $result->requestId;
FAQ

Frequently asked questions

List the comments, highlights, notes and links in a PDF, remove the ones you pick, or flatten them into the page so they can no longer be edited.

PDF Annotations accepts PDF. You can send several files in one request.

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

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