An open API service indexing awesome lists of open source software.

https://github.com/mdjamilkashemporosh/reactpdf

react-pdf generates PDFs from HTML documents. It uses html2canvas and jsPDF for capturing the DOM element and saving it as a PDF.
https://github.com/mdjamilkashemporosh/reactpdf

dom html2canvas jspdf pdf-generation react

Last synced: 2 months ago
JSON representation

react-pdf generates PDFs from HTML documents. It uses html2canvas and jsPDF for capturing the DOM element and saving it as a PDF.

Awesome Lists containing this project

README

          

# reactPDF


WowCanvas Logo

This application generates PDFs from HTML documents. It uses html2canvas and jsPDF for capturing the DOM element and saving it as a PDF.

## Demo

A live version of the website can be accessed at [reactpdf-mjkp.netlify.app](reactpdf-mjkp.netlify.app).

![image](https://github.com/Draftify/reactPDF/assets/50365984/218a07e5-be1c-431d-a2a6-0e8445f11715)
![image](https://github.com/Draftify/reactPDF/assets/50365984/c9161776-b96a-47e2-a589-e6268f6a2d28)

## Features

- Generate PDFs from HTML documents within your React application
- Support various HTML elements
- Customizable page size and margins

## Getting Started

If you would like to contribute to the project or run it locally, follow these steps:

Clone this repository to your local machine:

```
git clone https://github.com/mdjamilkashemporosh/reactPDF.git
```

Navigate to the project directory:
```
cd reactPDF
```

Install necessary packages:
```
npm install
```
Start the app:
```
npm run start
```

## Contributing

If you would like to contribute to this web application, please open an issue on GitHub to discuss your ideas or proposed changes. Pull requests are also welcome.

## License

This drawing web application is available under the MIT License. You are free to use, modify, and distribute this project as you see fit.