diff --git a/Utils/svgToPdf.ts b/Utils/svgToPdf.ts index d7f793b18..c03b49982 100644 --- a/Utils/svgToPdf.ts +++ b/Utils/svgToPdf.ts @@ -30,7 +30,7 @@ class SvgToPdfInternals { this.doc = advancedApi; this._images = images; this._rects = rects; - this.extractTranslation = s => extractTranslation(s).replace(/ /g, " "); + this.extractTranslation = s => extractTranslation(s)?.replace(/ /g, " "); this.currentMatrix = this.doc.unitMatrix; this.currentMatrixInverted = this.doc.unitMatrix; }