pankajr141 / pdf2jpg

Utility to convert PDF into JPG files
51 stars 21 forks source link

outputpath parameter isn't really the output path #21

Open EvanWAppel opened 4 months ago

EvanWAppel commented 4 months ago

The _convert_pdf2jpg_single() function takes the output path and then appends the name of the input file to create a new directory, but that results in directory file paths that have periods in them and then puts files in there with that garbage. An example file at the end of the process: "outputpath/filename.pdf_dir/01_filename.jpeg"

I would suggest simply removing the creation of the new directory, trust that the user has put enough thought into where they want their files to go when they specify a outputpath.

pankajr141 commented 4 months ago

thnx, will look into it. However if you want to raise a merge request you are welcome.