Questions tagged [docx2pdf]
19 questions
0
votes
0 answers
Python Doc to PDF converting using
I am trying to convert a document .docx to .pdf
So I tried to use docx2pdf and comtypes then aspose.words
my code is simple:
from docx2pdf import convert
def openfile():
convert('Xp_Tank.docx','output/XpTank.pdf')
openfile()
and the other code…

tibas
- 139
- 13
-1
votes
1 answer
Error with docx2pdf after compiling using pyinstaller
I compiled a script (running smoothly) that I made in python using Pyinstaller, but the function that converts from word to pdf is stopping the code.
The error:
File "docx2pdf\__init__.py", line 106, in convert
File "docx2pdf\__init__.py", line…

nilton klebert
- 3
- 1
-2
votes
2 answers
Python docx2pdf Convert Com_Error
I want to convert 2 docx files (which are in same path) in same code.
Yesterday it was working. But today i have an error. Still it's working, it convert files but it stop the code on that cell '''docx2pdf.convert(path)''' and i have different codes…

enesert
- 1
- 3