Skip to content

Commit

Permalink
fix SVG to PDF export Windows issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Paolo Prete committed Jun 10, 2024
1 parent 9ff0cb2 commit 4772736
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions NEWS.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
--------------
Version 1.25
--------------
* fix SVG to PDF export Windows issue

--------------
Version 1.24
--------------
Expand Down
6 changes: 6 additions & 0 deletions lib/python/spontini_server_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
2 changes: 1 addition & 1 deletion lib/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.24_alfa
1.25_alfa

0 comments on commit 4772736

Please sign in to comment.