hey squinters if you are about to convert pdfs to text within the browser with pdfjs here is your snippet https://gist.github.com/m3tti/d607fe5d28055b452b0966436ba28cbd
if you want i can also share the code to extract docx text 😉 so both pdf and docx if there is any need or someone wants it