如何在Lightning组件中将base64字符串显示为pdf

时间:2019-06-03 14:28:47

标签: salesforce salesforce-lightning

我有一个要求,我需要在Lightning组件中将Base64字符串显示为PDF,而不必将该字符串另存为Salesforce中的文件或附件。

1 个答案:

答案 0 :(得分:0)

您可以使用可以在客户端生成PDF的第三方JavaScript库。

带有jsPDF

的示例

定义Blob并插入// php code here creating $images echo '{ "images": "'.$images.'" }'; 中:

<iframe>