AlJohri / docx2pdf

MIT License
506 stars 96 forks source link

Attribute Error : Open.SaveAs when converting a word doc to pdf #49

Closed SirishaGorasa closed 2 years ago

SirishaGorasa commented 2 years ago

I have installed docx2pdf as:

pip install docx2pdf

I am trying to convert a word document to PDF with the below code: from docx2pdf import convert convert("secrecy.docx", "My_Files\\output.pdf")

I am facing the below error : image

I am unable to figure out the underlying issue i.e, why this error is being occurred.

Is this the problem with my python version? I am using Python 3.8.3. Could you please let me know the solution for this as early as possible?

AlJohri commented 2 years ago

could be similar to this issue? https://github.com/AlJohri/docx2pdf/issues/21

AlJohri commented 2 years ago

@SirishaGorasa closing the issue for now. please feel to re-open and add a sample document to help me reproduce the issue