Skip to main content

Word Templates

Administrators can create Word-based document templates — such as transmittals and invoices — that contain Jinja code. When a user generates a document from one of these templates, Docwize populates the Jinja fields with document metadata, producing a completed PDF. The Jinja syntax available for building templates is accessible via the floating toolbar.

Who configures this

Administrators with access to the New module. Word templates are managed from New > Manage Document Templates.

Manage Document Templates

Manage Document Templates dialog

Manage Document Templates dialog

ControlDescription
Search templatesFilters the template list by name.
ProjectFilters the template list by project.
Document TypeFilters the template list by document type.
Reset filtersClears all active filters. Appears when at least one filter is applied.
Show DeletedToggle. Shows deleted templates in the list when enabled.
RefreshRefreshes the template list.
+Opens the Generate New Document Template wizard.
Drag and drop zoneDrag a Word file here, or click, to create a new template directly.
Template nameThe name of the template. The Template ID and Doc ID are shown below the name.
Document typeThe document type assigned to the template.
ProjectThe project assigned to the template.
Preview (book icon)Opens a preview of the template.
Edit (pencil icon)Opens the template for editing in Office Online.
Document details (information icon)Opens the template's Document Details.
Delete (trash icon)Deletes the template.
CloseCloses the dialog.

Generate New Document Template wizard

Clicking + opens the Generate New Document Template wizard, which has three steps.

Generate New Document Template wizard — Step 1

Generate New Document Template wizard — Step 1

Step 1 — Enter Template Metadata

FieldDescription
Template NameThe name for the template.
ProjectAssociates the template with a project.
Document TypeAssociates the template with a document type.
Select FolderSelects which folder(s) in Docwize the template applies to. Use Search folders to filter the folder tree. Click + next to a folder to add it to the selection.
NextAdvances to Step 2. Enabled once required fields are complete.

Steps 2–3 — Select Template Source and Generate Template

Step 2 (Select Template Source) asks for the Word file to use as the template. Step 3 (Generate Template) completes the process.

How to upload a Word template

StepDescription
1Create a Word document containing the relevant content, and insert Jinja code fields from the floating toolbar where dynamic values should appear.
2Navigate to New > Manage Document Templates and click +.
3In the Generate New Document Template wizard, enter a Template Name and optionally assign a Project, Document Type, and folder. Click Next.
4Complete the remaining steps to select the Word file and generate the template.

How to generate a PDF from a Word template

StepDescription
1Navigate to the Document Details of the document to generate a PDF from.
2Click Generate from Template in the toolbar.
3Select the relevant Word template.
4Click Generate from Template. Docwize produces a PDF populated with the document's metadata.

What can go wrong

IssueDetail
Jinja fields not populatingCheck that the field references in the Word template exactly match the available Jinja variables. Use the floating toolbar to insert references rather than typing them manually.
Template not appearing in the Generate from Template listConfirm the template has been successfully uploaded and is not deleted. Check the Show Deleted toggle to verify it has not been removed.
Edit not availableThe template must be in a supported format (Word). Check that Office Online is accessible from the environment.
Template associated with wrong project or document typeUse the Edit (pencil icon) on the template to update its metadata.
  • Floating toolbar — Jinja syntax reference for building template fields
  • Custom Fields — custom field data available as Jinja variables in templates