最近用WKWebView读取PDF文件出现字体异常、电子图章不显示的问题,后来查找很多解决方案,最后决定用PDF.js的方式来实现
生成generic-legacy稳定包之后,对Safari进行兼容后,终于能修复字体异常的问题
bytes方式动态加载读取:
demo地址:https://github.com/freesan44/PDFJSReader
参考: https://github.com/mozilla/pdf.js https://www.jianshu.com/p/fd5f248a8158 https://www.jianshu.com/p/ded81b392d4d https://github.com/mozilla/pdf.js/issues/2784