]> git.kianting.info Git - clo/commitdiff
fix grid info
authorTan Kian-ting <chenjt30@gmail.com>
Wed, 15 Nov 2023 04:38:51 +0000 (12:38 +0800)
committerTan Kian-ting <chenjt30@gmail.com>
Wed, 15 Nov 2023 04:38:51 +0000 (12:38 +0800)
blank.pdf
src/libclo/index.js
src/libclo/index.ts

index 92353b206dc999161f58d5c3de9d0d1e08a62ea1..927e353c911fb1a1f75401612ef469b8fb63821a 100644 (file)
Binary files a/blank.pdf and b/blank.pdf differ
index 17b36b41752e06493d9c785c3002b787ab2be69d..43e410c89ec16e68d3bd84612dae41dfd047432a 100644 (file)
@@ -373,7 +373,7 @@ class Clo {
             page.drawText('You can create PDFs!');
             for (var j = 0; j < 1000; j += 5) {
                 if (j % 50 == 0) {
-                    page.drawText(i.toString(), { x: 50, y: j });
+                    page.drawText(j.toString(), { x: 50, y: j });
                 }
                 page.drawLine({
                     start: { x: 0, y: j },
index bcd6a46704d96b05580f4f81eea3e86eef1b214e..b9c3b094ca39a23ffa0fe7e9a48487cbaf7f89a2 100644 (file)
@@ -457,7 +457,7 @@ export class Clo{
 
         for (var j = 0; j<1000; j+=5){
             if (j %50 == 0){
-                page.drawText(i.toString(), {x: 50, y: j});
+                page.drawText(j.toString(), {x: 50, y: j});
             }
 
             page.drawLine({