ReactHTMLToPDF
Provides a client side generation of PDF (.pdf) file from HTML string.
Installation
Features
- Download HTML document as PDF file
- No server side code
- Set desired .pdf filename
- Set desired class name and id for styling
Options
A list of available properties can be found below. These must be passed to the containing ReactHTMLToPDF
component.
Property | Type | Description |
---|---|---|
id | string | ID attribute of button element. |
className | string | Class attribute of button element. |
buttonText | string | Button text. |
html | string | HTML string for conversion to PDF. |
openBlank | boolean | Class attribute of button element. |