zflate has been updated: https://github.com/fibodevy/zflate/commit/333cb73eff54cea84599be057958c7ccc61f5e94
It turned out there was a check only for a small (but most common) set of ZLIB headers. I updated the zlib header reader function to check other possible headers.
Your data is correct and has valid adler32 checksum.
For ZLIB you can use gzuncompress(), or use zdecompress() to auto-detect.
PS. Thanks for helping to improve zflate Now it should handle every ZLIB, GZIP and pure deflate.
I came across another PDF compressed stream which appears to be incompatible with your algorithm. Could you check if the following are valid bytes:
99, 70, 207, 82, 195, 176, 243, 145, 171, 59, 17, 128, 168, 69, 142, 117, 232, 221, 67, 179, 208, 190, 76, 120, 88, 230, 191, 19, 31, 155, 187, 181, 244, 6, 100, 211, 44, 116, 197, 4, 242, 78, 172, 104, 243, 146, 184, 51, 60, 112, 210, 87, 64, 194, 215, 225, 124, 216, 46, 227, 160, 145, 32, 208, 148, 117, 66, 143, 62, 253, 177, 171, 212, 115, 209, 158, 246, 15, 156, 46, 66, 36, 45, 226, 234, 208, 129, 139, 34, 149, 121, 187, 223, 210, 100, 122, 18, 108, 12, 170, 81, 172, 153, 142, 44, 19, 75, 244, 99, 128, 122, 144, 223, 23, 198, 202, 82, 70, 96, 122, 179, 125, 143, 109, 100, 184, 122, 43, 221, 250, 165, 29, 175, 143, 252, 162, 187, 118, 173, 116, 27, 217, 85, 52, 185, 198, 194, 77, 39, 65, 144, 142, 99, 123, 59, 150, 173, 247, 133, 163, 246, 240, 70, 93, 176, 159, 200, 24, 237, 57, 97, 154, 209, 129, 220, 96, 210, 1, 97, 220, 178, 133, 246, 252, 78
Length of the stream is 185.