This is a simple PDF generation tool written in TypeScript. It allows you to create PDF documents programmatically with ease.
- Create PDF documents with text content.
- Add multiple pages to your PDF.
- Customize text styles and positioning.
To install the PDF Generator package, run:
npm install ts-pdf-maker
import PDFGenerator from "ts-pdf-maker";
const pdfGenerator = new PDFGenerator();
pdfGenerator.addText("Hello, world!");
pdfGenerator.save();
You can configure the PDF document by passing options to the PDFGenerator constructor:
import PDFGenerator from "ts-pdf-maker";
const options = {
filename: "my-document.pdf",
};
const pdfGenerator = new PDFGenerator(options);
Contributions are welcome! If you have any ideas for improvements or new features, feel free to submit a pull request.
This project is licensed under the MIT License.