For Unix based systems please execute the following command to create venv and install requirements.
make init
source .venv/bin/activate
- Call the function giving two arguments, the path to the doc file and the output path. (Include the file name that you want in the output path as well)
example :-input_file = "C:/User/Desktop/xyz.docx"
output_file = "C:/User/Desktop/xyz.pdf"
doc_to_pdf(input_file, output_file)