Free plan
PDF Annotations
See, remove or lock the comments and highlights in a PDF
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
- Choose this tool.
- Add your PDF with Upload or drag and drop.
- Choose what to do: list, remove or flatten.
- Optionally choose the pages or the kinds of annotation to work on.
- 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.
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;More in PDFs
