This project demonstrates how to use Quill.js (via a CDN) in a Vite + React app to create and export rich-text content as a PDF file using quill-to-pdf
.
🔗 Live Demo & Editable Code:
👉 Check it out on StackBlitz 👈
- Uses Quill.js from a CDN (no need to install
react-quill
). - Initializes Quill inside a React functional component.
- Converts the Quill Delta format to a PDF file.
- Uses
file-saver
to download the exported PDF.
Clone this repo and install dependencies:
git clone https://github.com/xautiik/quill-to-pdf--vite-react.git
cd quill-to-pdf--vite-react
npm install
npm run dev