THotPDF.AddFormulaWithMathML Method
Adds formula with math ml data to the document creation workflow. The call creates or attaches the PDF-side object needed by later output, validation, signing, or page rendering steps
Declaration
function AddFormulaWithMathML(Parent: THPDFDictionaryObject; PageIndex, MCID: Integer; const AltText, MathMLXML: AnsiString; const FileName: AnsiString= 'formula.mml'; const Description: AnsiString= ''): THPDFDictionaryObject;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
Parent | Input used by AddFormulaWithMathML |
PageIndex | Zero-based index or object index used to select an existing item |
MCID | Input used by AddFormulaWithMathML |
AltText | Input used by AddFormulaWithMathML |
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 |
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