Doppelte Operation in createAnnotations entfernt
This commit is contained in:
parent
9e019c0b69
commit
408969d6dd
@ -7,12 +7,6 @@
|
||||
signatures.push(formField)
|
||||
})
|
||||
|
||||
document.elements.forEach((element) => {
|
||||
const [annotation, formField] = Annotation.createSignature(element)
|
||||
signatures.push(annotation)
|
||||
signatures.push(formField)
|
||||
})
|
||||
|
||||
return {
|
||||
signatures: signatures
|
||||
}
|
||||
@ -25,6 +19,7 @@
|
||||
const top = Annotation.inchToPoint(element.top) - height / 2
|
||||
const left = Annotation.inchToPoint(element.left) - width / 2
|
||||
const page = element.page - 1
|
||||
console.log(id)
|
||||
const annotation = new PSPDFKit.Annotations.WidgetAnnotation({
|
||||
id: id,
|
||||
pageIndex: page,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user