Skip to content

A simple web application that allows you to adjust the size of a PDF file by a specified percentage.

License

Notifications You must be signed in to change notification settings

AdarshMishra26/PDF-Resizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDF Size Modifier

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.

Requirements

  • Python 3.x
  • Flask
  • PyPDF2

Installation

  1. Clone the repository:
git clone https://github.com/your-username/pdf-size-modifier.git
  1. Change to the project directory:
cd pdf-size-modifier
  1. Create a virtual environment (optional but recommended):
python3 -m venv venv
  1. Activate the virtual environment:
source venv/bin/activate (Unix)
venv\Scripts\activate (Windows)
  1. Install the required packages:
pip install -r requirements.txt

Usage

  1. Run the Flask application:
python app.py
  1. Open your web browser and navigate to http://127.0.0.1:5000/.
  2. Choose a PDF file and enter the desired adjustment percentage.
  3. Click "Upload & Adjust" to download the modified PDF file.

File Structure

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

Contributing

Contributions are welcome! If you find any issues or want to add new features, please submit a pull request.

License

This project is licensed under the MIT License.

Author

Adarsh Mishra

About

A simple web application that allows you to adjust the size of a PDF file by a specified percentage.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published