Skip to content

A pdf generator where you can edit your text with inbult editor and then generate a pdf to print this out.

Notifications You must be signed in to change notification settings

IMRANDIL/Pdf_gen_React_JS

Repository files navigation

Text Editor with PDF Generation

This project is a simple web application that allows users to compose text using a rich text editor and generate PDF documents from the text content.

Screenshot 2024-04-28 094230

Features

  • Rich Text Editing: Utilizes the Draft.js library to provide a rich text editing experience with various formatting options.
  • PDF Generation: Converts the text content into a PDF document that users can download.
  • Toast Notifications: Provides informative toast notifications to alert users about important actions or errors.

Technologies Used

  • React.js: A JavaScript library for building user interfaces.
  • Draft.js: A rich text editor framework for React.
  • jspdf: A JavaScript library for generating PDF documents in the browser.
  • react-toastify: A library for adding toast notifications to React applications.

Getting Started

To run the project locally, follow these steps:

  1. Clone this repository to your local machine.
  2. Navigate to the project directory in your terminal.
  3. Run npm install to install the dependencies.
  4. Run npm start to start the development server.
  5. Open your browser and navigate to PDF Generator React JS Application to view the application.

Usage

  1. Upon opening the application, you'll see a rich text editor where you can compose your text.
  2. Use the formatting options in the toolbar to style your text as desired.
  3. Click the "Generate PDF" button to convert the text into a PDF document.
  4. Download the generated PDF document and save it to your device.

Contributing

Contributions are welcome! If you find any bugs or have suggestions for improvements, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.


Made with ❤️ by Ali Imran Adil

About

A pdf generator where you can edit your text with inbult editor and then generate a pdf to print this out.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published