修改答辩题目页面大小
This commit is contained in:
@@ -62,12 +62,14 @@ class DTGWorker(QObject):
|
||||
doc = word.Documents.Open(word_file)
|
||||
try:
|
||||
doc.SaveAs(pdf_file, 17)
|
||||
doc.Close()
|
||||
os.remove(word_file)
|
||||
os.startfile(pdf_file)
|
||||
except Exception as e:
|
||||
raise Exception("PDF转换失败,但Word文档已生成") from e
|
||||
finally:
|
||||
doc.Close()
|
||||
os.startfile(word_file)
|
||||
raise Exception("PDF转换失败,但Word文档已生成,已打开Word文档") from e
|
||||
finally:
|
||||
word.Quit()
|
||||
elif self.output_type == 'word':
|
||||
os.startfile(word_file)
|
||||
|
||||
Reference in New Issue
Block a user