Image to PDF Converter
Supported formats: JPG, PNG, BMP, GIF, TIFF
This code creates a modern image to PDF converter with the following features:
- Drag and drop functionality
- File selection dialog
- Image preview with remove option
- Supports multiple image formats (JPG, PNG, BMP, GIF, TIFF)
- Responsive grid layout
- Modern UI design with hover effects
- Converts images to PDF with proper scaling
- Automatic PDF download
- Error handling and validation
How to use:
- Drag and drop images or click to select
- Images will appear in a grid preview
- Remove unwanted images using the × button
- Click “Convert to PDF” to generate and download the PDF
The PDF will be created with:
- Each image on a separate page
- Images scaled to fit the page while maintaining aspect ratio
- Proper image orientation
- High-quality output