1.3.1 • Published 6 months ago

react-pdf-gen v1.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

react-pdf-gen

A library for generating PDFs with specific layouts using React and @react-pdf/renderer.

Installation

npm install react-pdf-gen

Usage

This library provides a hook called usePdf to generate and manage PDFs. Below is an example of how to use it.

Methods

  • save(exportData: ExportData, fileName: string): Generates a PDF and saves it with the specified file name

  • openInNewTab(exportData: ExportData)`: Generates a PDF and opens it in a new browser tab

  • print(exportData: ExportData): Generates a PDF and opens it in a new browser tab, then triggers the print dialog.

1.3.1

6 months ago

1.3.0

6 months ago

1.2.9

6 months ago

1.2.8

6 months ago

1.2.7

6 months ago

1.2.6

6 months ago

1.2.5

6 months ago

1.2.4

6 months ago

1.2.3

6 months ago

1.2.2

6 months ago

1.2.1

7 months ago

1.2.0

7 months ago

1.1.9

7 months ago

1.1.6

7 months ago