JSON API - transformDocAdvHTML

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.