‎2008 Dec 16 12:01 AM
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.
‎2008 Dec 16 1:16 AM
‎2008 Dec 16 3:24 AM
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
.....
‎2008 Dec 16 6:57 AM
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..
‎2008 Dec 16 7:08 AM
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