vue中将base64的pdf文件流转换成pdf并预览(二)——base64转PDF工具的使用

Base64 to PDF官网
1、官网

官网——https://www.ipvoid.com/base64-to-pdf/

2、示例-base64
JVBERi0xLjUNCjQgMCBvYmoNCjw8L1R5cGUgL1BhZ2UvUGFyZW50IDMgMCBSL0NvbnRlbnRzIDUg
MCBSL01lZGlhQm94IFswIDAgNTk1LjI5OTk4Nzc5IDg0MS45MDAwMjQ0MV0vUmVzb3VyY2VzPDwv
Rm9udDw8L0ZBQUFBSCA3IDAgUj4+Pj4vR3JvdXAgPDwvVHlwZS9Hcm91cC9TL1RyYW5zcGFyZW5j
eS9DUy9EZXZpY2VSR0I+Pj4+DQplbmRvYmoNCjUgMCBvYmoNCjw8L0xlbmd0aCA5IDAgUj4+c3Ry
ZWFtDQoxIDAgMCAtMSAwIDg0MS45MDAwMjQ0MSBjbSBxIDEgMCAwIDEgOTAgNzIgY20gQlQgL0ZB
QUFBSCAxMC41IFRmIDEgMCAwIC0xIDAgMTIuMjU1MDAwMTEgVG0gMCBnICgxMjMpVGogRVQgUSAx
IDAgMCAtMSAwIDg0MS45MDAwMjQ0MSBjbSANCmVuZHN0cmVhbQ0KZW5kb2JqDQo5IDAgb2JqDQox
MzUgDQplbmRvYmoNCjEgMCBvYmoNCjw8L0F1dGhvcij+/wAxADIAMykvQ3JlYXRvcij+/wBNAGkA
YwByAG8AcwBvAGYAdAAgAE8AZgBmAGkAYwBlACAAVwBvAHIAZCkvUHJvZHVjZXIo/v8AQQBzAHAA
bwBzAGUALgBXAG8AcgBkAHMAIABmAG8AcgAgAC4ATgBFAFQAIAAxADUALgAxAC4AMAAuADApL0Ny
ZWF0aW9uRGF0ZShEOjIwMjExMTI2MDkyODAwWikvTW9kRGF0ZShEOjIwMjExMTI2MDkyOTAwWik+
Pg0KZW5kb2JqDQoyIDAgb2JqDQo8PC9UeXBlIC9DYXRhbG9nL1BhZ2VzIDMgMCBSL0xhbmcoZW4t
VVMpPj4NCmVuZG9iag0KMyAwIG9iag0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