pankajr141 / pdf2jpg

Utility to convert PDF into JPG files
53 stars 22 forks source link

Error if spaces in script path #16

Closed KlemenVrhovec closed 3 years ago

KlemenVrhovec commented 3 years ago

I noticed that script is not working if it is on a path that include spaces (C:\Users\user\test pdf2jpg\test.py). I am using windows.

I fixed this inside library by adding quotas to jarPath right after it is defined inside convert_pdf2jpg function.

jarPath = f'"{jarPath}"'

ghost commented 3 years ago

Just tested. Works fine if path contains spaces.

My path: "C:\Users\xxxxx\OneDrive - XXXXXXX\Dokumenter\xxxxxx\xxxxx_xxxxxxxx\Georeferencing".

pankajr141 commented 3 years ago

Thnx planning to fix a bunch of issue in next release

ghost commented 3 years ago

Just tested again. Doesn't work now. Even without spaces, I can't get it to convert pages to images.

pankajr141 commented 3 years ago

Fixed in 1.1 release