Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abhinandan-khurana/online-certificate-generator
Generate and Download PDF certificates using this Web App.
https://github.com/abhinandan-khurana/online-certificate-generator
certificate-generation pdf webapp
Last synced: about 1 month ago
JSON representation
Generate and Download PDF certificates using this Web App.
- Host: GitHub
- URL: https://github.com/abhinandan-khurana/online-certificate-generator
- Owner: Abhinandan-Khurana
- License: mit
- Created: 2022-10-27T09:42:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-30T22:27:52.000Z (about 2 years ago)
- Last Synced: 2024-11-11T23:11:43.569Z (3 months ago)
- Topics: certificate-generation, pdf, webapp
- Language: JavaScript
- Homepage: https://abhinandan-khurana.github.io/Online-Certificate-Generator/
- Size: 672 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Certificate Generator
![main image](./project-cover.png)### Certificate Sample
There is only one route in this project. On entering your name in the input box and clicking on `Generate Certificate`, the certificate with the name should be downloaded in the pdf format.
![certificate](./certificate-example.png)
Most of the work for this project is done using the library `PDFlib` and `FileSaver.js`.
Steps:
1. Fetch the certificate from file system
2. load the document using the `PDFDocument` object
3. load the font by fetching from file system
4. Embed the font resource in the pdf object
5. insert the test from the input box at the empty area where the name goes (with x,y and font-size)
6. save the file
7. create a new file object in JavaSScript and download it using the `saveAs(fileName)`You can refer to [PDF-LIB documentation](https://pdf-lib.js.org/) to find out about the methods.
## Send feedback!
I love receiving feedback! I am always looking to improve my projects. So if you have anything you'd like to mention, please visit add a pull request with comments.
### Disclaimer
I made this project in 1 day for the Codedamn HacktoberFest Challenge, which can be found on the [Codedamn's GitHub](https://github.com/codedamn/projects).