cancel
Showing results for 
Search instead for 
Did you mean: 

Online Adobe WD ABAP-PDF render operation exception, InvalidXDPException

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

I did try with another template too. I get the same error again. For testing purposes, I created a very simple form but still get the same error. Is there any other way to write a spool?