SVN r1042

SVN-Revision: r1042
This commit is contained in:
tdx
2025-11-19 07:28:46 +00:00
parent f8b3d4a832
commit 909aa8285e
@@ -46,7 +46,9 @@ namespace Lskj.AutoCreatWord
saveDocument.SaveToFile(savePath, FileFormat.Doc); saveDocument.SaveToFile(savePath, FileFormat.Doc);
if (createPdf) if (createPdf)
{ {
saveDocument.SaveToFile(fileName, FileFormat.PDF); Document savePDFDoc = new Document();
savePDFDoc.LoadFromFile(savePath);
savePDFDoc.SaveToFile(fileName, FileFormat.PDF);
} }
result = true; result = true;
saveDocument.Close(); saveDocument.Close();