Convert your JPEG images to PDF in a snap!
+ +From 5b0e9d81578cd5c8fc7bac29b988c1563ea26c42 Mon Sep 17 00:00:00 2001 From: "codeshwar-preview[bot]" <160849357+codeshwar-preview[bot]@users.noreply.github.com> Date: Thu, 6 Feb 2025 05:04:41 +0000 Subject: [PATCH] Update files in addi-72 --- image-to-pdf-app/README.md | 31 +++++++++++++ image-to-pdf-app/index.html | 22 +++++++++ image-to-pdf-app/jpeg-to-pdf.html | 29 ++++++++++++ image-to-pdf-app/script.js | 49 ++++++++++++++++++++ image-to-pdf-app/style.css | 75 +++++++++++++++++++++++++++++++ 5 files changed, 206 insertions(+) create mode 100644 image-to-pdf-app/README.md create mode 100644 image-to-pdf-app/index.html create mode 100644 image-to-pdf-app/jpeg-to-pdf.html create mode 100644 image-to-pdf-app/script.js create mode 100644 image-to-pdf-app/style.css diff --git a/image-to-pdf-app/README.md b/image-to-pdf-app/README.md new file mode 100644 index 0000000..e474a38 --- /dev/null +++ b/image-to-pdf-app/README.md @@ -0,0 +1,31 @@ + +## Project Overview +The Image to PDF Converter is a web-based application that allows users to easily convert their JPEG images into PDF format. This application simplifies the process of converting images to PDFs, making it accessible to anyone with a web browser. + +## Installation Instructions +As this application is web-based, there's no need for a traditional installation. However, to run it locally on your machine, you can use Python's HTTP server module by following these steps: +1. Ensure you have Python installed on your computer. You can download it from https://www.python.org/downloads/. +2. Open your terminal or command prompt. +3. Navigate to the directory where you have saved the project files. +4. Run the command `python -m http.server` (for Python 3.x) or `python -m SimpleHTTPServer` (for Python 2.x). +5. Open a web browser and visit `http://localhost:8000` to access the application. + +## Usage Guide +To use the Image to PDF Converter, follow these steps: +1. Load the web application in your web browser by navigating to the URL provided by the local server setup. +2. On the homepage, click the "Convert JPEG to PDF" button. +3. You will be prompted to select the JPEG image(s) you wish to convert. +4. After selecting the images, click the "Convert to PDF" button to initiate the conversion process. +5. Once the conversion is complete, you can download the resulting PDF file to your local device. + +## Prerequisites +- **Browser Compatibility**: The application is compatible with modern web browsers such as Google Chrome, Mozilla Firefox, Safari, and Microsoft Edge. +- **JavaScript Libraries**: The application uses the jsPDF library to perform the image to PDF conversion. This library is included via CDN, so there's no need for manual installation. + +## Screenshots +- **Image Selection**: A screenshot showing how to select images for conversion. +- **Conversion Process**: A screenshot depicting the conversion process. +- **PDF Download**: A screenshot illustrating the option to download the converted PDF. + +## Acknowledgments +This project makes use of the jsPDF library for converting images to PDF format. jsPDF is a powerful library that simplifies the process of generating PDF documents using JavaScript. More information about jsPDF can be found at their official GitHub repository: https://github.com/MrRio/jsPDF. \ No newline at end of file diff --git a/image-to-pdf-app/index.html b/image-to-pdf-app/index.html new file mode 100644 index 0000000..70bcb8f --- /dev/null +++ b/image-to-pdf-app/index.html @@ -0,0 +1,22 @@ + +
+ + +Convert your JPEG images to PDF in a snap!
+ +Select a JPEG file from your device and click on "Convert to PDF" to start the conversion process.
+ + + Download PDF +