add structred id to image annotations

This commit is contained in:
2025-10-08 00:36:20 +02:00
parent b72ac68daf
commit 44b204ca68
3 changed files with 7 additions and 3 deletions

View File

@@ -217,8 +217,9 @@ function isSignature(annotation) {
return !!annotation.isSignature || annotation.description == 'FRAME'
}
function createImageAnnotation(boundingBox, pageIndex, imageAttachmentId) {
function createImageAnnotation(boundingBox, pageIndex, imageAttachmentId, envelopeId, receiverId, annotationType) {
const frameAnnotation = new PSPDFKit.Annotations.ImageAnnotation({
id: generateId(envelopeId, receiverId, annotationType),
pageIndex: pageIndex,
isSignature: false,
readOnly: true,