Skip to main content
Version: 1.26 (Current)

Convert from HTML to Word

This action converts HTML data into a Word Document. It support sections orientation changes with the help of the section-orientation tag which can be attributed to a p or div tag. The position of the orientation change which be attributed to the value current or after. And the new orientation portrait or landscape.

Parameter Reference

ParameterDescriptionSupports TokensDefault
HTMLProvide the HTML content that will be converted to a Word document. Supports My TokensYesNone
Template File IdentifierProvide a file identifier for the template document. If this is parameter is provided, instead of creating a new Word document from scratch, a template will be used in the generation of the final Word. This can be a file id or portal relative path. If the path to the file is Portals/0/SomeFolder/SomeDoc.docx, the parameter must receive SomeFolder/SomeDoc.docx. Supports My TokensYesNone
FolderWhere to save the document generated from the HTML. When providing the folder path through an expression, any path you supply will be starting in the current portal. If you supply a path like Images/ExampleFolder and the action runs on the portal 0, the file will be located in Portals/0/Images/ExampleFolder. Leaving this blank will cause the action to save to the Temp folder. Supports My TokensYesNone
PatternOptionally provide a pattern to use for filenames on the server. For example "generated-document-[User:Username]". Leave blank to use a GUID. Supports My TokensYesNone
Handle DuplicatesHow to handle the case in which a file already exists with the same name. Default behavior is to rename the newly generated file.NoNone
Output Token NameProvide a token name in which the newly word file id will be stored.NoNone