pankajr141 / pdf2jpg

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

Execution error with cyrillic filename #4

Open MrChebur opened 5 years ago

MrChebur commented 5 years ago

Executing:

from pdf2jpg import pdf2jpg
pdf = r'C:\pdf\г. Советский Картопья вода.pdf'
outputpath = r'C:\pdf\images'
results = pdf2jpg.convert_pdf2jpg(pdf, outputpath, pages="ALL")
print('results=', results)

Gives error:

'utf-8' codec can't decode byte 0xe3 in position 65: invalid continuation byte
results= False