Steps to replicate the issue (include links if applicable):
- Browse to https://commons.wikimedia.org/wiki/File:ECDM_20250212_Ukraine-Moldova_DGECHO.pdf
- Look at JPEG thumbnail: https://upload.wikimedia.org/wikipedia/commons/thumb/e/e8/ECDM_20250212_Ukraine-Moldova_DGECHO.pdf/page1-1793px-ECDM_20250212_Ukraine-Moldova_DGECHO.pdf.jpg
- Try to read text
What happens?:
The text is unreadable, all characters are switched to random ones:
What should have happened instead?:
The text should be displayed as in Firefox when we display the PDF directly:
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
Firefox 135.0 / Ubuntu 24.04 LTS

