且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用 jsPDF 在服务器端保存 pdf

更新时间:2023-11-27 22:52:28

为其他用户更新我的解决方案:

Updating my solution for other users:

我找到了 jsPDF 的 .output('datauristring') 方法,它返回一个 BASE64 字符串.

I found the .output('datauristring') method of the jsPDF which returns me a BASE64 String.

然后字符串通过 JSON 发送到我支持的 bean 并按照我的意愿进行转换.

Then the String is sent via JSON to my backed bean and converted as my will.