Skip to content

Latest commit

 

History

History
66 lines (40 loc) · 1.42 KB

README.md

File metadata and controls

66 lines (40 loc) · 1.42 KB

Highlight PDF in Python

About The Project

This projects help users to highlight the keywords and export the PDF files on request.

Getting Started

To use this project, please follow the following instructions.

  1. Clone the GitHub repository

    Begin by cloning this repository using this command:

    git clone https://github.com/nahceigna/highlight-pdf-python.git
    
  2. Set up the Python environment, replace environment name highlight_pdf_env if necessary

    conda create -n highlight_pdf_env python=3.9 -y
    conda activate highlight_pdf_env
    
  3. Install dependencies by navigating to the highlight-pdf-python directory and install the required dependancy as follow:

    cd highlight-pdf-python
    pip3 install -r requirements.txt
    

Implementation

Required arguements:

  1. -p/--file-paths: file paths

  2. -k/--keywords: keywords

All the file paths and keywords have to be separated by comer ','

To run the programme:

python main.py -p <file paths> -k <keywords>

For example:

python main.py -p sample_pdf/sample_1.pdf,sample_pdf/sample_2.pdf -k and,text

Acknowledgements