From 60ebebc0d829ec18fe80eb4f569e3fd5d04f06c4 Mon Sep 17 00:00:00 2001 From: TekH Date: Thu, 27 Aug 2026 14:46:32 +0200 Subject: [PATCH] Add widget annotation and update stroke color Updated `createAnnotations` to initialize a `PSPDFKit.Annotations.WidgetAnnotation` object, enabling the creation of widget annotations. Modified `ctx.strokeStyle` in `createAnnotationFrameBlob` to use 'darkblue' instead of 'darkgray', improving the visual appearance of the annotation frame. --- EnvelopeGenerator.Web/wwwroot/js/annotation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EnvelopeGenerator.Web/wwwroot/js/annotation.js b/EnvelopeGenerator.Web/wwwroot/js/annotation.js index b893a182..3003db44 100644 --- a/EnvelopeGenerator.Web/wwwroot/js/annotation.js +++ b/EnvelopeGenerator.Web/wwwroot/js/annotation.js @@ -13,7 +13,7 @@ async function createAnnotations(document, envelopeId, receiverId) { const id = generateId(envelopeId, receiverId, element.id, 'signature'); const boundingBox = new PSPDFKit.Geometry.Rect(annotParams.signature); - + const annotation = new PSPDFKit.Annotations.WidgetAnnotation({ id: id, pageIndex: page, @@ -273,7 +273,7 @@ async function createAnnotationFrameBlob(receiverName, receiverSignature, timest ctx.moveTo(30 * scale, 50 * scale) ctx.lineTo(signatureLength, 50 * scale) - ctx.strokeStyle = 'darkgray' + ctx.strokeStyle = 'darkblue' ctx.stroke() ctx.fillStyle = 'black'