DeCompressRTF
CompressedRTF is a compressed entity found in Outlook Item File (.msg).
DeCompressRTF is a decompressor in JavaScript npm module
How to use
const fs = require('fs');
const { decompressRTF } = require('@kenjiuno/decompressrtf');
const inputArray = fs.readFileSync('test/__substg1.0_10090102');
const outputArray = decompressRTF(inputArray);
console.log(Buffer.from(outputArray).toString("ascii"));
Reference
-
The Compressed RTF Format https://www.freeutils.net/source/jtnef/rtfcompressed
-
2.1.3.1 RTF Compression Format https://msdn.microsoft.com/en-us/library/ee159164(v=exchg.80).aspx
-
1009-PidTagRtfCompressed https://github.com/HiraokaHyperTools/OXPROPS/blob/master/JSON/1009-PidTagRtfCompressed.md