DevelopingMagic / pdfassembler

MIT License
183 stars 34 forks source link

ReferenceError: Blob is not defined #11

Open ritschwumm opened 4 years ago

ritschwumm commented 4 years ago

with node 12.3, this line https://github.com/DevelopingMagic/pdfassembler/blob/master/src/pdfassembler.ts#L43 fails with the above error when fed an UInt8Array coming from fs.readFile()

as a workaround, global.Blob = function() {}; seems to help

ritschwumm commented 4 years ago

with a similar hack for File, this library works quite well on node...

ykolomatski commented 2 years ago

Is there a better solution for this? I am getting the same error