diff --git a/EnvelopeGenerator.Web/wwwroot/js/annotation.js b/EnvelopeGenerator.Web/wwwroot/js/annotation.js index 2345cf59..d2fcde76 100644 --- a/EnvelopeGenerator.Web/wwwroot/js/annotation.js +++ b/EnvelopeGenerator.Web/wwwroot/js/annotation.js @@ -13,10 +13,13 @@ async function createAnnotations(document, instance) { id: id_background, pageIndex: page, formFieldName: id_background, - backgroundColor: PSPDFKit.Color.WHITE, + backgroundColor: new PSPDFKit.Color({ r: 222, g: 220, b: 215 }), blendMode: 'normal', boundingBox: new PSPDFKit.Geometry.Rect(annotParams.background), fontSize: 8, + borderStyle: 'underline', + borderWidth: 4, + borderColor: new PSPDFKit.Color({ r: 204, g: 202, b: 198 }) }); const formFieldBackground = new PSPDFKit.FormFields.ButtonFormField({ @@ -37,7 +40,7 @@ async function createAnnotations(document, instance) { pageIndex: page, formFieldName: id, backgroundColor: PSPDFKit.Color.LIGHT_YELLOW, - blendMode: 'multiply', + blendMode: 'normal', boundingBox: new PSPDFKit.Geometry.Rect(annotParams.signature), }) @@ -53,7 +56,7 @@ async function createAnnotations(document, instance) { pageIndex: page, formFieldName: id_position, backgroundColor: PSPDFKit.Color.DarkBlue, - blendMode: 'multiply', + blendMode: 'normal', boundingBox: new PSPDFKit.Geometry.Rect(annotParams.position), fontSize: 8 }) @@ -72,7 +75,7 @@ async function createAnnotations(document, instance) { pageIndex: page, formFieldName: id_city, backgroundColor: PSPDFKit.Color.DarkBlue, - blendMode: 'multiply', + blendMode: 'normal', boundingBox: new PSPDFKit.Geometry.Rect(annotParams.city), fontSize: 8 }) @@ -91,7 +94,7 @@ async function createAnnotations(document, instance) { pageIndex: page, formFieldName: id_date, backgroundColor: PSPDFKit.Color.DarkBlue, - blendMode: 'multiply', + blendMode: 'normal', boundingBox: new PSPDFKit.Geometry.Rect(annotParams.date), fontSize: 8, backgroundColor: PSPDFKit.Color.TRANSPARENT, @@ -121,7 +124,7 @@ async function createAnnotations(document, instance) { id: id_date_label, pageIndex: page, formFieldName: id_date_label, - blendMode: 'multiply', + blendMode: 'normal', boundingBox: new PSPDFKit.Geometry.Rect(annotParams.datelabel), fontSize: 8, backgroundColor: PSPDFKit.Color.TRANSPARENT, @@ -143,7 +146,7 @@ async function createAnnotations(document, instance) { id: id_city_label, pageIndex: page, formFieldName: id_city_label, - blendMode: 'multiply', + blendMode: 'normal', boundingBox: new PSPDFKit.Geometry.Rect(annotParams.citylabel), fontSize: 8, backgroundColor: PSPDFKit.Color.TRANSPARENT, @@ -165,7 +168,7 @@ async function createAnnotations(document, instance) { id: id_position_label, pageIndex: page, formFieldName: id_position_label, - blendMode: 'multiply', + blendMode: 'normal', boundingBox: new PSPDFKit.Geometry.Rect(annotParams.positionlabel), fontSize: 8, backgroundColor: PSPDFKit.Color.TRANSPARENT,