diff --git a/dist/pdfParser.js b/dist/pdfParser.js
index 96afafb3840099e8835424dac36a0c2e0b2b28ff..029187e1cb32490fbec671a3de93a684b4a703a4 100644
--- a/dist/pdfParser.js
+++ b/dist/pdfParser.js
@@ -54,12 +54,14 @@ class PDFparser {
             for (let index = 0; index < pages.length; index++) {
                 const page = pages[index];
                 console.log(coords[index + 1]);
+                console.log(typeof coords[index + 1] !== "undefined");
                 const x = typeof coords[index + 1] !== "undefined"
-                    ? parseFloat(coords[index + 1]["x"])
+                    ? parseFloat(coords[index + 1].x)
                     : null;
                 const y = typeof typeof coords[index + 1] !== "undefined"
-                    ? parseFloat(coords[index + 1]["y"])
+                    ? parseFloat(coords[index + 1].y)
                     : null;
+                console.log(x, y);
                 if (x && y) {
                     page.drawImage(img, {
                         x,
diff --git a/src/pdfParser.ts b/src/pdfParser.ts
index 42315397595ff4b8ccdfe52a893ac9a5f76fe4b3..c296df737e29102e1d2eaedd5db0f76d367eb59c 100644
--- a/src/pdfParser.ts
+++ b/src/pdfParser.ts
@@ -71,17 +71,19 @@ class PDFparser {
       const page = pages[index];
 
       console.log(coords[index + 1]);
+      console.log(typeof coords[index + 1] !== "undefined");
 
       const x =
         typeof coords[index + 1] !== "undefined"
-          ? parseFloat(coords[index + 1]["x"])
+          ? parseFloat(coords[index + 1].x)
           : null;
 
       const y =
         typeof typeof coords[index + 1] !== "undefined"
-          ? parseFloat(coords[index + 1]["y"])
+          ? parseFloat(coords[index + 1].y)
           : null;
 
+      console.log(x, y);
       if (x && y) {
         page.drawImage(img, {
           x,