Don't forget to install docx2pdf module before using this code
To install docx2pdf module follow these step
1. Open command Prompt in the same directry where the .py file exist.
2. Type, pip install docx2pdf and press Enter Key.
3. All is Done. Now you can run this code in your IDLE or any of the IDE.