将后端`pdf-stream`转换为pdf文件并保存到本地系统

时间:2017-10-21 03:56:57

标签: jquery pdf

我从后端服务器获得pdf-streat作为响应。我需要将此stream转换为pdf文件,并要求允许用户保存在本地计算机上。怎么做?

这是我收到的回复:

    "pdf-stream": "JVBERi0xLjQKJeLjz9MKMyAwIG9iago8PC9MZW5ndGggMzcwL0ZpbHRlci9GbGF0ZURlY29kZT4+c3RyZWFtCniclZPNUsIwFIX3eYq7xAXxJmn6s1SQwVHHUfsCxYaCQ9OhpAvf3pLbgYJ1hFXTycm535yTbNl9ylQIMYaQ5kxK5BrGwv/czgQkkC4ZggCEumCjd7NtzM7BR7Mo186Z/Cb9arcLNqaT6E10wmPVupCJBCH3LiPYi8fdLillyFXcnxf7eTzSMgng/EsES1Mb+2nANuXC1D0A70W+GHGhjr4HBBFhLEIhVTLXGGFARKT+zT5ELALeul5H7DMzOTxXmYW7smqsO2KTIZkr5EEygD1/mrZLJSTxkOwyXql4y3EN76PduWxTGutg2tSZW1e2F7K362g1F3ooZHyprFvtOlivugwWY9q/HNZP2nxDD/o8YDKlAYE8aa8fsEDiIUlXdsTxuvBerYF0XRqYZzbfrG0BM2N6ZXvDQ3x/lZ3goWp9rFqJ07f5L8xkldVFy1PBJKt7T9UbdddD8CAa7LC9ZUkcBTpUREJKf+ohZW/sB0yn86gKZW5kc3RyZWFtCmVuZG9iago1IDAgb2JqCjw8L1R5cGUvUGFnZS9NZWRpYUJveFswIDAgNTk1IDg0Ml0vUmVzb3VyY2VzPDwvRm9udDw8L0YxIDEgMCBSL0YyIDIgMCBSPj4+Pi9Db250ZW50cyAzIDAgUi9QYXJlbnQgNCAwIFI+PgplbmRvYmoKMSAwIG9iago8PC9UeXBlL0ZvbnQvU3VidHlwZS9UeXBlMS9CYXNlRm9udC9IZWx2ZXRpY2EtQm9sZC9FbmNvZGluZy9XaW5BbnNpRW5jb2Rpbmc+PgplbmRvYmoKMiAwIG9iago8PC9UeXBlL0ZvbnQvU3VidHlwZS9UeXBlMS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