Giter Site home page Giter Site logo

pdf-extractor's Introduction

PDF Extractor

This is a web application that allows users to upload a PDF, select specific pages, and generate a new PDF with only the selected pages.

Table of Contents

  • Features
  • Installation
  • Screenshots
  • Usage

Features

The PDF Extractor offers the following functionalities:

Frontend (React.js)

  • PDF Upload: Implemented a simple form to upload PDF files with validation to ensure only PDFs are accepted.
  • Page Preview: Displays a visual representation of all pages in the uploaded PDF.
  • Page Selection: Allows users to select the desired pages for extraction through checkboxes or a similar UI element.
  • PDF Creation: Provides a button or functionality to generate a new PDF based on the chosen pages. Upon completion, offers a download link for the newly created PDF.
  • Responsive Design: Ensures all pages adapt and work seamlessly on mobile devices.

Backend (Node.js, Express.js)

  • PDF Upload Endpoint: Created a route to handle PDF uploads and store them on the server.
  • PDF Retrieval Endpoint: Created a route to retrieve stored PDF files for display.
  • PDF Extraction Endpoint: Implemented a route to extract the selected pages from the original PDF and create a new PDF.

Installation

To run the application locally, follow these steps:

  1. Clone the repository:

    git clone [https://github.com/MohitBhatt07/PDF-Extractor.git]

  2. Install dependencies for the frontend:

    cd frontend

    npm install

  3. Install dependencies for the backend:

    cd backend

    npm install

  4. Create a .env file in the frontend directory with the following content:

    VITE_APP_SERVER_URL=http://localhost:8000

  5. Create a .env file in the backend directory with the following content:

    JWT_SECRET="your secret key"

    MONGO_URI="your mongodb cloud url"

    BASE_URL="frontend url"

  6. Start the frontend development server:

    cd frontend

    npm run dev

  7. Start the backend server:

    cd backend

    npm start

Screenshots

alt text

alt text

alt text

Usage

  1. Navigate to the application in your web browser.
  2. Upload a PDF file by clicking the "Upload PDF" button and selecting the desired file.
  3. Once uploaded, you'll see a visual representation of all pages in the PDF.
  4. Select the pages you want to extract by checking the corresponding checkboxes.
  5. Click the "Create PDF" button to generate the new PDF with the selected pages.
  6. Download the newly created PDF by clicking the download link.

pdf-extractor's People

Contributors

mohitbhatt07 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.