# 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://1377276962-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyZ3Mr7sicTlPeSsH6Scq%2Fuploads%2F2BrKJ2RxseTPuDzsPNhJ%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://1377276962-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyZ3Mr7sicTlPeSsH6Scq%2Fuploads%2FiTtuKvYugrS4EBy7VRBe%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://1377276962-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyZ3Mr7sicTlPeSsH6Scq%2Fuploads%2FRaFT1XOGMP7M11qtE3JH%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://1377276962-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyZ3Mr7sicTlPeSsH6Scq%2Fuploads%2FbTa1q5z1seDRWTBQIAB4%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/)*.*
