Read adobe form element

Hello all,
I have an application which must send and receive mail with PDF attachment. The send part is already working. The PDF is created with adobe interactive forms.
The receive of the PDF is partly working. I can get the mail and the PDF source and display the PDF file. But I need the fields on that PDF file to populate 2 badis. I don't know how I can do that.
I use WAS 6.40 SP 18 and developer studio SP 18.
Thanks in advance,
Patrick Willems

Hi Patrick,
It can be done by directly using the PDFObject API, e.g.
  private byte[] getData(byte[] pdf) throws IOException {
    IPDFObject pdfObject = (IPDFObject) WDPDFObjectFactory.getPDFObject();
    pdfObject.setPDF(copy(pdf));
    pdfObject.setTraceLevel(0); // 0 - 4
    InputStream in = pdfObject.getData();
    return in == null ? null : IOUtils.toByteArray(in);
  private ByteArrayOutputStream copy(byte[] in) throws IOException {
    ByteArrayOutputStream out = new ByteArrayOutputStream(in.length);
    out.write(in);
    return out;
This gives you the data.xml that you can parse using a SAX parser.
On the other hand, you say you can display the pdf. I suppose you use an InteractiveForm UI element? Then the fields in the pdf's template are bound to the Web Dynpro context. Isn't the context being populated when you set the value of the <i>pdfSource</i> attribute? Maybe invalidate the <i>dataSource</i> node before setting the value of <i>pdfSource</i>? I don't use this particular scenario and I'm not sure it works.
Kind regards,
Sigiswald

Similar Messages

  • Dimensions of Adobe Form element - dynamic?

    Hi,
    I have a Java WebDynpro Application that contains a ViewSet, with an adobe form in one of the cells. I would like to have the entire Adobe application frame(including the page number at the bottom) dynamically fit within the real-estate available on a given PC, but I am having issues accomplishing this.
    It seems that when defining the form element, it forces you to specify an exact vertical height of the form, say 700px, instead of allowing you to enter 100%, which to me would indicate that it should fill the available vertical space in the grid. When I enter 100% it shows only ~ 1 inch of my form. I can enter a fixed height, but the form displayed may be either too big (a 2nd scroll bar is provided by the WebDynpro in addition to the Adobe scroll bar) or too small (lots of unused space on the screen) for a given pc.
    Are there any tricks for configuring the form to have the height adjusted to the PC screen real estate dynamically? Is this a limitation within the View Set of the WebDynpro?
    Thanks in advance.

    Hi Todd,
    What we did is calculate the height and width based on the resolution of the client screen. Instead of directly accessing the Web Dynpro application via an iView, we merely access a portal application that redirects to the Web Dynpro iView. The portal application passes the screen resolution, obtained by some javascript (<i>screen.height</i> and <i>screen.width</i>), to the Web Dynpro application as URL parameters. Based on that information, the Web Dynpro application can calculate the optimal height of the form. It's far from perfect, but since we open the Web Dynpro application in a new, maximized, screen, it works reasonably well (although the tabs in IE7 do cause some trouble).
    Kind regards,
    Sigiswald

  • Computer won't read Adobe Photoshop Elements 10 disc!

    Tried downloading Adobe Photoshop Elements 10 and the computer is saying its a blank dic. I tried the disc on 2 other computers that are older than mine and it works. Please Help!!!!!!

    Does your optical drive have a DVD symbol on the front of it?  It is possible that you might not have a DVD drive but only a CD drive.

  • How to get Adobe form element

    Hi Guru,
    How can i get adobe element
    Ex: I have one dropdwon List with Name : List1.
    I want get the value of <b>List1</b>.
    Like-----weContext.currentDataElemet.getMaterial();
    like that i need to get <b>List1</b> value. this element is not bind.  dynamically i want take that value of List and need to assign to another field.
    please help little bit urgent.
    Thanks
    Ramana

    Thanks Dvorah, but I don't get it...what do you mean to get the form values with AJAX? The form is in the client side, with AJAX I should issue a Xml request to the server... but the values are in the form... I don't understand your answer... if you could please explain a little bit more I'd really appreciate it. Thanks again.

  • BPM Process with offline adobe forms - NW CE 7.2 SP3

    Hi experts, I have to develop the following scenario and I still don´t know the correct way that I should follow, I have already created the Process Development DC, the XSD and the XDP files, I have also put the XSD and XDP files into portal drive.
    Scenario:
    1 - This scenario should be started by a webservice that will be created too, this webservice have to receive data that will be used in the whole process.
    2 - Call some RFCs on ECC to retrieve data to prefill the off-line adobe form and the e-mail of the external destinations.
    3 - Send adobe form for e-mail to some external destinations.
    4 - Receive and read adobe form by a dedicated e-mail.
    5 - Send each adobe form by e-mail to an internal user that could approve or reject the document.
    6 - Call some RFC to approved documents.
    7 - Send e-mail back to the receivers to notify about the document if it was approved or rejected.

    The problem is that I am trying to model but a lot of doubts about are breaking me, I need some process sample to follow.
    Know I am creating a process model, I have read about the Process Modeling Approaches but still don´t know wich I should use to my model:
    Top-Down Approach
    Bottom-Up Approach
    Inside-Out Approach
    Taking into account that this process starts on ECC and my process will get data from ECC, prefill and send off line adobe forms by e-mail to get external data to send on ECC after it, with approach I should choice ?
    Does anybody have any process model sample to send me ? It will help me a lot.

  • Directing workflow transition based on form element value

    Question 1
    =======
    How can workflow change values in a form element?
    Example: We have an expense aproval form.
    If the form transits from state ManagerA to state Reject, I want the form element Rejected by: to be automaticaly set to value ManageA.
    How ho achieve this?
    Question 2:
    ========
    How can a workflow read a form element and based on the element value automatically transit to other state?
    Example: An expense aproval form is in state ManagerA.
    If a user set the form element Rejected by manually to the value ManagerA, I want the form to be automatically transited from state ManagerA to state Rejected.
    How ho achieve this?

    Originally Posted by dangross
    Answer to question 2 is: Add a transition of type "Transition on Entry Data Value" and configure it accordingly.
    Dangross, thanks for the reply. Yeah, that Transition on Entry Data Value will do the job.

  • Adobe Premiere Elements 4 Crash - Windows Vista

    After approximately 14 to 16 seconds of viewing any .mod video file recorded from my JVC Everio camcorder a Windows error message appears and Adobe Premiere Elements 4 immediately crashes. Is there a patch or fix for such a problem? I have checked that my computer system meets the system requirements and I am unsure what else to do other than returning the software?
    Error message in full reads:
    "Adobe Premiere Elements.exe has stopped working. A problem causeed the program to stop working correctly. Windows will closs the program and notify you if a solution is available"
    My new HP Pavillion (m8075a) computer system includes:
    Intel Pentium D CPU 3.2GHz
    3070 MB (RAM)
    210 GB Free Space C:Drive
    Windows Vista O/S 32-bit
    RealTek HD Audio
    NVIDIA GeForce 7500 Le
    Samsung Monitor SyncMaster 226BW(Digital)
    Any assistance would be appreciated.
    Regards,
    Kim

    My objective is to handle MOD files from a JVC Everio Hard Drive Camcorder with Adobe Premiere Elements 4.0 (PE4) as PE4 crashes after a little while when using MOD or MPG files.
    Sorry Steve but I dont want to use the software that came with the JVC Everio camcorder. I bought PE4 (in euros ...) to use it. By the way MOV files used by QuickTime have nothing to do with MOD files from JVC Everio camcorder! Yes I know, it's confusing.
    After some months of useless forums, reading, hardworking and frustration, I finally found a solution to the problem!! PE5 works quite well and no crashes have occurred so far....
    Here it is. It's not straightforward as you have to use two different free programs but the method is simple to follow.
    1. Transfer MOD video files from the JVC Everio camcorder to the PC.
    2. Convert MOD files into MPEG2 files with the help of a freeware program (I used Converio)
    3. Convert MPG files into DV-AVI files using Free Video Converter.
    This free program is very simple to use and DV-avi files output is compatible with PE4 which is not the case with some other conversion programs.
    As DV-AVI files are not compressed, they are more easily handled by video programs.
    I havent been able to directly transform JVC MOD files into files fully compatible with PE4. If someone knows how to do this, please tell me.
    In conclusion, I feel it is unacceptable that neither JVC nor Adobe offer the compatibility of their products. The information provided by these reputable companies is deceitful for unaware users and sometimes wrong.

  • Adobe Premiere Elements.exe - no disk

    I purchased a copy of Premiere Elements 11 in April, I installed it on my laptop and it worked fine. I just purchased a new dell desktop with windows 8, I uninstalled it on my laptop and installed it on the new desktop. When I tried to create a quick movie I recieved and error that reads "Adobe Premiere Elements.exe - no disk, There is no disk in the drive. Please insert a disk into drive D:"
    I contacted Adobe Support, after everything was said and done. I was told that the dll files on my install disk were corrupt and that I needed to upgrade to a new version for the mire sum of $150.00. Has anyone else run into this ?

    This error seems to be related to SmartSound. Have you ensured that Smartsound and Sonic Fire Pro are properly installed?
    You can download them directly from this page. Just download the free trial of Sonic Fire and you should be all set.
    http://www.smartsound.com/sonicfire/downloads/
    You'll also of course want to make sure that Windows 8 is fully updated and that you have the latest version of Quicktime, per the program's requirements.

  • I am using a Mac OS 10.9 and i can't type into a PDF form. I have adobe reader and another adobe product (adobe photoshop elements 12). Is there a way i can fill out a form and email?

    I have adobe reader and adobe photoshop elements 12. I need to fill out an Adobe form, save it and email. I have tried creating a text box but the formatting is horrible. I need help please.
    Thanks,
    Eunice

    It's a fillable form. I have Adobe Reader version 11.0.07. I was trying to fill the form, save and email. It is a public form and here's the link to the form: http://booksamillioninc.com/public/Revised_w_Gift_Card_info_2014-Donation_Policy_Procedure _and_Request_Form.pdf
    I am unable to click/ type in the fields.
    Thanks!
    Eunice

  • Creation of UI elements on click of a button in ADOBE form

    Hello Experts,
    I have a requirement which is ,
    on the ADOBE form after pressing some action Button i need to create a row of UI elements like Textbox label and Radio button with the values coming from Backend WDA application.
    Number of rows created are equivalent to number of  times button is clicked.
    Also in some cases i have to preload the rows with the existing data.
    Please let me know if this requirement can be accomplished in ADOBE form.
    Any inputs ,Suggestion and help will be very helpful.
    Thanks,
    Siddharth

    Thanks for the help,
    I resolved this by creating elemnts in WD context on click of a button in ADOBE form,And in form i used the WD context structure as a table with required cell editors.
    PDF form should be of type dynamic in this case.

  • Error in Adobe form based in a xml interface when changing data element

    The adobe form is called from a web dynpro.
    The adobe form contain a page and subforms (positioned y flowered).
    The form worked out perfectally.
    Then edited a descriptive text in a data element, from se11.  The form continues worked out correctelly.
    Then modify a fixed text from the form.  The form is activated.
    Since this modification, the form stopped to work out, informing the following message:
    "WebDynpro Exception: The ADS call has failed. You can find information about the cause in the error.pdf on the application server".
    I have updated the nodes of the web dynpro, the xml interface of the form, is all activated and this is still not working.
    Someone could help me? Does anyone know what it could be happened?
    Is there a way to re-generate the form?
    Thanks you very much.
    Regards,

    The data element is char 4.  I have only changed descriptive texts.
    I have take take all the objects to the previous version (data element, wd view, interface xml, adobe form), and the form is still not working.
    Do you have another posible solution for this?
    Thanks you for your answer.
    Kind regards,

  • I want to create a HD disc with my Adobe Premier Elements but I am getting low resolution.  When I go to share the DVD to disc the form only offers 8pixels at the bottom.  How do I burn this DVD in HD with higher number of pixels?

    I want to create a HD disc with my Adobe Premier Elements but I am getting low resolution.  When I go to share the DVD to disc the form only offers 8pixels at the bottom.  How do I burn this DVD in HD with higher number of pixels?  I have read other forums on burning HD DVD's but I do not see the option to turn the 8 pi into 40 pi the one forum recommended.  I want my DVD to be HD so I may sell these videos online for my business.  I can't sell them the low quality they are burning now.  Hopefully you can help me.  Thanks.

    desalvom
    Thank you for your reply.
    You cannot burn your high resolution video that you can view on your computer to an AVCHD on DVD disc
    that will replay through a regular DVD player. But players are marketed under a variety of names with
    different support opportunities. One manufacturer may call its product MultiMedia Player, media player, Blu-ray player,
    etc.The bottom line is the specifications for each of the players that are candidates for the playback of
    the AVCHD format on DVD disc or the format of interest.
    If you upload your HD (1920 x 1080) video to YouTube, YouTube converts the video to flash format, but it goes up as the HD video.
    But, beware. Look at the YouTube viewing setting when your uploaded video is playing back. The YouTube default is not
    HD. It might be 360p, 480p. If you have a 1080p video, then before the YouTube playback, you should be looking
    at the video with the YouTube 1080p HD setting for best viewing. That is a YouTube matter.
    Best results depend on you
    a. setting up the Premiere Elements project preset to match the properties of the source media. That means, if
    you have 1080p source, you (manually) or the project (automatically) set the project preset at
    NTSC
    DSLR
    1080p
    DSLR [email protected]
    or the PAL counterpart, depending on your region need.
    b. if you upload your video to YouTube using the Premiere Elements feature, there is a HD preset, but you cannot
    customize it.....if you need customization, then you can export your Timeline to a file...in this example
    Publish+Share
    Computer
    AVCHD
    with Presets = MP4 H.264 1920 x 1080p30 or PAL counterpart
    and then customize the preset under the Advanced Button/Video Tab of that preset. In increase quality, you might look to increase
    the Bitrate under Advanced Button/Video Tab settings - without compromising the file size.
    Then you would upload that file to YouTube at the YouTube web site.
    All of the above are factors that need looking into in order to determine the why for what you wrote
    I have published a shortened advertisement video to YouTube- say 5 minutes-
    and it is low quality
    Often SD video upscaled to HD can present poorly. But, you are dealing with a HD workflow so that should not be introduced into the matter. The setup of the project and
    the properties of the source video are important, but let us start with the above and rule in or out those considerations first.
    Thank you. As always, any clarification needed, please do not hesitate to ask.
    ATR

  • WD ABAP : Libraries/Elements in Adobe Form Designer

    Hello,
    Could anyone tellme how shall I get elements like 'Hide Reader Toolbar' and 'Submit to SAP' button in Adobe form Designer  when using in Web dynpro ABAP.
    I have installed adobe form designer from Gui 6.40 DVD.
    Regards,
    Ahmad

    This happened to me once.  I lost the entire WebDynpro Library Group. I went into the design and right mouse clicked in the Library Area.  I then added my own Web Dynpro Group.  This should create a directory.  You can see all of these directories in you documents and settings directory under Application Data\Adobe\Designer\<lang>\objects.  For instance mine is: C:\Documents and Settings\i809764\Application Data\Adobe\Designer\en\objects
    I then copied all the files from the WebDynpro directory into the one I had just created.  You could try changing the library Group Properties to point to the correct location.  If you are  just missing some of the elements, check the same directory and make sure their XFO files are there.

  • Cannot Read user input on Adobe Form .

    Hi team,
    Can you please go through the issue -
    Developed Interactive Adobe form. Called by webdynpro application.
    Interactive properties enable, display type - native, with pdfsource, template source and data source cleanly populated.
    Submit button is webdynpro native with option CLICK and corresponding code selected in ADOBE FORM.
    All the elements in adobe forms cleanly binded and checked more than 10 times to avoid any mistakes or wrong bindings.
    Event handler code is written for submit button to read the data eneted by user on adobe form.
      lo_el_zleaver_form->get_static_attributes(
        IMPORTING
          static_attributes = ls_zleaver_form ).
    User is able to enter data on adobe form and control is comming to Submit button code but i am not able to read the user input with above code.
    BASIS has check and confirmed that license is installed properly. I am using adobe reader 9 and adobe designer 8.2 and will ECC version 6.0 . Basis has confirmed the ADS configuration, Java stack and ABAP stack are compatible.
    We are using the ADS from SAP NetWeaver 7.01 (EhP1, Java Stack) in
    combination with SAP NetWeaver 7.00 SP15 (ABAP stack).
    Mohan.

    Hi Guys,
    I also created one more Adobe interactive form to test and again USER INPUT CANNOT BE READ. After user click on SUBMIT button the below code is written in SUBMIT button. I am not able to read department details below enteted by user. Is there any othe method you want me to call. I also tried GET_ATTRIBUTE
    Will there be any problem with above version of ADS or ALD etc..
          DATA lo_nd_zdept TYPE REF TO if_wd_context_node.
          DATA lo_el_zdept TYPE REF TO if_wd_context_element.
          DATA ls_zdept TYPE wd_this->element_zdept.
        navigate from <CONTEXT> to <ZDEPT> via lead selection
          lo_nd_zdept = wd_context->path_get_node( path = `ADOBE.ZDEPT` ).
        @TODO handle non existant child
        IF lo_nd_zdept IS INITIAL.
        ENDIF.
        get element via lead selection
          lo_el_zdept = lo_nd_zdept->get_element( ).
        @TODO handle not set lead selection
          IF lo_el_zdept IS INITIAL.
          ENDIF.
        get all declared attributes
          lo_el_zdept->get_static_attributes(
            IMPORTING
              static_attributes = ls_zdept ).
    This is other interactive form where i also tried GET_ATTRIBUTE
    USING GET_ATTRIBUTE***************
      node_info = lo_nd_zleaver_form->get_node_info( ).
    I tried both GET_ATTRIBUTE and GET_ATTRIBUTES but failed.
      node_info->GET_ATTRIBUTES(
      RECEIVING
      ATTRIBUTES = stru_zleaver_Forms ) .
    OR
    lo_nd_zleaver_form = WD_CONTEXT->GET_CHILD_NODE( NAME = WD_THIS->WDCTX_ZLEAVER_FORM ).
      lo_EL_zleaver_form->GET_ATTRIBUTE( EXPORTING NAME  = 'LEAVES_TAKEN'
                               IMPORTING VALUE = LW_LEAVES_TAKEN ).

  • Reading data from pdfsource of adobe form

    Friends,
    This error pertains to the retrieving data when executing the WDA application.
    System details: NetWeaver 2004s. ADS support pack 16.
    The Adobe Livecycle Designer version: 7.1.3129.1.296948
    The Adobe Reader version: 8.1
    The SAP GUI version: 710.
    The Web Dynpro component is active.
    The Custom Adobe Form is active and is of ZCI layout type. I also inserted the Web Dynpro Script in the layout of the form.
    The Custom Form Interface is active and is of XML Schema-Based Interface type. The XML schema source is generated.
    The Adobe form has been included as an InteractiveForm UI element in the MAIN view of the WD Component. The displayType property of the InteractiveForm UI Element has been set to "native" and enabled property of the form is checked.
    I have included an attribute of type XSTRING called 'USERDATA' under the root context node and set it as pdfsource for the adobe form UI element.
    I have included the "Submit" button from web dynpro native library in the form.
    I have created a event handler method for the "onSubmit" event of the Adobe form UI element. I have created a reference to the context node 'ZECR' that is the datasource for the adobe form, through the following lines:
    data: noderef type ref to if_wd_context_node,
    eleref type ref to if_wd_context_element.
    noderef = wd_context->get_child_node( name = 'ZECR' ).
    when i run the WDA application, i am getting the error:
    Subnode MAIN.USERDATA does not exist
    Please let me know to rectify this error.
    I am not sure how to proceed further ie how to retrieve the data from the XSTRING attribute. I need to populate the data from the attribute to a customized table.
    Any hints or help would be greatly appreciated.
    Thanks and Regards.

    Hi Mahesh,
    I got the code from wizard using Read Context and selected the node.
    The error is removed.
    Here is the code in the onSubmit event handler method:
      DATA lo_el_context TYPE REF TO if_wd_context_element.
      DATA ls_context TYPE wd_this->element_context.
      DATA lv_userdata LIKE ls_context-userdata.
    get element via lead selection
      lo_el_context = wd_context->get_element(  ).
    get single attribute
      lo_el_context->get_attribute(
        EXPORTING
          name =  `USERDATA`
        IMPORTING
          value = lv_userdata ).
    I understand data has to be read from lv_userdata parameter using a function module. Is there any standard function module for the same and what are the steps for the process.
    Any hints or help would be greatly appreciated.
    Thanks and Regards.

Maybe you are looking for

  • Error 1003 when running .exe

    I am having a problem with error 1003 when I run a built application.  I have searched the forums and found many others with this problem, but they encounter the problem while building the application, not while running the built .exe. I have a top l

  • Unable to share, export or drag and drop

    iPhoto Application (problems just started) 1)Can't drag and drop from library to desk top 2)Unable to share or export 3)If library photo is double clicked I get a black frame with a "caution" symbol with ! point in center 4)In the picture menu bar th

  • Can you rewind while viewing using your Apple TV remote?

    Can you rewind while viewing using your Apple TV remote?

  • Instant messaging

    Hi All, This Question is Just for General knowledge, Is there any way of sending a Instant message from a R/3 client to a BW client. I heard there are some sendings ,thru which v can send message from Cross clients ( r/3 to bw and vice versa) The mes

  • Array treatment in XSLT

    Guys, I have a XML like: <root> <people> <name>John</name> <name>Peter</name> </people> <ID> <personalID>001</personalID> <personalID>002</personalID> </ID> </root> I need to order these people's names and IDs in person tags in target XML, like: <peo