feat: Annotationen für Unterschrift, Ort und Datum neu angeordnet

This commit is contained in:
Developer 02 2024-09-19 10:42:25 +02:00
parent e5e64b25fe
commit 2f228de163

View File

@ -52,7 +52,7 @@
/** /**
* Date, post code and place text form part * Date, post code and place text form part
*/ */
const date_place_top_shift = 14; const date_place_top_shift = 9.5;
//date //date
const id_date = PSPDFKit.generateInstantId() const id_date = PSPDFKit.generateInstantId()
const annotation_date = new PSPDFKit.Annotations.WidgetAnnotation({ const annotation_date = new PSPDFKit.Annotations.WidgetAnnotation({
@ -64,7 +64,7 @@
boundingBox: new PSPDFKit.Geometry.Rect({ boundingBox: new PSPDFKit.Geometry.Rect({
width: width * 1.55, width: width * 1.55,
height: height / 2, height: height / 2,
top: top + height + 25 + date_place_top_shift + (height) + 4, top: top + height + 25 + date_place_top_shift + (height),
left: left left: left
}), }),
fontSize: 8, fontSize: 8,
@ -93,7 +93,7 @@
boundingBox: new PSPDFKit.Geometry.Rect({ boundingBox: new PSPDFKit.Geometry.Rect({
width: width * 1.2, width: width * 1.2,
height: height / 2, height: height / 2,
top: top + height + 23 + date_place_top_shift, top: top + height + 23 + date_place_top_shift + 2,
left: left, left: left,
}), }),
fontSize: 8 fontSize: 8