yogeshnile / word-to-pdf-file-converter-on-python-gui Goto Github PK
View Code? Open in Web Editor NEWIn repo are created MS Word file convert into PDF file on Python GUI (Tkinter).
License: GNU General Public License v3.0
In repo are created MS Word file convert into PDF file on Python GUI (Tkinter).
License: GNU General Public License v3.0
I'm getting the below error while converting Docx to pdf (Even when I use your program)
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\User\PycharmProjects\Practice\venv\lib\site-packages\win32com\client\dynamic.py", line 86, in _GetGoodDispatch
IDispatch = pythoncom.connect(IDispatch)
pywintypes.com_error: (-2147221005, 'Invalid class string', None, None)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\tkinter_init_.py", line 1892, in call
return self.func(*args)
File "C:\Users\User\PycharmProjects\Practice\task3.py", line 12, in openfile
convert(file.name,'/convert.pdf')
File "C:\Users\User\PycharmProjects\Practice\venv\lib\site-packages\docx2pdf_init_.py", line 106, in convert
return windows(paths, keep_active)
File "C:\Users\User\PycharmProjects\Practice\venv\lib\site-packages\docx2pdf_init_.py", line 19, in windows
word = win32com.client.Dispatch("Word.Application")
File "C:\Users\User\PycharmProjects\Practice\venv\lib\site-packages\win32com\client_init_.py", line 117, in Dispatch
dispatch, userName = dynamic._GetGoodDispatchAndUserName(dispatch, userName, clsctx)
File "C:\Users\User\PycharmProjects\Practice\venv\lib\site-packages\win32com\client\dynamic.py", line 106, in _GetGoodDispatchAndUserName
return (_GetGoodDispatch(IDispatch, clsctx), userName)
File "C:\Users\User\PycharmProjects\Practice\venv\lib\site-packages\win32com\client\dynamic.py", line 88, in _GetGoodDispatch
IDispatch = pythoncom.CoCreateInstance(
pywintypes.com_error: (-2147221005, 'Invalid class string', None, None)
Please help to get rid of this error !
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.