THotPDF.AttachMathMLToFormulaElement Method
Provides the AttachMathMLToFormulaElement behavior for the document creation workflow. Use it when the surrounding API family needs explicit control over PDF objects, page content, resources, conformance, or diagnostics
Declaration
function AttachMathMLToFormulaElement(FormulaElem: THPDFDictionaryObject; const MathMLXML: AnsiString; const FileName: AnsiString= 'formula.mml'; const Description: AnsiString= 'MathML 3.0 formula'; const AFRelationship: AnsiString= 'Supplement'): THPDFDictionaryObject;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
FormulaElem | Input used by AttachMathMLToFormulaElement |
MathMLXML | Raw byte payload embedded or validated by this API |
FileName | File path used as the source or destination for this operation |
Description | Human-readable text stored in the PDF object, action, annotation, or structure element |
AFRelationship | Input used by AttachMathMLToFormulaElement |
Return value
Returns a THPDFDictionaryObject value
Usage notes
- Use this API in the document creation workflow before the affected page, resource, field, or catalog object is finalized
- Keep object names, field names, resource names, and returned handles stable until the document is finalized