Save canvas to pdf in standalone code

Oh wow, changing the system language from German to English solves the problem. After investigating a svg file with an editor, I noticed the wrong decimal separator.

Thanks for your support.