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