# Create and update templates

Create a master from a blank OFD or an official document and find its saved edition in the library.

## Start with an official document

Open 文件 → 文档模板库 → 公文示例. Search for 通知 (notice), 报告 (report) or 函 (letter), then choose 用模板新建. Edit the issuer, title, body or page furniture. Give form controls stable field keys wherever external data should populate the page.

## Save and reuse a master

| Goal | Action | Result |
| --- | --- | --- |
| Create a master | In an editable ordinary OFD, choose 文件 → 另存为新模板 and enter a name | 我的模板 lists the name, revision and storage location |
| Write a new document | Choose 用模板新建 beside an entry | The instance receives a new document identity and the master stays available |
| Revise a master | Under 我的模板 choose 编辑模板, edit the document and choose 更新模板 | A new revision is stored under the existing template ID |
| Keep an alternate layout | Choose 另存为新模板 and enter another name | The library gains a separate master |

The default library uses IndexedDB for this browser and site. Supply `documentTemplates` to share a writable catalog across workstations. Use `templatePresets` for a read-only catalog. If another author has updated the master, reopen the latest edition for review or save your work as a separate master. [Embed the workspace](/en/integration/embed)

A master must be an unsigned, editable ordinary OFD with at least one page. Start institutional medical templates from a blank document type so imported patient records stay out of reusable forms. [Medical extension](/en/integration/medical)
