> For the complete documentation index, see [llms.txt](https://divoc.digit.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://divoc.digit.org/divoc-wiki-3.0/platform/configuration/configuration-management-via-etcd/pdf-template-change-for-vaccine-certificates.md).

# PDF Template Change for Vaccine Certificates

Any template-related changes can be done by updating the HTML template in the etcd manager. Supported fields include the following:&#x20;

| Beneficiary Details     | Vaccination Details | Previous Dose Details     |
| ----------------------- | ------------------- | ------------------------- |
| name                    | vaccine             | vaxEvents\[].dateOfVax    |
| age                     | vaccinationDate     | vaxEvents\[].doseType     |
| gender                  | vaccineBatch        | vaxEvents\[].vaxName      |
| identity (masked value) | vaccineICD11Code    | vaxEvents\[].vaxType      |
| nationality             | vaccineProphylaxis  | vaxEvents\[].vaxBatch     |
| beneficiaryId           | vaccineType         | vaxEvents\[].countryOfVax |
| recipientAddress        | vaccineManufacturer |                           |
|                         | vaccineValidDays    |                           |
|                         | vaccinatedBy        |                           |
|                         | vaccinatedAt        |                           |
|                         | certificateId       |                           |
|                         | dose                |                           |
|                         | totalDoses          |                           |

### **Example: Adding a field such as ‘nationality’ to the PDF template.**

### Steps to add ‘nationality’ to the PDF templat&#x65;**:**

* Go to the Manage keys in the etcd-manager.&#x20;
* Go to the “vaccineCertificateTemplate” key and click on the Edit key to update the template. In this case, the ‘nationality’ field is being added. The value expected for the “vaccineCertificateTemplate” configuration is html and can be customised as per your needs.&#x20;
* The same will be reflected in the PDF of the vaccination certificate. Click on Save. A popup will appear as “operation successful.” Click on Close.

![](/files/tDbPaXt5zpWH2zV7pyuL)

* Call “GET VaccineCertificate API,” which will return the PDF certificate template. Verify if the new field ‘nationality’ is getting reflected.

![Sample certificate](/files/rNIUSPropCK6vuE3gjYu)

[![Creative Commons License](https://i.creativecommons.org/l/by/4.0/80x15.png)](http://creativecommons.org/licenses/by/4.0/)*All content on this page by* [*eGov Foundation*](https://egov.org.in/) *is licensed under a* [*Creative Commons Attribution 4.0 International License*](http://creativecommons.org/licenses/by/4.0/)*.*  &#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://divoc.digit.org/divoc-wiki-3.0/platform/configuration/configuration-management-via-etcd/pdf-template-change-for-vaccine-certificates.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
