Formula MathML 关联文件
ISO 32000-2 14.8.4.8.3 与 WTPDF 1.0 8.2.5.24 把 MathML 3.0 作为 Formula 结构元素的 Associated File 附加
THotPDF 写入成员
THotPDF.AttachMathMLToFormulaElement(FormulaElem, MathMLXML, FileName, Description, AFRelationship) 把 MathML XML 嵌入为 application/mathml+xml 流,包进 Filespec 后登记到 catalog 关联文件与 embedded-files name tree,再把它与既有 Formula 元素关联
THotPDF.AddFormulaWithMathML(Parent, PageIndex, MCID, AltText, MathMLXML, ...) 一次调用创建完整的 tagged Formula 元素——alt 文本、PDF 2.0 MathML 命名空间的 math 结构子元素,以及挂接的 MathML 文件
THotPDF 已加载文档查询
THotPDF.GetLoadedFormulaMathML(StructElemDict, ...) 提供 string 与 THPDFFormulaMathMLInfo 两种重载,从单个元素提取关联的 MathML;没有匹配的关联文件时,从 MathML 命名空间的结构子元素重建
THotPDF.CollectLoadedFormulaMathML(Formulas) 按文档顺序遍历结构树,带 role-map 映射、环保护与 256 层深度上限,以 THPDFFormulaMathMLArray 返回每个 Formula 元素及其 MathML 与文本替代
THotPDF.AddAccessibleMathMLFormula是同一工作流中较早的基于字节的成员