Garbled code appears in online preview of vue using pdf.js

the project requires pdf attachment view, because it is compatible with the mobile phone, so I used pdf.js, but some dpf files, using the iframe method to open the view is no problem, but using the pdf.js method PDFJS.getDocument (url). Then () method to open the attachment will appear garbled, where is the setting of pdf coding format, or is there any other reason?

Apr.26,2021

pdf.js
pdf.js examples


this should take a good look at the official documents
search for keywords such as GBK UTF-8


attach a link: https://blog.csdn.net/qq_4020.
has written

before.
Menu