AutoTaggingEngine
Selects the engine used to build the logical structure (tags) when converting a document to a tagged, accessible PDF (PDF/UA).
from nutrient_sdk import AutoTaggingEngineValues
| Name | Value | Description |
|---|---|---|
AutoTaggingEngine.HEURISTIC | 0 | The built-in heuristic auto-tagger. Infers structure (headings, paragraphs, lists, tables, figures) from layout and font analysis. Fast and fully offline. |
AutoTaggingEngine.VISION | 1 | The Vision-based auto-tagger. Uses document layout segmentation, reading-order detection and table-structure recognition to build a higher-fidelity structure tree. Does not generate figure descriptions. |
AutoTaggingEngine.VISION_VLM | 2 | The Vision-based auto-tagger with Vision Language Model enrichment. Adds generated alternate text for figures and summaries for charts on top of Vision. Requires a VLM provider to be configured (provider selection and credentials in the corresponding Vision settings); without one, tagging proceeds without descriptions. |
Usage Example
from nutrient_sdk import AutoTaggingEngine
# Access enum valuesvalue = AutoTaggingEngine.HEURISTICprint(f"Value: {value}") # Output: Value: AutoTaggingEngine.HEURISTICprint(f"Integer value: {value.value}") # Output: Integer value: 0