diff --git a/NEWS.txt b/NEWS.txt index d2180a3..38cb1a6 100644 --- a/NEWS.txt +++ b/NEWS.txt @@ -1,3 +1,8 @@ +-------------- +Version 1.25 +-------------- +* fix SVG to PDF export Windows issue + -------------- Version 1.24 -------------- diff --git a/lib/python/spontini_server_core.py b/lib/python/spontini_server_core.py index 5e16e98..c6f4afa 100644 --- a/lib/python/spontini_server_core.py +++ b/lib/python/spontini_server_core.py @@ -1171,6 +1171,12 @@ def doPostSync(message, request): merger.close() for pdf in pdfList: os.remove(os.path.join(wsDirPath, pdf)) + + try: + os.remove(os.path.join(wsDirPath, fileNameWOSuffix+"-svgexport.pdf")) + except: + pass + os.rename(os.path.join(wsDirPath, fileNameWOSuffix+"-cpy.pdf"), os.path.join(wsDirPath, fileNameWOSuffix+"-svgexport.pdf")) log(clientInfo + "[generating PDF] Generated: " + os.path.join(wsDirPath, fileNameWOSuffix+"-svgexport.pdf"), "S") diff --git a/lib/version.txt b/lib/version.txt index c169ab8..e918a4f 100644 --- a/lib/version.txt +++ b/lib/version.txt @@ -1 +1 @@ -1.24_alfa +1.25_alfa