from __future__ import annotations import base64 import html import json import re from typing import Any from document_processing import MAX_DOCUMENT_BYTES, MAX_PAGES EMPTY_TEXT = """
Extract text, tables, and document structure from PDFs and images.
PDF, PNG, JPEG, or WebP · {MAX_PAGES} pages · {format_bytes(MAX_DOCUMENT_BYTES)} maximum
Configuration