Add a PDF template from Template Management. After you choose organisation, template type, and optional clinic, you design the HTML layout and select variables so the right patient and letter details are inserted dynamically into each exported PDF.
1
Add New Template button
In the templates or documents area, click Add New Template to start adding a PDF template.
Add New Template button.
2
Select Organisation and Template Type
Under Clinic (optional), choose Organisation template or a specific clinic.
Popup: select Organisation and Template Type.
3
Edit the PDF design in the HTML editor
After you select organisation, template type, and optional clinic, the HTML Content Editor opens. Use the HTML to control layout and styling (headings, tables, branding). Add placeholders in the markup for any dynamic details you want in the final PDF (patient name, dates, letter text, and other fields). Open Variables, tick the dynamic fields you want MedWrite to merge for this template, and keep them aligned with your HTML. Use Run to preview (you can add sample context data for testing). When the design is correct, Publish Template to save it for live letters.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"MedWrite.ai","colors":{"primary":"#169c97","light":"#2BBEB8","dark":"#117A76"},"logo":{"light":"https://mintcdn.com/medwriteai/3s0IbxTNiFnzwJpB/images/logo1.png?fit=max\u0026auto=format\u0026n=3s0IbxTNiFnzwJpB\u0026q=85\u0026s=6fab4035583ab6917e6d9bb804d3941b","dark":"https://mintcdn.com/medwriteai/3s0IbxTNiFnzwJpB/images/logo1.png?fit=max\u0026auto=format\u0026n=3s0IbxTNiFnzwJpB\u0026q=85\u0026s=6fab4035583ab6917e6d9bb804d3941b","href":"https://medwrite.ai/"},"favicon":"https://mintcdn.com/medwriteai/fumn6lG29vGR3bLm/images/website.png?fit=max\u0026auto=format\u0026n=fumn6lG29vGR3bLm\u0026q=85\u0026s=3ead4bf71cbc57ac6b65a0351206a42c","navbar":{"links":[{"href":"https://medwrite.ai/contact","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.medwrite.ai/dashboard"}},"footer":{"socials":{"website":"https://medwrite.ai/","linkedin":"https://linkedin.com/company/medwrite-ai"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Blog","icon":"newspaper","href":"https://medwrite.ai/news"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"medwriteai","hasAudioNarration":false,"actualSubdomain":"medwriteai","customDomains":["docs.medwrite.ai"],"gitSource":{"type":"github","owner":"sidebotai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae84da04729f9837cf10bf1","collectionId":"6b003957-a707-4790-a51f-64aa14f5d953","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae84da04729f9837cf10bf1"},"entitlements":{},"buildId":"6ae84da04729f9837cf10bf1","clientVersion":"0.0.4076","searchFilterCounts":[{"language":"default","tag":"Guides","count":42},{"language":"default","tag":"API reference","count":9},{"language":"default","tag":"Output \u0026 Letters","count":7},{"language":"default","tag":"Mobile Application","count":7},{"language":"default","tag":"Organization Management","count":6},{"language":"default","tag":"Updates","count":6},{"language":"default","tag":"AI Assistants","count":5},{"language":"default","tag":"Dashboard","count":5},{"language":"default","tag":"Get Records","count":4},{"language":"default","tag":"Authentication","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#navbar img,nav img[alt],[class*=\"navbar\"] img,[class*=\"logo\"] img{max-height:42px!important;height:42px!important;width:auto!important;object-fit:contain}footer a[href*=\"mintlify\"],footer *:has(>a[href*=\"mintlify\"]){display:none!important}#navbar a[href*=\"app.medwrite.ai/dashboard\"],nav a[href*=\"app.medwrite.ai/dashboard\"]{display:none!important}.store-buttons{display:flex;justify-content:center;gap:0.9rem;flex-wrap:wrap;margin-top:1.25rem;margin-bottom:1.5rem}.store-button{display:inline-flex;align-items:center;justify-content:center;gap:0.4rem;min-width:200px;height:60px;padding:0.35rem 0.65rem;box-sizing:border-box;border-radius:0.9rem;background:linear-gradient(180deg, #171717 0%, #000000 100%);border:1px solid #2f2f2f;box-shadow:0 4px 12px rgba(0, 0, 0, 0.25);color:#ffffff;text-decoration:none}.store-button-icon{width:32px;height:32px;object-fit:contain;flex-shrink:0}.store-button-text{display:flex;flex-direction:column;align-items:start;text-align:center;line-height:1;margin:0}.store-button-kicker{font-size:0.65rem;letter-spacing:0.03em;font-weight:300}.store-button-title{font-size:1.2rem;font-weight:700}.download-app-frame-image{border-radius:0.5rem;max-width:100%}"}],"page":{"pagePath":"essentials/add-pdf-template","slug":"/essentials/add-pdf-template","pageMetadata":{"title":"Add PDF Template","description":"Add a PDF template for letter or document output","icon":"file-pdf","href":"/essentials/add-pdf-template"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Add a PDF template for letter or document output\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={p:`p`,strong:`strong`,..._provideComponents(),...props.components},{Card,Columns,Frame,Heading,OptimizedImage,Step,Steps}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!Columns)_missingMdxReference(`Columns`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Add a PDF template from `,_jsx(_components.strong,{children:`Template Management`}),`. After you choose organisation, template type, and optional clinic, you design the HTML layout and select `,_jsx(_components.strong,{children:`variables`}),` so the right `,_jsx(_components.strong,{children:`patient and letter details`}),` are inserted `,_jsx(_components.strong,{children:`dynamically`}),` into each exported PDF.`]}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Add New Template button`,children:[_jsxs(_components.p,{children:[`In the templates or documents area, click `,_jsx(_components.strong,{children:`Add New Template`}),` to start adding a PDF template.`]}),_jsxs(Frame,{caption:`Add New Template button.`,children:[_jsx(OptimizedImage,{alt:`Add New Template button`,style:{borderRadius:`0.5rem`,maxWidth:`100%`},lightAlt:`Add New Template button`,darkAlt:`Add New Template button`,src:`https://mintcdn.com/medwriteai/5wp1zTLvuLiTjDfk/images/Screenshot_4-5-2026_151935_dev.medwrite.ai-1.jpeg?fit=max\u0026auto=format\u0026n=5wp1zTLvuLiTjDfk\u0026q=85\u0026s=08c4ff0c7188f22e1e430a77162b96b0`,className:`dark:mint-hidden`,\"data-og-width\":`2491`,width:`2491`,\"data-og-height\":`1060`,height:`1060`,\"data-path\":`images/Screenshot_4-5-2026_151935_dev.medwrite.ai-1.jpeg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/medwriteai/5wp1zTLvuLiTjDfk/images/Screenshot_4-5-2026_151935_dev.medwrite.ai-1.jpeg?w=280\u0026fit=max\u0026auto=format\u0026n=5wp1zTLvuLiTjDfk\u0026q=85\u0026s=9edf4353d1fed9a30741123e91e8ac30 280w, https://mintcdn.com/medwriteai/5wp1zTLvuLiTjDfk/images/Screenshot_4-5-2026_151935_dev.medwrite.ai-1.jpeg?w=560\u0026fit=max\u0026auto=format\u0026n=5wp1zTLvuLiTjDfk\u0026q=85\u0026s=f8ec686c303d55afae1a47a6304578d7 560w, https://mintcdn.com/medwriteai/5wp1zTLvuLiTjDfk/images/Screenshot_4-5-2026_151935_dev.medwrite.ai-1.jpeg?w=840\u0026fit=max\u0026auto=format\u0026n=5wp1zTLvuLiTjDfk\u0026q=85\u0026s=8590418f7604b307f174513e6ddbe8ff 840w, https://mintcdn.com/medwriteai/5wp1zTLvuLiTjDfk/images/Screenshot_4-5-2026_151935_dev.medwrite.ai-1.jpeg?w=1100\u0026fit=max\u0026auto=format\u0026n=5wp1zTLvuLiTjDfk\u0026q=85\u0026s=5d64efb041a59ee2a7ddf5b27b0c88c1 1100w, https://mintcdn.com/medwriteai/5wp1zTLvuLiTjDfk/images/Screenshot_4-5-2026_151935_dev.medwrite.ai-1.jpeg?w=1650\u0026fit=max\u0026auto=format\u0026n=5wp1zTLvuLiTjDfk\u0026q=85\u0026s=32a162ea8e48611e062fbfc17a2e1898 1650w, https://mintcdn.com/medwriteai/5wp1zTLvuLiTjDfk/images/Screenshot_4-5-2026_151935_dev.medwrite.ai-1.jpeg?w=2500\u0026fit=max\u0026auto=format\u0026n=5wp1zTLvuLiTjDfk\u0026q=85\u0026s=1f00ff393b9d67db8d40c4595df8f510 2500w`}),_jsx(OptimizedImage,{alt:`Add New Template button`,style:{borderRadius:`0.5rem`,maxWidth:`100%`},lightAlt:`Add New Template button`,darkAlt:`Add New Template button`,src:`https://mintcdn.com/medwriteai/5wp1zTLvuLiTjDfk/images/Screenshot_4-5-2026_151935_dev.medwrite.ai-1-1.jpeg?fit=max\u0026auto=format\u0026n=5wp1zTLvuLiTjDfk\u0026q=85\u0026s=5936ec43fbae9755a7d4ef94cf87b736`,className:`mint-hidden dark:mint-block`,\"data-og-width\":`2491`,width:`2491`,\"data-og-height\":`1060`,height:`1060`,\"data-path\":`images/Screenshot_4-5-2026_151935_dev.medwrite.ai-1-1.jpeg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/medwriteai/5wp1zTLvuLiTjDfk/images/Screenshot_4-5-2026_151935_dev.medwrite.ai-1-1.jpeg?w=280\u0026fit=max\u0026auto=format\u0026n=5wp1zTLvuLiTjDfk\u0026q=85\u0026s=a0c07de701ad9dea05161d90353cf47d 280w, https://mintcdn.com/medwriteai/5wp1zTLvuLiTjDfk/images/Screenshot_4-5-2026_151935_dev.medwrite.ai-1-1.jpeg?w=560\u0026fit=max\u0026auto=format\u0026n=5wp1zTLvuLiTjDfk\u0026q=85\u0026s=1cbd0ffba5ed7b903197dd2dd7eabad7 560w, https://mintcdn.com/medwriteai/5wp1zTLvuLiTjDfk/images/Screenshot_4-5-2026_151935_dev.medwrite.ai-1-1.jpeg?w=840\u0026fit=max\u0026auto=format\u0026n=5wp1zTLvuLiTjDfk\u0026q=85\u0026s=38f1c528068946e76aee73228b6ecb1e 840w, https://mintcdn.com/medwriteai/5wp1zTLvuLiTjDfk/images/Screenshot_4-5-2026_151935_dev.medwrite.ai-1-1.jpeg?w=1100\u0026fit=max\u0026auto=format\u0026n=5wp1zTLvuLiTjDfk\u0026q=85\u0026s=3bee92bd598feadd6ed5a66032345ef8 1100w, https://mintcdn.com/medwriteai/5wp1zTLvuLiTjDfk/images/Screenshot_4-5-2026_151935_dev.medwrite.ai-1-1.jpeg?w=1650\u0026fit=max\u0026auto=format\u0026n=5wp1zTLvuLiTjDfk\u0026q=85\u0026s=c65a5b24d27ce3732ffdefc68014f3ef 1650w, https://mintcdn.com/medwriteai/5wp1zTLvuLiTjDfk/images/Screenshot_4-5-2026_151935_dev.medwrite.ai-1-1.jpeg?w=2500\u0026fit=max\u0026auto=format\u0026n=5wp1zTLvuLiTjDfk\u0026q=85\u0026s=691f371a1cf0f5456a8f6b6362a109d5 2500w`})]})]}),_jsxs(Step,{title:`Select Organisation and Template Type`,children:[_jsxs(_components.p,{children:[`Under `,_jsx(_components.strong,{children:`Clinic (optional)`}),`, choose `,_jsx(_components.strong,{children:`Organisation template`}),` or a specific clinic.`]}),_jsxs(Frame,{caption:`Popup: select Organisation and Template Type.`,children:[_jsx(OptimizedImage,{src:`https://mintcdn.com/medwriteai/5wp1zTLvuLiTjDfk/images/Screenshot_4-5-2026_152136_dev.medwrite.ai-(1).jpeg?fit=max\u0026auto=format\u0026n=5wp1zTLvuLiTjDfk\u0026q=85\u0026s=859af6d32fcbdff7a26459cbea123872`,alt:`Select Organisation and Template Type in popup`,style:{borderRadius:`0.5rem`,maxWidth:`100%`},lightAlt:`Select Organisation and Template Type in popup`,darkAlt:`Select Organisation and Template Type in popup`,className:`dark:mint-hidden`,\"data-og-width\":`2541`,width:`2541`,\"data-og-height\":`835`,height:`835`,\"data-path\":`images/Screenshot_4-5-2026_152136_dev.medwrite.ai-(1).jpeg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/medwriteai/5wp1zTLvuLiTjDfk/images/Screenshot_4-5-2026_152136_dev.medwrite.ai-(1).jpeg?w=280\u0026fit=max\u0026auto=format\u0026n=5wp1zTLvuLiTjDfk\u0026q=85\u0026s=8222c8d85c55ee7392999fb8c2294286 280w, https://mintcdn.com/medwriteai/5wp1zTLvuLiTjDfk/images/Screenshot_4-5-2026_152136_dev.medwrite.ai-(1).jpeg?w=560\u0026fit=max\u0026auto=format\u0026n=5wp1zTLvuLiTjDfk\u0026q=85\u0026s=ae3d6499e354f9e010d03b585c2c4991 560w, https://mintcdn.com/medwriteai/5wp1zTLvuLiTjDfk/images/Screenshot_4-5-2026_152136_dev.medwrite.ai-(1).jpeg?w=840\u0026fit=max\u0026auto=format\u0026n=5wp1zTLvuLiTjDfk\u0026q=85\u0026s=d623f6522c40784437748c6e955fd0c5 840w, https://mintcdn.com/medwriteai/5wp1zTLvuLiTjDfk/images/Screenshot_4-5-2026_152136_dev.medwrite.ai-(1).jpeg?w=1100\u0026fit=max\u0026auto=format\u0026n=5wp1zTLvuLiTjDfk\u0026q=85\u0026s=ecd11b81a31fd062d40d0e915f7eb208 1100w, https://mintcdn.com/medwriteai/5wp1zTLvuLiTjDfk/images/Screenshot_4-5-2026_152136_dev.medwrite.ai-(1).jpeg?w=1650\u0026fit=max\u0026auto=format\u0026n=5wp1zTLvuLiTjDfk\u0026q=85\u0026s=d64ef307abd492846395e9adffffb0cc 1650w, https://mintcdn.com/medwriteai/5wp1zTLvuLiTjDfk/images/Screenshot_4-5-2026_152136_dev.medwrite.ai-(1).jpeg?w=2500\u0026fit=max\u0026auto=format\u0026n=5wp1zTLvuLiTjDfk\u0026q=85\u0026s=cc5e241552b83d71e488d3f360e675ae 2500w`}),_jsx(OptimizedImage,{src:`https://mintcdn.com/medwriteai/5wp1zTLvuLiTjDfk/images/Screenshot_4-5-2026_152136_dev.medwrite.ai-(1)-1.jpeg?fit=max\u0026auto=format\u0026n=5wp1zTLvuLiTjDfk\u0026q=85\u0026s=f422b0249e02dd7e84bb8fcd454bfa1d`,alt:`Select Organisation and Template Type in popup`,style:{borderRadius:`0.5rem`,maxWidth:`100%`},lightAlt:`Select Organisation and Template Type in popup`,darkAlt:`Select Organisation and Template Type in popup`,className:`mint-hidden dark:mint-block`,\"data-og-width\":`2541`,width:`2541`,\"data-og-height\":`835`,height:`835`,\"data-path\":`images/Screenshot_4-5-2026_152136_dev.medwrite.ai-(1)-1.jpeg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/medwriteai/5wp1zTLvuLiTjDfk/images/Screenshot_4-5-2026_152136_dev.medwrite.ai-(1)-1.jpeg?w=280\u0026fit=max\u0026auto=format\u0026n=5wp1zTLvuLiTjDfk\u0026q=85\u0026s=f00fc43c2b8a3eea972e450bc67888c7 280w, https://mintcdn.com/medwriteai/5wp1zTLvuLiTjDfk/images/Screenshot_4-5-2026_152136_dev.medwrite.ai-(1)-1.jpeg?w=560\u0026fit=max\u0026auto=format\u0026n=5wp1zTLvuLiTjDfk\u0026q=85\u0026s=514dac675ae3c34b5833ab63da6f7ed9 560w, https://mintcdn.com/medwriteai/5wp1zTLvuLiTjDfk/images/Screenshot_4-5-2026_152136_dev.medwrite.ai-(1)-1.jpeg?w=840\u0026fit=max\u0026auto=format\u0026n=5wp1zTLvuLiTjDfk\u0026q=85\u0026s=7c2e9b5d51c7f95941c3a5a5706916d7 840w, https://mintcdn.com/medwriteai/5wp1zTLvuLiTjDfk/images/Screenshot_4-5-2026_152136_dev.medwrite.ai-(1)-1.jpeg?w=1100\u0026fit=max\u0026auto=format\u0026n=5wp1zTLvuLiTjDfk\u0026q=85\u0026s=7e78e0f4d8f8568fa34027f3181fd690 1100w, https://mintcdn.com/medwriteai/5wp1zTLvuLiTjDfk/images/Screenshot_4-5-2026_152136_dev.medwrite.ai-(1)-1.jpeg?w=1650\u0026fit=max\u0026auto=format\u0026n=5wp1zTLvuLiTjDfk\u0026q=85\u0026s=dd2953b0c67b5f6383ea66ec98c122fa 1650w, https://mintcdn.com/medwriteai/5wp1zTLvuLiTjDfk/images/Screenshot_4-5-2026_152136_dev.medwrite.ai-(1)-1.jpeg?w=2500\u0026fit=max\u0026auto=format\u0026n=5wp1zTLvuLiTjDfk\u0026q=85\u0026s=35caa6c334a7945a174ba0f984ad15cf 2500w`})]})]}),_jsxs(Step,{title:`Edit the PDF design in the HTML editor`,children:[_jsxs(_components.p,{children:[`After you select organisation, template type, and optional clinic, the `,_jsx(_components.strong,{children:`HTML Content Editor`}),` opens. Use the HTML to control `,_jsx(_components.strong,{children:`layout and styling`}),` (headings, tables, branding). Add `,_jsx(_components.strong,{children:`placeholders`}),` in the markup for any `,_jsx(_components.strong,{children:`dynamic`}),` details you want in the final PDF (patient name, dates, letter text, and other fields). Open `,_jsx(_components.strong,{children:`Variables`}),`, tick the `,_jsx(_components.strong,{children:`dynamic fields`}),` you want MedWrite to merge for this template, and keep them aligned with your HTML. Use `,_jsx(_components.strong,{children:`Run`}),` to preview (you can add sample `,_jsx(_components.strong,{children:`context data`}),` for testing). When the design is correct, `,_jsx(_components.strong,{children:`Publish Template`}),` to save it for live letters.`]}),_jsx(Frame,{caption:`HTML editor for PDF template design.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/medwriteai/R5Bs1ncwatpjoUpI/images/addPDF-template/templateHtmlEditor.png?fit=max\u0026auto=format\u0026n=R5Bs1ncwatpjoUpI\u0026q=85\u0026s=76811662535bf75c338be4f2e16b0b7c`,alt:`HTML editor for PDF template design`,style:{borderRadius:`0.5rem`,maxWidth:`100%`},\"data-og-width\":`2517`,width:`2517`,\"data-og-height\":`1139`,height:`1139`,\"data-path\":`images/addPDF-template/templateHtmlEditor.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/medwriteai/R5Bs1ncwatpjoUpI/images/addPDF-template/templateHtmlEditor.png?w=280\u0026fit=max\u0026auto=format\u0026n=R5Bs1ncwatpjoUpI\u0026q=85\u0026s=d9ff8ac64bf5186d39f2dfc64c710390 280w, https://mintcdn.com/medwriteai/R5Bs1ncwatpjoUpI/images/addPDF-template/templateHtmlEditor.png?w=560\u0026fit=max\u0026auto=format\u0026n=R5Bs1ncwatpjoUpI\u0026q=85\u0026s=6bf320d519e46d00cfbbc92591096a8b 560w, https://mintcdn.com/medwriteai/R5Bs1ncwatpjoUpI/images/addPDF-template/templateHtmlEditor.png?w=840\u0026fit=max\u0026auto=format\u0026n=R5Bs1ncwatpjoUpI\u0026q=85\u0026s=688b2b43002afb4accf90746044783c2 840w, https://mintcdn.com/medwriteai/R5Bs1ncwatpjoUpI/images/addPDF-template/templateHtmlEditor.png?w=1100\u0026fit=max\u0026auto=format\u0026n=R5Bs1ncwatpjoUpI\u0026q=85\u0026s=d4c0242ff2bb5bb22e10aaacae689d9c 1100w, https://mintcdn.com/medwriteai/R5Bs1ncwatpjoUpI/images/addPDF-template/templateHtmlEditor.png?w=1650\u0026fit=max\u0026auto=format\u0026n=R5Bs1ncwatpjoUpI\u0026q=85\u0026s=4e4f85a0cd98f82d65381160f25c7c10 1650w, https://mintcdn.com/medwriteai/R5Bs1ncwatpjoUpI/images/addPDF-template/templateHtmlEditor.png?w=2500\u0026fit=max\u0026auto=format\u0026n=R5Bs1ncwatpjoUpI\u0026q=85\u0026s=e0775a409fc24f85a96333f7e285d924 2500w`})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`next-steps`,children:`Next steps`}),`\n`,_jsxs(Columns,{cols:2,children:[_jsx(Card,{title:`Manage Templates`,icon:`table-layout`,href:`/essentials/manage-templates`,children:_jsx(_components.p,{children:`Create and manage letter and document templates.`})}),_jsx(Card,{title:`Add Word Template`,icon:`file-word`,href:`/essentials/add-word-template`,children:_jsx(_components.p,{children:`Add a Word template for letter output.`})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Add PDF Template","description":"Add a PDF template for letter or document output","icon":"file-pdf","href":"/essentials/add-pdf-template"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Next steps","slug":"next-steps","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"dynamicCss":".mint-hidden {\n display: none\n}\n.dark\\:mint-block:is(.dark *) {\n display: block\n}\n.dark\\:mint-hidden:is(.dark *) {\n display: none\n}","subdomain":"medwriteai","siteName":"MedWrite.ai","title":"Add PDF Template - MedWrite.ai","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-06T09:11:24.633Z","originalFileLocation":"essentials/add-pdf-template.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Add a PDF template for letter or document output\">\u003cmeta data-mint-head name=\"application-name\" content=\"MedWrite.ai\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/medwriteai/6jKHXgiRYAL6FtSI/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/medwriteai/6jKHXgiRYAL6FtSI/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/medwriteai/6jKHXgiRYAL6FtSI/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/medwriteai/6jKHXgiRYAL6FtSI/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/medwriteai/6jKHXgiRYAL6FtSI/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/medwriteai/6jKHXgiRYAL6FtSI/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/medwriteai/6jKHXgiRYAL6FtSI/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/medwriteai/6jKHXgiRYAL6FtSI/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/medwriteai/6jKHXgiRYAL6FtSI/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Add PDF Template - MedWrite.ai\">\u003cmeta data-mint-head property=\"og:description\" content=\"Add a PDF template for letter or document output\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"MedWrite.ai\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.medwrite.ai/essentials/add-pdf-template\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://medwriteai.mintlify.site/_mintlify/api/og/v2?division=Documents\u0026amp;title=Add+PDF+Template\u0026amp;description=Add+a+PDF+template+for+letter+or+document+output\u0026amp;theme=659bb1f3335eb9f2e043064d\u0026amp;signature=7615205e7446993cbc05cf2675fce9e17401a67a35c4fe0a2444f2a7976ad9b2\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Add PDF Template - MedWrite.ai\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Add a PDF template for letter or document output\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://medwriteai.mintlify.site/_mintlify/api/og/v2?division=Documents\u0026amp;title=Add+PDF+Template\u0026amp;description=Add+a+PDF+template+for+letter+or+document+output\u0026amp;theme=659bb1f3335eb9f2e043064d\u0026amp;signature=7615205e7446993cbc05cf2675fce9e17401a67a35c4fe0a2444f2a7976ad9b2\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/medwriteai/6jKHXgiRYAL6FtSI/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"MedWrite.ai\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#169c97\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.medwrite.ai/essentials/add-pdf-template\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/essentials/add-pdf-template.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.medwrite.ai/#organization\",\"name\":\"MedWrite.ai\",\"url\":\"https://docs.medwrite.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/medwriteai/3s0IbxTNiFnzwJpB/images/logo1.png?fit=max\u0026auto=format\u0026n=3s0IbxTNiFnzwJpB\u0026q=85\u0026s=6fab4035583ab6917e6d9bb804d3941b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.medwrite.ai#website\",\"name\":\"MedWrite.ai\",\"url\":\"https://docs.medwrite.ai\",\"publisher\":{\"@id\":\"https://docs.medwrite.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.medwrite.ai/essentials/add-pdf-template#webpage\",\"url\":\"https://docs.medwrite.ai/essentials/add-pdf-template\",\"name\":\"Add PDF Template\",\"description\":\"Add a PDF template for letter or document output\",\"dateModified\":\"2026-05-06T09:11:24.633Z\",\"isPartOf\":{\"@id\":\"https://docs.medwrite.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.medwrite.ai/essentials/add-pdf-template#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.medwrite.ai/essentials/add-pdf-template#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Documents\",\"item\":\"https://docs.medwrite.ai/essentials/manage-templates\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Add PDF Template\",\"item\":\"https://docs.medwrite.ai/essentials/add-pdf-template\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.medwrite.ai/essentials/add-pdf-template#article\",\"headline\":\"Add PDF Template\",\"name\":\"Add PDF Template\",\"description\":\"Add a PDF template for letter or document output\",\"url\":\"https://docs.medwrite.ai/essentials/add-pdf-template\",\"mainEntityOfPage\":{\"@id\":\"https://docs.medwrite.ai/essentials/add-pdf-template#webpage\"},\"dateModified\":\"2026-05-06T09:11:24.633Z\",\"publisher\":{\"@id\":\"https://docs.medwrite.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.medwrite.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"MedWrite.ai\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"MedWrite.ai","nav":{"global":{"anchors":[{"anchor":"Blog","icon":"newspaper","href":"https://medwrite.ai/news"}]},"tabs":[{"tab":"Guides","groups":[{"group":"Getting Started","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Register","icon":"user-plus","href":"/register"},{"title":"Login","icon":"right-to-bracket","href":"/login"}]},{"group":"Output \u0026 Letters","pages":[{"title":"Create Record","icon":"file-plus","href":"/essentials/create-record"},{"title":"Review Record","icon":"file-check","href":"/essentials/review-record"},{"title":"Clinical Approval","icon":"badge-check","href":"/essentials/clinical-approval"},{"title":"Branching","icon":"code-branch","href":"/untitled-page"},{"title":"Mark as Complete","icon":"check","href":"/essentials/mark-as-complete"},{"title":"Send Email","icon":"mailbox","href":"/essentials/send-email"},{"title":"Dashboard Filters","icon":"bars-filter","href":"/clinic-consultant-filters"}]},{"group":"Organization Management","pages":[{"title":"Create Group","icon":"users-medical","href":"/essentials/create-group"},{"title":"Create Clinic","icon":"building-circle-arrow-right","href":"/essentials/create-clinic"},{"title":"Workflow Status Tabs","icon":"layer-group","href":"/workflow-status-tabs"},{"title":"Manage Patients","icon":"clipboard-list-check","href":"/essentials/manage-patients"},{"title":"Contact Directory","icon":"address-book","href":"/essentials/address-lookup"},{"title":"Assign User Roles","icon":"clipboard-user","href":"/essentials/assign-user-role"}]},{"group":"Documents","pages":[{"title":"Manage Templates","description":"Create and manage letter and document templates","icon":"table-layout","href":"/essentials/manage-templates"},{"title":"Add PDF Template","icon":"file-pdf","href":"/essentials/add-pdf-template"},{"title":"Add Word Template","description":"Add a Word template for letter or document output","icon":"file-word","href":"/essentials/add-word-template"}]},{"group":"AI Assistants","pages":[{"title":"Create Assistant","icon":"robot","hidden":true,"href":"/essentials/create-assistant"},{"icon":"user-robot","title":"AI Workflow Setup","href":"/essentials/AI-workflow-setup"},{"title":"Manage Assistants","icon":"user-robot-xmarks","href":"/essentials/manage-assistants"},{"title":"Update Assistant","icon":"user-robot","href":"/essentials/update-assistant"},{"title":"Assistant Library","icon":"user-robot","href":"/essentials/assistant-library"},{"title":"AI Builder","icon":"wand-magic-sparkles","href":"/ai-builder"}]},{"group":"Dashboard","pages":[{"title":"User Profile","icon":"circle-user","href":"/user-profile-account-settings-profile-output-input-preference-account"},{"title":"New Records","icon":"list-dropdown","href":"/new-records"},{"title":"Search Patient","icon":"list-dropdown","href":"/search-patient"},{"title":"Date Filter","icon":"calendar","href":"/date-filter"},{"title":"Patient List Table","icon":"table-list","href":"/patient-list-table"}]},{"group":"Mobile Application","pages":[{"title":"Download the App","icon":"download","href":"/essentials/download-app"},{"title":"Activate Your Account","icon":"user-check","href":"/essentials/activate-account"},{"title":"Record Consultation","icon":"record-vinyl","href":"/essentials/record-consultation"},{"title":"Approve Records","icon":"badge-check","href":"/essentials/approve-records"},{"title":"Review Records","icon":"clipboard-list-check","href":"/essentials/review-records"},{"title":"Search Records","icon":"magnifying-glass","href":"/essentials/search-records"},{"title":"Review Later","icon":"calendar-clock","href":"/essentials/review-later"}]},{"group":"Updates","pages":[{"title":"Product Roadmap","icon":"sitemap","hidden":true,"href":"/essentials/product-roadmap"},{"title":"#Issue 6 - June Changelog","href":"/essentials/june-2026"},{"title":"#Issue 5 - May Changelog","href":"/may-2026"},{"title":"#Issue 4 - Apr Changelog","href":"/essentials/april-2026"},{"title":"#Issue 3 - Mar Changelog","href":"/essentials/march-2026"},{"title":"#Issue 2 - Feb Changelog","href":"/essentials/february-2026"},{"title":"#Issue 1 - Jan Changelog","href":"/essentials/january-2026"}]},{"group":"Examples","hidden":true,"pages":[{"title":"Markdown syntax","icon":"text-size","href":"/essentials/markdown"},{"title":"Code blocks","icon":"code","href":"/essentials/code"},{"title":"Images and embeds","icon":"image","href":"/essentials/images"},{"title":"Reusable snippets","icon":"recycle","href":"/essentials/reusable-snippets"}]}]},{"tab":"API reference","pages":[{"title":"API reference","href":"/api-reference/introduction"}]}]},"basePath":"","title":"Add PDF Template - MedWrite.ai","buildId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","deploymentId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-NdetNziF.js","DynamicMarkdown-CD8713Yy.js","zoom-image-lightbox-DMoL6lHz.js","lightbox-handle-r17bVUz3.js"]}