Skip to Content

HowTo extract data form uploaded PDF-Object

i have an uploaded PDF and want to extract the data of this Object to make an rfc-call and update the date at a backend system.

I have looked through the Help-files (api) and found the Interface IWDPDFObject, but in my DevStudio Vers. 2.0.6 i cant find the classes.

So, at the moment i don't know how to read the fields out of a PDF-Object (the node) and fill my update structure.

Thanks for help !



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Nov 22, 2004 at 04:28 PM

    Hello Jürgen,

    you will receive that data XML from the PDF with:

    IWDPDFObject pdfObject = WDPDFObjectFactory.getPDFObject();


    InputStream data = pdfObject.getData();

    Then it is up to you to parse it and to move data into your data structure.

    If the Web Dynpro context fits to the data structure of your PDF, you can use the InteractiveForm with mode "usePDF" and display the PDF online. In that case, the update of Web Dynpro context happens automatically.



    Add a comment
    10|10000 characters needed characters exceeded

    • Hallo Ju00FCrgen,

      it seems, that you have to patch your IDE to get the APIs:

      find the jar under a patch like C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\services\webdynpro\webdynprolib\_webdynpro_pdfobject.jar and copy it to your IDE into C:\Program Files\SAP\JDT\eclipse\plugins\\lib.

      Your paths maybe a little bit different dependent of your installation. With a later IDE version, this is not necessary.

      Most likely the PDF does not update the context automatically because it was not changed after the uploaded. In this case, the document would not be sent. Can you double check whether I'm right by changing a value before submit? If that helps, stack 10 will contain a fix. If not, please post in SDN again and we will see.



Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.