Table of Contents

Method ToDocLang

Namespace
LMKit.Document.Parsing
Assembly
LM-Kit.NET.dll

ToDocLang()

Renders the document as DocLang, the open AI-native document markup of the LF AI and Data Foundation (https://www.doclang.ai): headings, text, lists, tables (OTSL cells with their spans), formulas (LaTeX), pictures and charts (with their data as a tabular payload), captions, footnotes and running heads, each with its location, pages separated by page breaks.

public string ToDocLang()

Returns

string

The DocLang markup of the document.

Remarks

The markup targets DocLang 0.7 (namespace https://www.doclang.ai/ns/v0) and validates against the specification's schema. Locations are normalized to a resolution of 1000 on each axis of the page, as declared in the document head.

Share