JavaScript API: convertMeasuringUnit
- addBookmark
- addBreak
- addComment
- addCrossReference
- addDateTime
- addEndnote
- addExternalFile
- addFootnote
- addFormElement
- addImage
- addLink
- addList
- addMergeField
- addPageNumber
- addSimpleField
- addStructuredDocumentTag
- addSvg
- addTab
- addTable
- addTableOfContents
- addTableOfFigures
- addText
- addWordFragment
- addWordMl
- getTemplateSymbols
- getTemplateVariables
- openTemplate
- processTemplate
- removeVariableImage
- removeVariableText
- replaceVariableCheckbox
- replaceVariableExternalFile
- replaceVariableImage
- replaceVariableInputField
- replaceVariableList
- replaceVariableTable
- replaceVariableText
- replaceVariableWordFragment
- replaceVariableWordMl
- setTemplateSymbols
convertMeasuringUnit
PREMIUM
TRIAL / ADVANCED
Converts measuring unit.
Note
You are reading the JavaScript API documentation. For the PHP API methods please go to PHP API.
Description
convertMeasuringUnit = (value: number, from: MeasuringUnit, to: MeasuringUnit, round: boolean = true): number | null
Code samples
Release notes
- phpdocx 15.0:
- new method.