Skip to content

shivamsaurabh25/PDF---JPG-Convertor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

PDF & JPG Converter πŸ“„πŸ”„πŸ–Ό

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. πŸš€

πŸ“Œ Features

βœ… 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 πŸ“±


πŸ›  Tech Stack

  • 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)

πŸ“¦ Installation & Setup

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/


πŸ“‚ Project Structure

πŸ“‚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

🎨 UI & Styling

  • Glassmorphism Design: A stylish and modern interface
  • Framer Motion Animations: Smooth entrance/exit transitions
  • Responsive UI: Works on mobile, tablet, and desktop

πŸ›  Dependencies

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

πŸš€ How It Works

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

πŸ’‘ Future Enhancements

πŸ”Ή Support for multiple image formats (PNG, TIFF, etc.)
πŸ”Ή Drag-and-drop file upload πŸ“‚
πŸ”Ή Batch processing for multiple PDFs/JPGs πŸš€


πŸ™Œ Contributing

πŸ’‘ Want to contribute? Follow these steps:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature-name)
  3. Commit changes (git commit -m "Added new feature")
  4. Push to GitHub (git push origin feature-name)
  5. Submit a Pull Request πŸŽ‰

About

πŸ“„ Convert PDF to JPG & JPG to PDF | Built with React Vite, smooth scrolling, animations, and a modern UI. πŸš€

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published