fix: Postleitzahl entfernt.
This commit is contained in:
parent
a77a31121f
commit
b664e35b11
@ -3,22 +3,17 @@
|
||||
const signatures = []
|
||||
|
||||
for (var element of document.elements) {
|
||||
const [annotation, formField, annotation_date, formFieldDate, annotation_postcode, formFieldPostcode, annotation_city, formFieldCity, annotation_date_label, formFieldDateLabel, annotation_postcode_label, formFieldPostcodeLabel, annotation_city_label, formFieldCityLabel] = await Annotation.createSignature(element)
|
||||
const [annotation, formField, annotation_date, formFieldDate, annotation_city, formFieldCity, annotation_date_label, formFieldDateLabel, annotation_city_label, formFieldCityLabel] = await Annotation.createSignature(element)
|
||||
signatures.push(annotation)
|
||||
signatures.push(formField)
|
||||
signatures.push(annotation_date)
|
||||
signatures.push(formFieldDate)
|
||||
signatures.push(annotation_postcode)
|
||||
signatures.push(formFieldPostcode)
|
||||
signatures.push(annotation_city)
|
||||
signatures.push(formFieldCity)
|
||||
|
||||
signatures.push(annotation_date_label)
|
||||
signatures.push(formFieldDateLabel)
|
||||
|
||||
signatures.push(annotation_postcode_label)
|
||||
signatures.push(formFieldPostcodeLabel)
|
||||
|
||||
signatures.push(annotation_city_label)
|
||||
signatures.push(formFieldCityLabel)
|
||||
}
|
||||
@ -86,30 +81,6 @@
|
||||
readOnly: true
|
||||
})
|
||||
|
||||
//post_code
|
||||
var location = await getLocation();
|
||||
const id_postcode = PSPDFKit.generateInstantId()
|
||||
const annotation_postcode = new PSPDFKit.Annotations.WidgetAnnotation({
|
||||
id: id_postcode,
|
||||
pageIndex: page,
|
||||
formFieldName: id_postcode,
|
||||
backgroundColor: PSPDFKit.Color.DarkBlue,
|
||||
blendMode: 'multiply',
|
||||
boundingBox: new PSPDFKit.Geometry.Rect({
|
||||
width: width * 0.45,
|
||||
height: height / 2,
|
||||
top: top + height + 25 + date_place_top_shift,
|
||||
left: left - width * .25 + width * 0.80,
|
||||
}),
|
||||
fontSize: 8
|
||||
})
|
||||
|
||||
const formFieldPostcode = new PSPDFKit.FormFields.TextFormField({
|
||||
name: id_postcode,
|
||||
annotationIds: PSPDFKit.Immutable.List([annotation_postcode.id]),
|
||||
value: location.postalCode
|
||||
})
|
||||
|
||||
//city
|
||||
var location = await getLocation();
|
||||
const id_city = PSPDFKit.generateInstantId()
|
||||
@ -166,33 +137,6 @@
|
||||
readOnly: true
|
||||
})
|
||||
|
||||
//postcode label
|
||||
const id_postcode_label = PSPDFKit.generateInstantId()
|
||||
const annotation_postcode_label = new PSPDFKit.Annotations.WidgetAnnotation({
|
||||
id: id_postcode_label,
|
||||
pageIndex: page,
|
||||
formFieldName: id_postcode_label,
|
||||
blendMode: 'multiply',
|
||||
boundingBox: new PSPDFKit.Geometry.Rect({
|
||||
width: width * 0.45,
|
||||
height: height / 2,
|
||||
top: top + height + 25 + label_top_shift + date_place_top_shift,
|
||||
left: left - width * .25 + width * 0.80,
|
||||
}),
|
||||
fontSize: 8,
|
||||
backgroundColor: PSPDFKit.Color.TRANSPARENT,
|
||||
fontColor: PSPDFKit.Color.Black,
|
||||
isBold: true,
|
||||
required: true
|
||||
})
|
||||
|
||||
const formFieldPostcodeLabel = new PSPDFKit.FormFields.TextFormField({
|
||||
name: id_postcode_label,
|
||||
annotationIds: PSPDFKit.Immutable.List([annotation_postcode_label.id]),
|
||||
value: "PLZ",
|
||||
readOnly: true
|
||||
})
|
||||
|
||||
//city label
|
||||
const id_city_label = PSPDFKit.generateInstantId()
|
||||
const annotation_city_label = new PSPDFKit.Annotations.WidgetAnnotation({
|
||||
@ -219,7 +163,7 @@
|
||||
readOnly: true
|
||||
})
|
||||
|
||||
return [annotation, formField, annotation_date, formFieldDate, annotation_postcode, formFieldPostcode, annotation_city, formFieldCity, annotation_date_label, formFieldDateLabel, annotation_postcode_label, formFieldPostcodeLabel, annotation_city_label, formFieldCityLabel]
|
||||
return [annotation, formField, annotation_date, formFieldDate, annotation_city, formFieldCity, annotation_date_label, formFieldDateLabel, annotation_city_label, formFieldCityLabel]
|
||||
}
|
||||
|
||||
static createTextBox(element) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user