js-cfb/bits/68_mini.js
SheetJS 3fd73f806b version bump 0.13.1: determinism
- pin unknown dates and zero-fill end of file
- cfb_add can take an absolute path e.g. "/Workbook"
2017-09-20 19:33:03 -04:00

10 lines
341 B
JavaScript

for(i = 1; i < cfb.FileIndex.length; ++i) {
file = cfb.FileIndex[i];
/*:: if(!file.content) throw new Error("unreachable"); */
if(file.size > 0 && file.size < 0x1000) {
for(j = 0; j < file.size; ++j) o.write_shift(1, file.content[j]);
for(; j & 0x3F; ++j) o.write_shift(1, 0);
}
}
while(o.l < o.length) o.write_shift(1, 0);