Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error while converting RTF to PDF

Former Member
0 Likes
1,532

Hi,

I have got a requirement to convert .rtf file to .pdf file while downloading. The .rtf file is in application server. I have used the FM CONVERT_RTF_TO_ITF to convert to ITF format. After this I am using the FM CONVERT_OTF to convert it to pdf format. But in this step I m not getting the pdf format file. I am getting an exception 'ERR_BAD_OTF'. Is there any other step in between after converting to .itf format and convert_otf. Can any one please help me on this.

Thanks & Regards,

Rama.

4 REPLIES 4
Read only

Former Member
0 Likes
1,052

wrong post.

Read only

Former Member
0 Likes
1,052

Hi,

Use the FM's in the following order :

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = lc_formname
IMPORTING
fm_name = v_fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.


CALL FUNCTION v_fm_name
EXPORTING
.....

IMPORTING
job_output_info = gt_job_output 
....



CALL FUNCTION 'CONVERT_OTF_2_PDF'
IMPORTING
bin_filesize = v_bin_filesize
TABLES
otf = gt_job_output-otfdata
.....

Read only

0 Likes
1,052

Hi Prashant,

Thank you for the reply.. But I m not using a form ... I need to convert a .RTF file in application server to .PDF file and not a form,.. Any help on this ,,?

Thanks&Regards,

Rama..

Read only

former_member404244
Active Contributor
0 Likes
1,052

Hi,

First convert RTF to OTF by fm CONVERT_RTF_TO_ITF ,and then use the FM 'CONVERT_OTF_2_PDF ' and see.

Regards,

Nagaraj