Convert HTML to DOCX

Takes HTML markup, renders it, and converts it to a DOCX document with the help of Zapier.

Note

There could be an issue converting certain symbols such as £. Add the following line in the HTML head element

<meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8”>

Parameters

Output Parameters

Parameter

Description

Example

File Content

The content of the result DOCX file.

It is the content of the result file.

Setup Parameters

Parameter

Description

Example

App

Select the app.

Plumsail Documents

Action event

Select an action from the Plumsail Documents bundle.

Convert HTML to DOCX

Account

To allow your zaps to get information from and send it to Plumsail Documents, you need to create a connection.

For more information on how to create a connection to Plumsail Documents, see the online Help.

Configure Parameters

Parameter

Description

Example

Source HTML

HTML content of a source template. You can specify raw HTML here or extract file content from other apps like:

  • SharePoint

  • Salesforce

  • Box

  • OneDrive

  • Google Drive

  • Dropbox

  • SFTP

  • File System

Zapier apps

<!DOCTYPE html>
<html>
<head style="color: white;">
  <meta charset="utf-8">
      <title>HTML to DOCX example</title>
</head>
<body>
  <b>Hello, World!</b>
</body>
</html>

Margins

The page margins in pt. The syntax is the same as in CSS.

  • 25 50 75 100;

This will set top margin as 25mm, right margin as 50mm, bottom margin as 75mm, left margin ias 100mm.

Paper Size

Paper size for output PDF file.

  • A4

  • Letter

  • LetterSmall

  • Tabloid

  • Ledger

  • Legal

  • Statement

  • Executive

  • A2

  • A3

  • A4Small

  • A5

  • B4

  • B5

Orientation

Page orientation for output PDF file.

  • Portrait

  • Landscape

Decode HTML

Decodes HTML if your HTML snippet symbols are replaced with the special ones.

Decodes HTML if it has this view:

&lt;!DOCTYPE html&gt;
&lt;html&gt;
    &lt;head style=&quot;color: white;&quot;&gt;
        &lt;!-- head definitions go here --&gt;
    &lt;/head&gt;
    &lt;body&gt;
        &lt;!-- the content goes here --&gt;
    &lt;/body&gt;
&lt;/html&gt;

Example

Download a source HTML file and use the output in the Convert HTML to DOCX action, or apply raw HTML.

Convert HTML document to DOCX Example