pdf_info
Get PDF metadata—page count, title, author, encryption, and text layer status—to determine if you can read text directly or need OCR for scanned documents.
Instructions
Get PDF metadata: page count, title, author, dates, encryption, page size, file size, and whether the PDF has an embedded text layer (vs scanned-only).
Use this first to decide between pdf_read (text layer) and pdf_view/pdf_ocr (scanned).
Args: source: Local file path or direct http(s) URL to a PDF.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |