on 07-01-2009 7:15 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.