Skip to content

onedionys/onedionys-pdf-generation-utilities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to One Dionys - PDF Generation Utilities! 👋

A utility for generating PDF documents from dynamic content in web applications, such as reports or invoices. 💖

💾 Requirements

  • Web Browser - Can be used as an emulator to build applications. Example [Chrome, Firefox, Safari & Opera].
  • Internet - Because many use CDN and to make it easier to find solutions to all problems.

🎯 How To Use

Example Syntax

const { generatePDF } = require('pdf-generation-utilities');

const data = {
    // Your data to be included in the PDF
};

generatePDF(data)
    .then(pdfPath => {
        console.log('PDF generated:', pdfPath);
    })
    .catch(error => {
        console.error('Error generating PDF:', error);
    });

Explanation

  • This package exports a single function generatePDF(data) which takes an object data as input and returns a promise. The generatePDF function generates a PDF document based on the provided data and returns the path to the generated PDF file.

Return Value

  • The generatePDF function returns a promise that resolves with the path to the generated PDF file.

📆 Release Date

  • v1.0.0 : 18 March 2024
  • v1.0.1 : 18 March 2024
  • v1.0.2 : 22 March 2024
  • v5.0.0 : 31 March 2024

🧑 Author

📝 License

  • Copyright © 2024 One Dionys
  • One Dionys - PDF Generation Utilities is an open source project licensed under the MIT license

☕️ Suppport & Donation

Love One Dionys - PDF Generation Utilities? Support this project by donating or sharing with others in need.

Made with ❤️ One Dionys

About

A utility for generating PDF documents from dynamic content in web applications, such as reports or invoices.

Resources

License

Stars

Watchers

Forks

Packages

No packages published