使用 ABAP 和 JavaScript 代码生成 PDF 文件的几种方式

ABAP
方法 1:使用 ABAP + Adobe Lifecycle Enterprise Service

详细步骤参考我的博客Convert word document into PDF via Adobe Livecycle Enterprise service

方法 2:使用 ABAP Webdynpro 里的 InteravtiveForm 控件 + Adobe Form Template


详细步骤参考我的博客Another way to preview PDF in CRM web client UI with little coding

方法 3:使用 CRM content management 的 PDF template

具体参考我的博客Create Webservice enabled Adobe PDF attachment in CRM Application.
方法 4:利用 ABAP 代码手动生成 PDF 的二进制内容

具体参考我的博客Export WebClient UI table to PDF
方法 5: 利用 SAP Cloud for Customer(C4C)里 Cloud Application Studio 的 Print Form 功能


具体步骤参考我的博客Step by Step to create an Adobe Print form in Cloud application Studio.
JavaScript
参考我博客里的这个例子:http://jerrywang.vip/jerry_test/pdf.html
点击按钮 Generate PDF 后,会调用开源 JavaScript 库 jspdf.debug.js,将下图中的这段高亮的段落文字转换成 PDF 文件。

要获取更多 Jerry 的原创技术文章,请关注公众号"汪子熙":

版权声明: 本文为 InfoQ 作者【Jerry Wang】的原创文章。
原文链接:【http://xie.infoq.cn/article/adb3ff58775bf07ee3616ba1b】。
本文遵守【CC-BY 4.0】协议,转载请保留原文出处及本版权声明。
评论