Free plan
PDF Metadata
See, change or remove the hidden details of a PDF
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
- Choose this tool.
- Add your PDF.
- Choose whether to only read the details, change some of them, or remove them (everything, or only personal details).
- If you are changing details, type the value you want next to each one.
- 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.
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;More in PDFs
