New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

ts-pdf-maker

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-pdf-maker

A PDF generation tool in TypeScript.

latest
Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
7
600%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

pdf

FAQs

Package last updated on 08 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts