微信小程序 能解析pdf类型 的 base64 展示出来吗?
发布于 5 年前 作者 xiaqian 15232 次浏览 来自 官方Issues

epolicyPDF 是后端返回的,我要pdf 类型的base64 的文件流展示在小程序上,请问有方法可以做了嘛?

base64 大小为103kb 太大了,么截图全

{

    “res”: {

        “policyNo”: “ASHZ107E3020PAAAAAAR”,

        “epolicyPDF”: "JVBERi0xLjUNCiW1tbW1DQoxIDAgb2JqDQo8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFIvTGFuZyh6aC1DTikgL1N0cnVjdFRyZWVSb290IDE1IDAgUi9NYXJrSW5mbzw8L01hcmtlZCB0cnVlPj4+Pg0KZW5kb2JqDQoyIDAgb2JqDQo8PC9UeXBlL1BhZ2VzL0NvdW50IDEvS2lkc1sgMyAwIFJdID4+DQplbmRvYmoNCjMgMCBvYmoNCjw8L1R5cGUvUGFnZS9QYXJlbnQgMiAwIFIvUmVzb3VyY2VzPDwvRm9udDw8L0YxIDUgMCBSL0YyIDkgMCBSPj4vRXh0R1N0YXRlPDwvR1M3IDcgMCBSL0dTOCA4IDAgUj4+L1Byb2NTZXRbL1BERi9UZXh0L0ltYWdlQi9JbWFnZUMvSW1hZ2VJXSA+Pi9NZWRpYUJveFsgMCAwIDU5NS4yIDg0MS45Ml0gL0NvbnRlbnRzIDQgMCBSL0dyb3VwPDwvVHlwZS9Hcm91cC9TL1RyYW5zcGFyZW5jeS9DUy9EZXZpY2VSR0I+Pi9UYWJzL1MvU3RydWN0UGFyZW50cyAwPj4NCmVuZG9iag0KNCAwIG9iag0KPDwvRmlsdGVyL0ZsYXRlRGVjb2RlL0xlbmd0aCAyNTg+Pg0Kc3RyZWFtDQp4nLXQTUsDMRAG4Hsg/2GOW6HZySSTD1j20M1uUSxUuuKheBCpe3JB/f9gWhQKLhaFDbkMeTM8M1BuoarKTXOdAMvbp3GA4jAu73eLuoZVauBNClR4PCG4CAgcWREEq1UkeD9I8XAFoxSrXoqy06BRsYP+RQqdwwgaYv5vA3iOSk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