This is a converter pdf to jpeg, written in and for educational and demonstrational purposes.
A backend service for converting pdf documents into jpeg images. It handles file upload, validation, and processing. The results are instantly displayed in an in-browser slider for preview, and are also provided as a downloadable archive containing all images and a portable slider for offline use.
Based on tech stack:
- HTML,
- PHP,
- Laravel,
- Breeze,
- Sanctum,
- ImageMagick,
- MySQL,
- JavaScript,
- Axios,
- CSS,
- TailwindCss,
- Docker,
- Sail,
- Swagger,
- Postman,
- Scribe.
- Clone the repository:
git clone [repository-url]- Change directory to project:
cd /path/to/converter-pdf-to-jpeg/- Install php dependencies (temporary ignore ext-imagick if not installed):
composer install --ignore-platform-req=ext-imagick- Create .env file:
cp .env.example .env- Generate application key:
php artisan key:generate-
Run Docker Desktop (with wsl - for Windows only)
-
Run wsl (for Windows only):
wsl- Run Sail:
./vendor/bin/sail up- Add new tab in terminal and connect to container:
docker exec -it converter-pdf-to-jpeg-laravel.test-1 bash- Install php dependencies:
composer install- Run migrations:
php artisan migrate- Install node dependencies:
npm install- Build project:
npm run build-
In browser go to welcome page http://localhost/
-
Register new user on http://localhost/register (enter your name, email, password)
-
Or you can seed database with test user (name: Test User, email: [email protected], password: password):
php artisan migrate:fresh --seed- Login on http://localhost/login
That's it! Now you can upload pdf documents, convert to jpeg and download zip archives with sliders. For example, you can use pdf documents in tests/Dummies/Documents directory for testing. Thank you!
The 'Converter pdf to jpeg' is open-sourced software licensed under the MIT license.