inspect_pdf_document — Inspect Binary PDF Structure & Metadata

Parses a Base64-encoded PDF binary to verify %PDF header/EOF integrity and extract pdfVersion, exact pageCount, byteLength, encryption status, AcroForm presence, and Info dictionary metadata.

Why buy vs. DIY: Instant deterministic PDF preflight without installing native poppler/pdfinfo binaries; $0.001 per check.

Pricing: $0.001 USD per PDF binary inspection (x402 instant micropayment) · REST: POST https://pdf-forge.apikeg.com/v1/inspect-pdf-document · MCP: https://pdf-forge.apikeg.com/mcp

Input Parameters

FieldTypeRequired / DefaultDescription & Constraints
pdfBase64 string Required Base64-encoded PDF binary (standard or URL-safe Base64, optional 'data:application/pdf;base64,' prefix). (minLength: 8, maxLength: 5242880)

REST Example (curl)

curl -X POST "https://pdf-forge.apikeg.com/v1/inspect-pdf-document" \
  -H "Content-Type: application/json" \
  -d '{
  "pdfBase64": "JVBERi0xLjcK..."
}'

MCP tools/call Payload

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "inspect_pdf_document",
    "arguments": {
      "pdfBase64": "JVBERi0xLjcK..."
    }
  }
}