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