Inspect PDF metadata
inspect_pdfInspect a PDF to retrieve metadata, version, page count, encryption state, PDF/A claim, signature count, and attachments. Optionally validate CI assertions like PDF/A compliance and signed status.
Instructions
Read-only inspection of an existing PDF: version, page count, encryption state, PDF/A claim, signature count, hasSignaturePlaceholder, embedded attachments[], document info / metadata. Use the check array for CI-style assertions — supported values: 'pdfa', 'signed' (true when at least one signature has signed content), 'encrypted', 'placeholder' (unsigned /Sig widget present), 'attachments' (at least one /EmbeddedFile). The checksPassed boolean is true only when ALL requested checks hold.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pdfBase64 | Yes | Base64-encoded PDF bytes to inspect. | |
| pages | No | When true, include per-page metadata in the response. | |
| check | No | Optional CI assertions. The result.checksPassed flag is true only when every requested check holds (e.g. ['pdfa','signed']). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | Yes | PDF version (e.g. "1.7"). | |
| pageCount | Yes | ||
| encryption | Yes | ||
| pdfA | No | Detected PDF/A claim (e.g. '1B', '2B', '2U', '3B') from XMP metadata, or null when absent. | |
| signatureCount | Yes | ||
| hasSignaturePlaceholder | Yes | True when at least one signature widget exists with empty /Contents — i.e. an unsigned placeholder awaiting `sign_pdf`. | |
| attachments | Yes | Embedded files exposed via /Names → /EmbeddedFiles (PDF/A-3, Factur-X). | |
| info | No | Document /Info dictionary entries decoded as strings. | |
| perPage | No | ||
| checks | No | ||
| checksPassed | No |