Reverse Engineering UYAP's .udf File Format: What's Inside a Turkish Court Document?
说明与用途
udf2md脚本将土耳其司法系统的.udf文件转换为Markdown,保留结构和格式,同时保持数据在浏览器端。
问题
Legal professionals in Turkey need to read and process UYAP .udf documents, but the proprietary format is not natively supported by mainstream tools or LLMs.
结果
The udf2md tool transforms UYAP .udf files into Markdown, preserving headings, formatting, tables, and images, while keeping all data in the browser for privacy.
工作流
- 1. Load .udf file into browser as ArrayBuffer.
- 2. Use JSZip to unzip and list entries.
- 3. Extract content.xml (and any embedded images).
- 4. Parse XML with DOMParser or similar.
- 5. Map XML elements (template, properties, elements, paragraph, content, table) to Markdown constructs.
- 6. Convert color attributes from Java RGB integers to hex.
- 7. Output Markdown string for display or further processing.
证据
A .udf file is a ZIP archive containing a single content.xml file that follows a custom XML schema
We built udf2md — a 100% client‑side converter. No data leaves your browser.
- 记录日期: 2026-09-22T14:45:31.477Z