AlJohri / docx2pdf

MIT License
497 stars 94 forks source link

Specifying output PDF file name doesn't work #59

Open misha-pyshark opened 2 years ago

misha-pyshark commented 2 years ago

Running the code:

from docx2pdf import convert

docx_file = 'input.docx'
pdf_file = "myfile.pdf"

convert(docx_file, pdf_file)

The code runs, but 'myfile.pdf' isn't created.

However, running the code:

from docx2pdf import convert

docx_file = 'input.docx'

convert(docx_file)

The code runs and creates an input.pdf file.

VinaySavla commented 1 year ago

This happens with macOS. the code does not show any error but the pdf file is not generated.

LXlearning commented 1 year ago

I also encountered this problem in the macOS