This projects help users to highlight the keywords and export the PDF files on request.
To use this project, please follow the following instructions.
-
Clone the GitHub repository
Begin by cloning this repository using this command:
git clone https://github.com/nahceigna/highlight-pdf-python.git
-
Set up the Python environment, replace environment name
highlight_pdf_env
if necessaryconda create -n highlight_pdf_env python=3.9 -y conda activate highlight_pdf_env
-
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
Required arguements:
-
-p/--file-paths: file paths
-
-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