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.
- 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.
- 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.
To run the project locally, follow these steps:
- Clone this repository to your local machine.
- Navigate to the project directory in your terminal.
- Run
npm install
to install the dependencies. - Run
npm start
to start the development server. - Open your browser and navigate to PDF Generator React JS Application to view the application.
- Upon opening the application, you'll see a rich text editor where you can compose your text.
- Use the formatting options in the toolbar to style your text as desired.
- Click the "Generate PDF" button to convert the text into a PDF document.
- Download the generated PDF document and save it to your device.
Contributions are welcome! If you find any bugs or have suggestions for improvements, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️ by Ali Imran Adil