Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kalyanraju/dynamic-pdf-certificate
https://github.com/kalyanraju/dynamic-pdf-certificate
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kalyanraju/dynamic-pdf-certificate
- Owner: kalyanraju
- License: mit
- Created: 2023-08-24T02:54:47.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-24T03:53:10.000Z (over 1 year ago)
- Last Synced: 2024-12-08T01:44:14.740Z (20 days ago)
- Language: JavaScript
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Dynamic PDF Certificate
A Node.js library to dynamically fill PDF forms.
## 📖 About
The Dynamic PDF Form Filler is a Node.js library that allows you to easily fill PDF forms with dynamic data. It uses the pdf-lib package for PDF manipulation.
## 🚀 Usage
Install the library using npm:
```bash
npm install dynamic-pdf-certificate
```
Import the library and use it to fill a PDF form:```javascript
const { fillCertificate } = require('dynamic-pdf-certificate');
const templatePath = 'path/to/your/template.pdf'; //include form elements to be filled in your pdf. use adobe pdf or similar tools.
const outputPath = 'path/to/output/filled_certificate.pdf';const fieldValues = {
nameinput: 'John Doe',
dateinput: 'August 23, 2023',
courseinput: 'Advanced PDF Editing'
};fillCertificate(templatePath, outputPath, fieldValues)
.then(() => {
console.log('PDF Certificate filled & generated successfully.');
})
.catch(error => {
console.error('An error occurred:', error);
});
```
## 📄 License
This project is licensed under the MIT License.
Made with ❤️ by Kalyan Raju.