Free PDF Metadata Viewer Online
Read PDF metadata: page count, title, author, creator, producer, dates, PDF version, encryption, form fields and the size of each page (A4, Letter…).
Result
Press “Run” to see the result.
The PDF Metadata API reads a PDF document and returns its properties without rendering it: PDF version, page count, whether it is encrypted or linearized (“fast web view”), the document information fields – title, author, subject, keywords, creator application, producer, creation and modification dates – the document language, the number of form fields and whether XMP metadata is present.
Each page (up to pages_limit, default 50) is listed with its width and height in points and millimetres and its rotation, and the first page size is matched to a paper name such as A4, A5, Letter, Legal or Tabloid, including landscape. The raw Info dictionary is returned as well, and xmp=true adds the XMP packet (up to 20,000 characters).
Upload the PDF as multipart field file, as the raw request body, as base64 in file_base64, or pass a public url. Maximum file size depends on your plan: Free 5 MB, Starter 20 MB, Pro 50 MB. Files are processed in memory and never stored.
Use this in your code
curl -X POST "https://apibox.io.vn/v1/pdf-metadata" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@./my-file"const form = new FormData();
form.append('file', fileInput.files[0]);
const res = await fetch('https://apibox.io.vn/v1/pdf-metadata', {
method: 'POST',
headers: { Authorization: 'Bearer YOUR_API_KEY' },
body: form,
});
console.log(await res.json());import requests
res = requests.post(
"https://apibox.io.vn/v1/pdf-metadata",
headers={"Authorization": "Bearer YOUR_API_KEY"},
files={"file": open("my-file", "rb")},
timeout=30,
)
print(res.json())<?php
$ch = curl_init('https://apibox.io.vn/v1/pdf-metadata');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY'],
CURLOPT_POSTFIELDS => ['file' => new CURLFile('my-file')],
]);
$response = curl_exec($ch);
print_r(json_decode($response, true));API documentation → Get a free API key
FAQ
How do I count the pages of a PDF via API?
POST the file as multipart field "file" to /v1/pdf-metadata and read page_count. It works for large documents too; only the first 50 pages are listed in pages unless you raise pages_limit.
Can it read password-protected PDFs?
Encrypted PDFs are opened without decrypting the content: you get encrypted: true, the page count and page sizes, but text-based fields such as title or author may be unreadable.
Does it extract the text of the PDF?
No, this endpoint only returns metadata and page geometry. It does not perform text extraction or OCR.