Maybe it's because this gets run before we get here: https://github.com/saebekassebil/pdf.js/blob/db7546f7e5a4851d879c6bc32cd1c017c7a9d11f/extensions/firefox/components/PdfStreamConverter.js#L811-Lundefined