Skip to content

kalyanraju/dynamic-pdf-certificate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dynamic PDF Certificate

A Node.js library to dynamically fill PDF forms.


npm version npm version

📖 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:

npm install dynamic-pdf-certificate

Import the library and use it to fill a PDF form:

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published