# Set up the default print template

## Overview

[Video: Set up the default print template](https://www.youtube.com/watch?v=FyVq95P3fyo)

This flow describes how to set up the default [print template](https://docs.ohc.network/concepts/platform/print-template.md) of a facility in Care.

The default template sets how every document of the facility prints, unless the document has a template of its own.

## Pre-requisites

* You belong to the facility and can open it in Care.
* If you add an image, you have its web address. Care has no upload for print template images.
* If you add an image, it is a PNG, JPEG, GIF, WebP or SVG file.
* If you add an image, the website that holds it allows Care to load it (cross-origin resource sharing).
* You have the permissions listed below.

## Permissions

| Permission | Access |
| - | - |
| Can Update on Facility | Lets you open **Print Templates** and save the default template. You need it in the facility's root organization, which Care names Administration. Facility Admin, Administrator and Staff have it by default. |

## Steps

### 1. Open Print Templates

In the facility sidebar, under **Administration**, select **Settings**.

Care shows the settings sidebar of the facility.

Under **Facility**, select **Print Templates**.

Care shows the **Print Templates** page, with the **Default Template** section and the **Document Templates** section.

![The facility sidebar, with Settings outlined under Administration](/assets/images/set-up-the-default-print-template-1-9fd35be0b8e26d50957e3b617117a6fc.webp)

### 2. Open the default template

In **Default Template**, find the **Default** row.

If the row says **Not set up. Documents print with the standard layout.**, select **Customize**.

If the facility already has a default template, select **Edit**.

Care opens the **Default Template** sheet, with the description **Used for every document that doesn't have its own template.**

Note: On a narrow screen, the button shows only its icon.

![The Print Templates page, with the Default Template section outlined and the Default row not set up](/assets/images/set-up-the-default-print-template-2-730a0a79d44a937dce9c415ee5330db0.webp)

### 3. Set the page settings

In **Page Settings**, set the paper size, the orientation and the margins.

| Components | What it captures |
| - | - |
| **Page Size** | The paper size: **A4**, **A5**, **Letter** or **Legal**. With **Default (A4)**, documents print on A4. |
| **Orientation** | **Portrait** or **Landscape**. With **Document default**, every document prints in portrait, except **Medication Administration**. |
| **Page Margins (mm)** | The **Top**, **Right**, **Bottom** and **Left** margins, in millimetres. Leave all four blank to use the default margin of 10 mm. |

* If you fill in one margin and leave other margins blank, Care saves the blank margins as 10 mm.
* If you enter a negative margin, Care shows **Margins can't be negative.** and you cannot save.

Note: The **Medication Administration** printout always prints in landscape. If its margins are blank, they are 6 mm.

![The Page Settings section of the Default Template sheet, with A4 and Portrait selected](/assets/images/set-up-the-default-print-template-3-f8d258ae088114e56eeb159dba5be488.webp)

### 4. Add the branding images

In **Branding**, add the images that print at the top and the bottom of the document.

For each image, paste its web address in **Image URL**.

After you enter a web address, Care shows the size fields for that image.

| Components | What it captures |
| - | - |
| **Logo** | An image that prints beside the facility's name and address. Set its **Width (px)**, **Height (px)** and **Alignment**: **Left**, **Center** or **Right**. |
| **Header Image** | An image that replaces the logo and the facility details at the top of the document. Set its **Height (px)**. |
| **Footer Image** | An image that prints at the bottom of the last page. Set its **Height (px)**. |

* The logo and the header image print at the top of the first page only.
* If you set no width and no height for the logo, the logo prints 40 px tall.
* The logo prints at the left, unless you select another **Alignment**. Without a logo in the template, the deployment's logo prints at the right.
* While the template has a header image, the logo does not print.
* The height of the header image is its maximum height. Its width is at most 768 px.
* If you clear the **Image URL** of an image, Care does not save that image.

Note: Care does not check the web address when you save. After you save, print a document to make sure that the images show.

![The Branding section, with an Image URL field each for the logo, the header image and the footer image](/assets/images/set-up-the-default-print-template-4-7a11860f042b820abc51a451cbf3f384.webp)

### 5. Set the watermark

In **Watermark**, turn on **Enable Watermark** to print a text across every page.

Enter the text in **Watermark Text**.

| Components | What it captures |
| - | - |
| **Enable Watermark** | Turns the watermark on or off. It is off at the start. |
| **Watermark Text** | The text that prints, for example CONFIDENTIAL or DRAFT. |
| **Opacity (0–1)** | The opacity of the text, from 0 to 1. If you leave it blank, Care uses 0.08. |
| **Rotation (°)** | The angle of the text, in degrees. If you leave it blank, Care uses -30. |

* Care shows **Watermark Text**, **Opacity (0–1)** and **Rotation (°)** only while **Enable Watermark** is on.
* If you enter an opacity below 0 or above 1, Care shows **Opacity must be between 0 and 1.** and you cannot save.
* If **Watermark Text** is empty, Care lets you save, but no watermark prints.

![The Watermark section, with Enable Watermark turned on and the text COPY entered](/assets/images/set-up-the-default-print-template-5-aa5ca5030675a172c1b81f9bbd1d749d.webp)

### 6. Set the print setup

If the print dialog must open by itself when a document opens, turn on **Auto Print** in **Print Setup**.

* On a computer with a mouse or a touchpad, the print dialog opens by itself. After you close the dialog, Care goes back to the previous page.
* On touch devices, such as phones and tablets, **Auto Print** has no effect.

![The Print Setup section, with the Auto Print switch](/assets/images/set-up-the-default-print-template-6-014ab47bbcd58a4556e5a770c926301f.webp)

### 7. Save the default template

Select **Save**.

Care saves the template, shows **Print templates updated successfully**, and closes the sheet.

Note: **Save** is disabled while a margin or the opacity is not valid. For a default template that is already saved, **Save** stays disabled until you change something.

Note: To close the sheet without saving, select **Cancel**. If you changed something, Care asks **You have unsaved changes. Leave without saving?**

![The Print Templates page after saving, with the Default row showing A4, Portrait and Watermark](/assets/images/set-up-the-default-print-template-7-9504b7b06f1fe94eff9110d3dbe8e31a.webp)

## Expected Outcome

* The **Default** row shows a summary of the template, for example "A5 · Landscape · Custom Margins · Logo · Watermark · Auto Print".
* The **Default** row shows **Edit** instead of **Customize**.
* If the template sets nothing, the summary says **Standard layout**.
* Every document row without a template of its own says **Uses the default template**.
* These documents print with the default template. Documents with a template of their own do not change.
* If an image does not print, the print preview shows **Some images were left out**. Check the **Image URL** and the website that holds the image. Make sure that the image is PNG, JPEG, GIF, WebP or SVG.

## Related

Concepts:

* [Print template](https://docs.ohc.network/concepts/platform/print-template.md)
* [Report template](https://docs.ohc.network/concepts/platform/report-template.md)

Flows:

* [Customize the print template of a document](https://docs.ohc.network/flows/platform/print-template/customize-a-document-print-template.md)
* [Reset or remove a print template](https://docs.ohc.network/flows/platform/print-template/reset-or-remove-a-print-template.md)
* [Update facility details](https://docs.ohc.network/flows/facility/facility/update-facility-details.md)
