> 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/platform/configuration/configuration-management-via-etcd/pdf-template-change-for-vaccine-certificates/pdf-template-change-for-vaccine-certificates-via-etcd-cli.md).

# 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&amp;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&amp;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&amp;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&amp;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
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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
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>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
