get sha256 from pdf.js worker thread

note: diff is big because identation changed, but only few lines have changed