Free plan

PDF Metadata

See, change or remove the hidden details of a PDF
POST
/v1/pdfs/metadata

About this tool

Every PDF carries hidden details besides its pages, such as the title, the author, the program that made it and dates. They are called metadata, which just means information about the file. This tool shows these details, lets you change or add some, or removes them, for example the author name or location data, before you share the file.
For example, you want to set a proper title on a PDF and remove your name as author before sending it to a client.

How to use it

  1. Choose this tool.
  2. Add your PDF.
  3. Choose whether to only read the details, change some of them, or remove them (everything, or only personal details).
  4. If you are changing details, type the value you want next to each one.
  5. Press Generate, then read the details or download the new PDF.

What you get back

You see the list of details on screen, or you get a new PDF with the details changed or removed, ready to download.
GOOD TO KNOW
Read mode (no write fields) returns the metadata; write mode returns a signed URL to the modified PDF.
TEST IT LIVE

Try PDF Metadata 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/metadata
Tool ID
pdfs.metadata
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/metadata" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'file=@document.pdf' \
  -F 'mode=read' \
  -F 'clean=all' \
  -F 'response=url'

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.metadata({
    "file": 'document.pdf',
    "mode": "read",
    "clean": "all",
    "response": "url"
  });
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()->metadata([
    'file' => 'document.pdf',
    'mode' => 'read',
    'clean' => 'all',
    'response' => 'url',
]);
echo $result->requestId;
FAQ

Frequently asked questions

See, change or remove the hidden details of a PDF.

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

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

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