A simple web application that allows you to adjust the size of a PDF file by a specified percentage. This project is built using Flask, PyPDF2, and Bootstrap.
- Python 3.x
- Flask
- PyPDF2
- Clone the repository:
git clone https://github.com/your-username/pdf-size-modifier.git- Change to the project directory:
cd pdf-size-modifier- Create a virtual environment (optional but recommended):
python3 -m venv venv- Activate the virtual environment:
source venv/bin/activate (Unix)
venv\Scripts\activate (Windows)- Install the required packages:
pip install -r requirements.txt- Run the Flask application:
python app.py- Open your web browser and navigate to
http://127.0.0.1:5000/. - Choose a PDF file and enter the desired adjustment percentage.
- Click "Upload & Adjust" to download the modified PDF file.
app.py: Main Flask application file.templates/: Contains the HTML templates.index.html: Main HTML file with the upload form.
static/: Contains the CSS and JavaScript files.styles.css: Custom CSS styles.
Contributions are welcome! If you find any issues or want to add new features, please submit a pull request.
This project is licensed under the MIT License.
Adarsh Mishra