# PDF Template Change for Vaccine Certificates via ETCD CLI

Any template-related changes can be done by updating the HTML template using ETCD CLI. Before making any change, the PDF template will look like:

<figure><img src="https://3849653046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Frmjx4OUiHEx18PH4nMzn%2Fuploads%2Fj6kXRWouQ0XWrU8AelhE%2FScreenshot%202022-09-01%20at%2012.13.18%20PM.png?alt=media&#x26;token=5ec92d1d-f554-4152-886b-9a9b085b2e72" alt=""><figcaption><p>Sample certificate</p></figcaption></figure>

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

### Steps to add **'**&#x6E;ationality' to the PDF template:

* Go to the specific path where etcd is configured.
* Open the file to add the new field that will get displayed in the template (vim vaccineCertificateTemplate.html).

<figure><img src="https://3849653046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Frmjx4OUiHEx18PH4nMzn%2Fuploads%2FF8Gez9zp6RPh2JccN2pI%2FScreenshot%202022-09-01%20at%2012.16.34%20PM.png?alt=media&#x26;token=04c44288-3f3a-4e2f-b167-5e90ba0ff1b6" alt=""><figcaption></figcaption></figure>

* To reflect the change, run the updateConfigs shell script using the command: ./updateConfigs.sh. It shows "OK OK OK...." This means that etcd has been updated with the new template successfully.

<figure><img src="https://3849653046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Frmjx4OUiHEx18PH4nMzn%2Fuploads%2Fjhqu47fUuzcY4ytkzcUF%2FScreenshot%202022-09-01%20at%2012.18.36%20PM.png?alt=media&#x26;token=db8b945b-449c-489b-a029-99a42aa9b2f4" alt=""><figcaption></figcaption></figure>

* Generate the PDF again using GET API.

<figure><img src="https://3849653046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Frmjx4OUiHEx18PH4nMzn%2Fuploads%2FEyxlsEh78pacbwYXGHaa%2FScreenshot%202022-09-01%20at%2012.20.04%20PM.png?alt=media&#x26;token=3f6647f6-cd79-49e4-b434-beaf04ad3163" alt=""><figcaption><p>Sample certificate</p></figcaption></figure>

[![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/)*.*


---

# Agent Instructions: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
