fix: arrayBuffer access

This commit is contained in:
eugene 2024-08-06 17:48:46 +03:00
parent 1de8e89beb
commit b3fc3c6715

View File

@ -724,9 +724,9 @@ export const SignPage = () => {
zip.file('meta.json', stringifiedMeta)
Object.entries(files).forEach(([fileName, arrayBuffer]) => {
zip.file(`files/${fileName}`, arrayBuffer)
})
for (const [fileName, pdf] of Object.entries(files)) {
zip.file(`files/${fileName}`, await pdf.file.arrayBuffer())
}
const arrayBuffer = await zip
.generateAsync({
@ -763,9 +763,9 @@ export const SignPage = () => {
zip.file('meta.json', stringifiedMeta)
Object.entries(files).forEach(([fileName, arrayBuffer]) => {
zip.file(`files/${fileName}`, arrayBuffer)
})
for (const [fileName, pdf] of Object.entries(files)) {
zip.file(`files/${fileName}`, await pdf.file.arrayBuffer())
}
const arrayBuffer = await zip
.generateAsync({