From 230ca9184c4879f5445c9f71770b7e800243a2f6 Mon Sep 17 00:00:00 2001
From: Patrizio Bekerle <patrizio@bekerle.com>
Date: Wed, 10 Mar 2021 14:34:54 +0100
Subject: [PATCH] Add some more test annotations

---
 src/dbp-pdf-preview.js | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/src/dbp-pdf-preview.js b/src/dbp-pdf-preview.js
index cbacb9e..47dae17 100644
--- a/src/dbp-pdf-preview.js
+++ b/src/dbp-pdf-preview.js
@@ -286,7 +286,19 @@ export class PdfPreview extends ScopedElementsMixin(DBPLitElement) {
             // Create single printable text annotation
             // pdfFactory.createTextAnnotation(0, [20, 30, 20, 30], "Text annotation by annotpdf", "Patrizio");
 
-            pdfFactory.createFreeTextAnnotation(0, [20, 30, 20, 30], "FreeText annotation by annotpdf", "Patrizio");
+            // pdfFactory.createFreeTextAnnotation(0, [20, 30, 20, 30], "FreeText annotation by annotpdf", "Patrizio");
+            // pdfFactory.createFreeTextAnnotation(0, [-100, -100, -100, -100], "OutOfBounds FreeText annotation by annotpdf", "Patrizio");
+
+            for (let i = 1; i <= 50; i++) {
+                // Create single free text annotation with print flag and 0 font size
+                let annot = Object.assign(pdfFactory.createBaseAnnotation(page, [-1000, -1000, -1000, -1000], i + ": OutOfBounds FontSize0 White FreeText annotation by annotpdf", author), {
+                    annotation_flag: 4,
+                    color: { r: 1, g: 1, b: 1 },
+                    defaultAppearance: "/Invalid_font 0 Tf"
+                });
+                annot.type = "/FreeText";
+                pdfFactory.annotations.push(annot);
+            }
 
             // // Create single, hidden text annotation
             // let annot = Object.assign(pdfFactory.createBaseAnnotation(page, rect, contents, author), {
-- 
GitLab