SAP ABAP编程 OTF转换成PDF
2016-03-10 15:32
253 查看
FORM frm_cover_file .
t_otf[] = t_otfdata-otfdata[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = w_bin_filesize
bin_file = bin_file
TABLES
otf = t_otf
lines = t_pdf_tab
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 4.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = bin_file
IMPORTING
output_length = g_blob_length
TABLES
binary_tab = gt_blob[].
ENDFORM.
t_otf[] = t_otfdata-otfdata[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = w_bin_filesize
bin_file = bin_file
TABLES
otf = t_otf
lines = t_pdf_tab
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 4.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = bin_file
IMPORTING
output_length = g_blob_length
TABLES
binary_tab = gt_blob[].
ENDFORM.
相关文章推荐
- leetcode 215. Kth Largest Element in an Array | Java最短代码实现
- java反射给实体类赋值
- 为JDK增加新的jar包
- 5.C语言之函数
- Ubuntu vbox虚拟机和win系统建立共享文件夹
- Java多线程基础:进程和线程之由来
- python环境配置
- asp.net MVC 添加验证最优方式
- 我们编程吧 之 C++学习手册v0.1
- WordPress 单页面上一页下一页的实现方法【附代码】
- C++stringstream的clear()清空误区
- DLL文件生成 预编译代码
- Django学习随手记(五)
- php实现无限级分类查询(递归、非递归)
- JAVA 异常处理机制
- Spring 注解学习手札(二) 控制层梳理
- 安装 Yii
- java 中的this 关键字的用法
- Spring 中如何向 Bean 注入系统属性或环境变量
- zendstudio中加入对tpl文件的支持,用HTML Editor编辑器编辑