get_structure
Retrieve the section hierarchy (table of contents) of a PDF specification. Returns section numbers, titles, and page numbers for the given spec ID and depth.
Instructions
Get the section hierarchy of the PDF specification (ISO 32000-2). Returns the table of contents with section numbers, titles, and page numbers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | No | Specification ID (e.g., "iso32000-2", "ts32002", "pdfua2"). Use list_specs to see available specs. Default: "iso32000-2" (PDF 2.0). | |
| max_depth | No | Maximum depth of the hierarchy to return (default: all levels). 1 = top-level only, 2 = top + sub-sections, etc. |