on 12-18-2008 8:54 PM
Hi,
I have a online interactive form in WD ABAP. I want to save this form in background in a spool. For this, I am using methods of the inteface IF_FP_PDF_OBJECT. Here is my code.
Get Template
try.
cl_fp_wb_helper=>form_layout_exists( i_name = p_xdp ).
catch cx_fp_api_usage.
catch cx_fp_api_repository into l_except.
if l_except->textid =
cx_fp_api_repository=>object_already_exists.
l_xdp = cl_fp_wb_helper=>form_layout_url( i_name = p_xdp
i_dest_path = 'X' ).
endif.
endtry.
l_pdfobj->set_template( xftfile = l_xdp ). " Set Template
l_pdfobj->set_data( formdata = lv_pdfstring ). " lv_pdfstring is the pdfsource on adobe UI Element
l_pdfobj->set_task_renderpdf( ).
l_pdfobj->set_task_renderpdl( pdltype = 'pdf'
xdcname = l_xdcname ).
l_pdfobj->execute( ). " Execute
call method l_pdfobj->get_pdl
importing pdldata = out_pdldata
renderpagecount = pdlcount.
For the execute method, I get the exception ADS: com.adobe.ProcessingException: XMLFM Exception - PDF render operation exception, reason code: 0 : InvalidXDPException: Unsupported file format(200101).
Does anyone know what is wrong here?
The error is because of the PDF format is not suitable....
I don't know how to solve this issue in wdabap .... please try with another pdf template if it is possible.
Thanks and Regards
shanto aloor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.