ts-pdf-maker
v1.0.3
Published
A PDF generation tool in TypeScript.
Downloads
6
Readme
TS PDF Generator
This is a simple PDF generation tool written in TypeScript. It allows you to create PDF documents programmatically with ease.
Features
- Create PDF documents with text content.
- Add multiple pages to your PDF.
- Customize text styles and positioning.
Getting Started
Installation
To install the PDF Generator package, run:
npm install ts-pdf-maker
Usage
import PDFGenerator from "ts-pdf-maker";
const pdfGenerator = new PDFGenerator();
pdfGenerator.addText("Hello, world!");
pdfGenerator.save();
Configuration
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);
Contributing
Contributions are welcome! If you have any ideas for improvements or new features, feel free to submit a pull request.
License
This project is licensed under the MIT License.