1.3.1 • Published 10 months ago

react-pdf-gen v1.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 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

10 months ago

1.3.0

10 months ago

1.2.9

10 months ago

1.2.8

10 months ago

1.2.7

10 months ago

1.2.6

10 months ago

1.2.5

10 months ago

1.2.4

10 months ago

1.2.3

10 months ago

1.2.2

10 months ago

1.2.1

11 months ago

1.2.0

11 months ago

1.1.9

11 months ago

1.1.6

11 months ago