zsusac / ReactHTMLToPDF

Convert HTML to PDF file and download

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ReactHTMLToPDF

Provides a client side generation of PDF (.pdf) file from HTML string.

Build Status Coverage Status

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.

Example

About

Convert HTML to PDF file and download

License:MIT License


Languages

Language:JavaScript 100.0%