diff --git a/src/modules/cell.js b/src/modules/cell.js
index <HASH>..<HASH> 100644
--- a/src/modules/cell.js
+++ b/src/modules/cell.js
@@ -186,6 +186,7 @@ import { jsPDF } from "../jspdf.js";
     var amountOfLines = 0;
     var height = 0;
     var tempWidth = 0;
+    var scope = this;
 
     if (!Array.isArray(text) && typeof text !== "string") {
       if (typeof text === "number") {
fix: scope is not defined in getTextDimensions (#<I>)