Skip to Content
0
Former Member
Dec 18, 2008 at 08:54 PM

Online Adobe WD ABAP-PDF render operation exception, InvalidXDPException

75 Views

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?