fix: arrayBuffer access
This commit is contained in:
parent
1de8e89beb
commit
b3fc3c6715
@ -724,9 +724,9 @@ export const SignPage = () => {
|
|||||||
|
|
||||||
zip.file('meta.json', stringifiedMeta)
|
zip.file('meta.json', stringifiedMeta)
|
||||||
|
|
||||||
Object.entries(files).forEach(([fileName, arrayBuffer]) => {
|
for (const [fileName, pdf] of Object.entries(files)) {
|
||||||
zip.file(`files/${fileName}`, arrayBuffer)
|
zip.file(`files/${fileName}`, await pdf.file.arrayBuffer())
|
||||||
})
|
}
|
||||||
|
|
||||||
const arrayBuffer = await zip
|
const arrayBuffer = await zip
|
||||||
.generateAsync({
|
.generateAsync({
|
||||||
@ -763,9 +763,9 @@ export const SignPage = () => {
|
|||||||
|
|
||||||
zip.file('meta.json', stringifiedMeta)
|
zip.file('meta.json', stringifiedMeta)
|
||||||
|
|
||||||
Object.entries(files).forEach(([fileName, arrayBuffer]) => {
|
for (const [fileName, pdf] of Object.entries(files)) {
|
||||||
zip.file(`files/${fileName}`, arrayBuffer)
|
zip.file(`files/${fileName}`, await pdf.file.arrayBuffer())
|
||||||
})
|
}
|
||||||
|
|
||||||
const arrayBuffer = await zip
|
const arrayBuffer = await zip
|
||||||
.generateAsync({
|
.generateAsync({
|
||||||
|
Loading…
Reference in New Issue
Block a user