ts-pdf-maker
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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.

Package Sidebar

Install

npm i ts-pdf-maker

Weekly Downloads

14

Version

1.0.3

License

MIT

Unpacked Size

3.27 kB

Total Files

4

Last publish

Collaborators

  • sweeeeetch