VisionOutputFormat
Format of content returned by and .
from nutrient_sdk import VisionOutputFormatValues
| Name | Value | Description |
|---|---|---|
VisionOutputFormat.JSON | 0 | Structured JSON with elements sorted by reading order (default). Contains paragraph text, tables, key-value regions, word-level coordinates, and per-page metadata. |
VisionOutputFormat.MARKDOWN | 1 | Markdown text optimized for human reading and LLM consumption. Uses standard markdown primitives (headings, paragraphs, tables, blockquotes for footnotes). Loses structural information like coordinates. |
VisionOutputFormat.IR_LITE | 2 | IR Lite intermediate representation optimized for LLM position retrieval. Preserves spatial coordinates with a compact token-efficient format. |
Usage Example
from nutrient_sdk import VisionOutputFormat
# Access enum valuesvalue = VisionOutputFormat.JSONprint(f"Value: {value}") # Output: Value: VisionOutputFormat.JSONprint(f"Integer value: {value.value}") # Output: Integer value: 0