Compare PDF Structures
compare_structureCompare internal structures of two PDFs to identify differences in properties, fonts, and objects. Useful for verifying exports, tracking changes, and diagnosing generation issues.
Instructions
Compare the internal structures of two PDF documents and identify differences.
Args:
file_path_1 (string): Absolute path to the first PDF file
file_path_2 (string): Absolute path to the second PDF file
response_format ('markdown' | 'json'): Output format (default: 'markdown')
Returns: Structural comparison including: property-by-property diff (page count, PDF version, encryption, tagged status, object counts, page dimensions, file size, catalog entries, signatures), font comparison (fonts unique to each file and shared fonts), and a summary.
Examples:
Compare two versions of the same document
Verify structural consistency across PDF exports
Identify differences in PDF generation pipelines
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path_1 | Yes | Absolute path to the first PDF file for comparison | |
| file_path_2 | Yes | Absolute path to the second PDF file for comparison | |
| response_format | No | Output format: "markdown" for human-readable, "json" for structured data | markdown |