Free plan

PDF Inspect

See what is inside a PDF: pages, fonts, security and more
POST
/v1/pdfs/inspect

About this tool

This tool looks inside a PDF and reports what it finds. You choose the checks: structure (pages and sizes), fonts, signatures, security (whether it is protected), accessibility, properties, and whether the file follows the PDF/A archive standard. It does not change your file.
For example, you check why a PDF is so large, or whether it is protected.

How to use it

  1. Choose this tool.
  2. Add your PDF with Upload or drag and drop.
  3. Choose the checks you want to run.
  4. Press Generate.
  5. Read or copy the report.

What you get back

You get a report on screen with what was found in the PDF. Your file is not changed.
TEST IT LIVE

Try PDF Inspect 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/inspect
Tool ID
pdfs.inspect
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/inspect" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'file=@document.pdf' \
  -F 'checks=["structure"]' \
  -F 'pdfaFlavour=auto' \
  -F 'validate_only=false'

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.inspect({
    "file": 'document.pdf',
    "checks": [
      "structure"
    ],
    "pdfaFlavour": "auto",
    "validate_only": false
  });
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()->inspect([
    'file' => 'document.pdf',
    'checks' => ['structure'],
    'pdfaFlavour' => 'auto',
    'validate_only' => false,
]);
echo $result->requestId;
FAQ

Frequently asked questions

See what is inside a PDF: pages, fonts, security and more.

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

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

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