A modern PDF to JPG & JPG to PDF converter built using React Vite. Featuring a sleek glassmorphism UI, smooth scrolling, and animated transitions for a seamless experience. π
β
Convert PDF to JPG and JPG to PDF effortlessly
β
Glassmorphism UI for a modern look β¨
β
Smooth scrolling navigation π
β
Framer Motion animations for an engaging experience π
β
Fast processing with optimized performance β‘
β
Fully responsive design π±
- Frontend: React, Vite, CSS
- Libraries Used:
framer-motion
(for animations)react-scroll
(for smooth scrolling navigation)pdfjs-dist
(for handling PDF to image conversion)jspdf
(for JPG to PDF conversion)
1οΈβ£ Clone the Repository
git clone https://github.com/shivamsaurabh25/PDF---JPG-Convertor.git
cd PDF---JPG-Convertor
2οΈβ£ Install Dependencies
npm install
3οΈβ£ Start the Development Server
npm run dev
4οΈβ£ Open in Browser
Go to http://localhost:5173/
πpdf-jpg-converter/
βββ πsrc/
β βββ πcomponents/
β β βββ Navbar.jsx # Navigation bar
β β βββ Home.jsx # Landing page with buttons
β β βββ PdfToJpg.jsx # PDF to JPG conversion component
β β βββ JpgToPdf.jsx # JPG to PDF conversion component
β βββ App.jsx # Main application file
β βββ main.jsx # Renders App.jsx
β βββ index.css # Global css
βββ index.html
βββ πpublic/ # Static assets
βββ package.json # Project dependencies
βββ vite.config.js # Vite configuration
βββ README.md # Project documentation
- Glassmorphism Design: A stylish and modern interface
- Framer Motion Animations: Smooth entrance/exit transitions
- Responsive UI: Works on mobile, tablet, and desktop
Library | Purpose |
---|---|
react |
Core framework |
vite |
Fast development server |
framer-motion |
Smooth animations |
react-scroll |
Smooth scrolling effect |
pdfjs-dist |
PDF to JPG conversion |
jspdf |
JPG to PDF conversion |
To install all dependencies, simply run:
npm install
1οΈβ£ Convert PDF to JPG:
- Upload a PDF file
- Convert and download JPG images
2οΈβ£ Convert JPG to PDF:
- Upload JPG images
- Convert and download as a PDF
3οΈβ£ Smooth Navigation:
- Click "PDF to JPG" or "JPG to PDF" to smoothly scroll to the respective section
πΉ Support for multiple image formats (PNG, TIFF, etc.)
πΉ Drag-and-drop file upload π
πΉ Batch processing for multiple PDFs/JPGs π
π‘ Want to contribute? Follow these steps:
- Fork the repository
- Create a feature branch (
git checkout -b feature-name
) - Commit changes (
git commit -m "Added new feature"
) - Push to GitHub (
git push origin feature-name
) - Submit a Pull Request π