Skip to content

nahceigna/highlight-pdf-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages