THotPDF.AttachMathMLToFormulaElement Method
Provides MathML attachment for a formula structure element in 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 supplied to 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 supplied to AttachMathMLToFormulaElement |
Return value
Returns a THPDFDictionaryObject value
Usage notes
- Use this API in the document creation workflow before the affected page, resource, field or catalogue object is finalised
- Keep object names, field names, resource names and returned handles stable until the document is finalised