extend pdf.js so sha256 digest can be calculated in it's web worker thread