fix(annotations): correctly decode base64 for FRAME annotations

Updated `mapSignature` function to use `fixBase64` when assigning `value`
to FRAME annotations. This ensures any escaped Base64 strings in attachments
are properly converted to standard Base64 format.
This commit is contained in:
tekh 2025-10-20 14:22:19 +02:00
parent 188cb67306
commit cff79730b0
3 changed files with 846 additions and 11 deletions

View File

@ -329,7 +329,7 @@ function mapSignature(iJSON) {
const idPartsOfPre = preElement.id.split('#');
annot.elementId = Number(idPartsOfPre[2]);
annot.name = annot.description.toLowerCase();
annot.value = iJSON.attachments[annot.imageAttachmentId]?.binary || null;
annot.value = fixBase64(iJSON.attachments[annot.imageAttachmentId]?.binary);
return annot;
})
};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long