cancel
Showing results for 
Search instead for 
Did you mean: 

Converting PDF forms- Runtime Exception

Former Member
0 Kudos

I am working in Adobe Forms, trying to convert Adobe forms into XML data.

Doing this by creating Adobe objects and using the below methods

lo_pdfobj = lo_fp->create_pdf_object( connection = 'ADS' ).

lo_pdfobj->set_document(EXPORTING pdfdata = lv_buffer ).

lo_pdfobj->set_extractdata( ).

lo_pdfobj->set_task_extractdata( ).

lo_pdfobj->execute( ).

Getting run time exception in the execute( ) method as below

u201C ProcessingException: PDF is not an interactive form. Data cannot be exported from it. u201C

For any pointers or help Really Appreciated.

Thanks

James.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Raju,

Still I am getting the Exception as below

Processing exception during a "GetData" operation.#Request start time: Wed Jul 01 03:13:35 CDT 2009#com.adobe.ProcessingException: PDF is not an interactive form. Data cannot be exported from it.##Exception Stack Trace:#com.adobe.ProcessingException: PDF

Former Member
0 Kudos

Hi,

Try with this code.


 FORM get_xml_data .
 * To get XML data
 * Get FP reference
 DATA:
 lo_fp TYPE REF TO if_fp VALUE IS INITIAL.
 lo_fp = cl_fp=>get_reference( ).

 TRY.
 * Create PDF Object using destination 'ADS' (<-- this is how it
 * defined in SM59)
 DATA:
 lo_pdfobj TYPE REF TO if_fp_pdf_object VALUE IS INITIAL.
 lo_pdfobj = lo_fp->create_pdf_object( connection = 'ADS' ).
 * Set document
 lo_pdfobj->set_document(
 EXPORTING
 pdfdata = fs_pdfdata ).
 * Tell PDF object to extract data
 lo_pdfobj->set_extractdata( ).
 * Execute the call to ADS
 lo_pdfobj->execute( ).
 CATCH cx_fp_runtime_system INTO exc.
 xslt_message = exc->get_text( ).
 ENDTRY.
 lo_pdfobj->get_data(
 IMPORTING
 formdata = xml_data ).
 ENDFORM. " get_xml_data

Regards,

Raju.