JSON API - transformDocAdvHTML
- addBarcode
- addBookmark
- addBreak
- addCaption
- addChart
- addComment
- addCrossReference
- addDateAndHour
- addDropCap
- addEndnote
- addExternalFile
- addFootnote
- addFormElement
- addHeading
- addImage
- addLink
- addList
- addMathEquation
- addMergeField
- addPageNumber
- addRuby
- addSimpleField
- addStructuredDocumentTag
- addSVG
- addTab
- addTable
- addTableContents
- addTableFigures
- addText
- addTextBox
- addWordML
- addWordFragment
- embedHTML
- addBackgroundImage
- addFooter
- addFooterSection
- addHeader
- addHeaderSection
- addLineNumbering
- addPageBorders
- addProperties
- addSection
- createCharacterStyle
- createListStyle
- createParagraphStyle
- createTableStyle
- docxSettings
- embedFont
- modifyPageLayout
- removeFooters
- removeHeaders
- setBackgroundColor
- setCompatibilityMode
- setDefaultFont
- setDocumentDefaultStyles
- setLanguage
- setMarkAsFinal
- setRTL
- clearBlocks
- cloneBlock
- deleteBlock
- getTemplateVariables
- getTemplateVariablesType
- modifyInputFields
- modifyMergeFields
- processTemplate
- removeTemplateVariable
- removeTemplateVariableImage
- replaceBlock
- replaceListVariable
- replacePlaceholderImage
- replaceTableVariable
- replaceVariableByExternalFile
- replaceVariableByHTML
- replaceVariableByText
- replaceVariableByWordFragment
- replaceVariableByWordML
- setTemplateSymbol
- setTemplateBlockSymbol
- tickCheckboxes
transformDocAdvHTML
PREMIUM
TRIAL / ADVANCED
Transforms DOCX documents into HTML using native PHP classes.
Note
You are reading the JSON API documentation. For the PHP API method please go to transformDocAdvHTML.
JSON data
| Key | Description |
|---|---|
| document | Word document to transform. Path to the local document, Base64 string, or URL. |
| excludeNotSupportedImageTypes | If true exclude not supported image types. Default as true. |
| includeBlankSpacesInEmptyParagraphs | If true add a blank space to empty paragraphs. Useful to keep blank paragraphs if needed. Default as false. |
| includeContentTypes | If a content type is not set, its transformation is not done. Available content types: images, charts. Default all content types. |
| javaScriptAtTop | Adds the JavaScript at the top of the HTML. Default as false. |
| numberingAsParagraphs | If true add list numberings as paragraphs. Useful to transform complex numberings. Default as false. |
| transformEmfImages | If true and required extensions are available, transform EMF images. Default as true. |
Code samples
Example #1
A document can be a local file, a Base64 string, or a remote file.
Release notes
- phpdocx 18.0:
- new action.
