var zip = new admZip(data);
var newZip = new admZip();
zip.getEntries().forEach((zipEntry, i) => {
const entryData = zipEntry.getData()
var newFileName = cart[i]. '.pdf'
newZip.addFile(newFileName, entryData);
});
return new StreamableFile(newZip.toBuffer());
1条答案
按热度按时间b09cbbtk1#
找到了答案: