Conversion of an Adobe XSTRING to XML

Hi All,
I m working on an Interactive Adobe form and I have bound the pdf_source of the Interactive Form to an attribute which is of type XSTRING. Is there a function module through which I can convert this binary form of data to an XML.
I am currently displaying the value of this attribute in a text edit control and it appears to be in hex format.
Any hints will be greatly appreciated
Best regards,
Sudhi

Ok now I managed to get somewhere I used the following code:
METHOD ONACTIONCONVERT .
  DATA:
    ELEM_CONTEXT                        TYPE REF TO IF_WD_CONTEXT_ELEMENT,
    STRU_CONTEXT                        TYPE IF_ADOBEVIEW=>ELEMENT_CONTEXT ,
    ITEM_PDF_SOURCE                     LIKE STRU_CONTEXT-PDF_SOURCE,
    XML_TAB TYPE TABLE OF SMUM_XMLTB.
get element via lead selection
  ELEM_CONTEXT = WD_CONTEXT->GET_ELEMENT(  ).
get single attribute
  ELEM_CONTEXT->GET_ATTRIBUTE(
    EXPORTING
      NAME =  `PDF_SOURCE`
    IMPORTING
      VALUE = ITEM_PDF_SOURCE ).
  DATA:
    ITEM_STRING                         LIKE STRU_CONTEXT-STRING,
    IXML TYPE REF TO IF_IXML,
    DOCUMENT TYPE REF TO IF_IXML_DOCUMENT,
    STREAMFACTORY TYPE REF TO IF_IXML_STREAM_FACTORY,
    ISTREAM TYPE REF TO IF_IXML_ISTREAM,
    PARSER TYPE REF TO IF_IXML_PARSER,
    I_ELEMENT TYPE REF TO IF_IXML_ELEMENT,
    INT TYPE I,
    COUNT TYPE I,
    P_ERR TYPE REF TO IF_IXML_PARSE_ERROR,
    S_ERR TYPE STRING.
get element via lead selection
  ELEM_CONTEXT = WD_CONTEXT->GET_ELEMENT(  ).
*-- create the main factory
  IXML = CL_IXML=>CREATE( ).
*-- create the initial document
  DOCUMENT = IXML->CREATE_DOCUMENT( ).
  STREAMFACTORY = IXML->CREATE_STREAM_FACTORY( ).
  ISTREAM =
     STREAMFACTORY->CREATE_ISTREAM_XSTRING( ITEM_PDF_SOURCE ).
  PARSER = IXML->CREATE_PARSER(
           STREAM_FACTORY  = STREAMFACTORY
           ISTREAM         = ISTREAM
           DOCUMENT        = DOCUMENT ).
  CALL METHOD PARSER->PARSE
    RECEIVING
      RVAL   = INT.
  CALL METHOD PARSER->NUM_ERRORS
   EXPORTING
     MIN_SEVERITY = 3
    RECEIVING
      RVAL         = INT.
  COUNT = 0.
  DO INT TIMES.
     CALL METHOD PARSER->GET_ERROR
       EXPORTING
         INDEX        = COUNT
        MIN_SEVERITY = 3
       RECEIVING
         RVAL         = P_ERR
     COUNT = COUNT + 1.
     CALL METHOD P_ERR->GET_REASON
       RECEIVING
         RVAL   = S_ERR.
     CONCATENATE ITEM_STRING S_ERR INTO ITEM_STRING SEPARATED BY SPACE.
    ENDDO.
get single attribute
  ELEM_CONTEXT->SET_ATTRIBUTE(
    EXPORTING
      NAME =  `STRING`
      VALUE = ITEM_STRING ).
ENDMETHOD.
But this returns me an error saying that "unexpected symbol: '<' "
I am not sure where to correct this...
Best regards,
Sudhi

Similar Messages

  • How can I convert .pdf file to .doc using the free adobe reader app? when I try to convert the .pdf file it asks me to sign in. when I click on "sign in", I am taken to a service subscription page. So, no free conversions using free adobe reader app?

    how can I convert .pdf file to .doc using the free adobe reader app? when I try to convert the .pdf file it asks me to sign in. when I click on "sign in", I am taken to a service subscription page. So, no free conversions using free adobe reader app?

    As has been mentioned Adobe Reader cannot export PDF page content. Nor can it create PDF or manipulate PDF page content.
    What you can do is use one of Adobe's online subscription services. Two provide for PDF  to Word export.
    There's ExportPDF and PDF Pack.
    Be well...

  • Adobe LiveCycle Dynamic XML forms & Apple iPad

    Are Adobe LiveCycle Dynamic XML forms viewable/useable by Apple iPad and Apple phone or other mobile devices? 

    According to Adobe, you can with LiveCycle ES4. At least, that's how I read their blog post on ES4 Mobile forms support.
    Of course, there have been several discussions started about this in the Adobe forums.
    Re: Unable to view the form in Mobile which was created using LiveCycle
    Re: I created a form using Adobe Livecycle, but I cannot open the form on Ipad or Samsung tablet pc.
    Re: Trouble using form on Android and/or iOS devices
    Re: help help...Making existing livecycle fillable form mobile(ios/android adobe reader) compatible
    Hope these help.

  • Pdf conversion limitation in Adobe X

    Is there option to use an earlier version?
    After downloading Adobe X (described as "free") found that it only permits 5 pdf conversions.  $9.99 per month thereafter.
    My usage is limited but could exceed 5 conversions.
    While Adobe X is great, I don't need all the bells and whistles and would like to use an earlier version.

    Adobe Reader, a free download, does not provide any convert to PDF function.
    A link for download of Adobe Reader is at: http://www.adobe.com/downloads/
    A free account at acrobat.com does provide a limited number of "convert to PDF".
    The acrobat.com related forum is at: http://forums.adobe.com/community/acrobatdotcom
    Be well...

  • Save Adobe Form as XML

    Hello,
          I am ABAPer and wanted to know if there is a way I can save the Online Adobe Form as XML using the SUBMIT button? Can I convert the Online Adobe Form as XML file using JAVA Script and then save it at at maybe a default location?
    Regards,
    Shishir.P

    Otto,
           Let me take through step by step:-
    1.  I am working on SAP Version that does not support dynamic tables. Hence the when I convert the Adobe form into PDF  content extracted in SAP Web dynpro, the PDF content does not have data entered in Dynamic Tables. To read dynamic tables the SAP system will have to undergo a ABAP kernel upgrade which is not possible at this time.
    2.  I had come up with a concept that using JAVA Script if I could convert the live Online Adobe Form into XML using the SUBMIT button on the form and then store it in one of the invisible fields on the form itself or maybe at remote location in desktop / application server.
    3.  This would be picked up once again by the ABAP Web dynpro and this file would contain the data entered by the User, I could then read the data in Web Dynpro for ABAP and process it further.
    4.  Well this is just an Idea and I am not sure if this can be implemented, please let me know if anything of this sort is possible, please excuse me if this sounds weird as my knowledge of JAVA is limited.
    Regards,
    Shishir.P
    Edited by: Shishir Paltanwale on Apr 27, 2010 2:28 PM

  • Adobe Form with XML interface cannot retrieve all data from SAP

    hi all
    I want to use the Adobe forms for the real estate module.
    I had seen that adobe forms can have an interface with XML input and output as parameter.
    In the interface type only the /DOCPARAMS an the DOCXML are INPUT parameters which are available.
    No other INPUT parameter can be added to it.
    When i try to retrieve the data in real estate there are some default function modules for retrieving the data from real estate.
    But this function modules also are going to find out if the form which asks for this information has a IMPORT parameter
    for the required data. For example, the SENDER data is retrieved, but before the default function module retrieve this data
    the function module checks if the form has a INPUT parameter SENDER.
    And that is not the case. And i cannot create the SENDER parameter to it, because this INTERFACE type does not allow it.
    Does anybody know a solution herefore?
    kind regards,
    Anton Pierhagen

    Hi Bhaskar
    It is a long time ago, almost 2 years.
    I created my own custom development for calling the Adobe form. This custom development uses the correct function module interface with the IMPORT XML.
    The XML which i sent as IMPORT PARAMETER to the form is also created by own custom development. Via the default XML class of SAP
    So that was my solution
    Kind regards,
    Anton Pierhagen

  • Adobe Form with XML interface

    hi all
    I want to use the Adobe forms for the real estate module.
    I had seen that adobe forms can have an interface with XML input and output as parameter.
    In the interface type only the /DOCPARAMS an the DOCXML are  INPUT parameters which are available.
    No other INPUT parameter can be added to it.
    When i try to retrieve the data in real estate there are some default function modules for retrieving the  data from real estate.
    But this function modules also are going to find out if the form which asks for this information has a IMPORT parameter
    for the required data. For example, the SENDER data is retrieved, but before the default function module retrieve this data
    the function module checks if the form has a INPUT parameter SENDER.
    And that is not the case. And i cannot create the SENDER parameter to it, because this INTERFACE type does not allow it.
    Does anybody know a solution herefore?
    kind regards,
    Anton Pierhagen

    I've found a own workaround for this problem

  • What's the best DIVX file conversion solutions for Adobe Premiere Pro CS4, Windows XP OS.

    I am on a PC with CS4 Adobe Premiere Pro using XP OS.
    I have VIO POV 1 (helmet cam) footage that I need to edit within my CS4 project.  The Footage is DIVX MPEG4 AVI and Premiere doesn't recognize the video.  I need to figure out the best conversion to maintain the highest quality format that Premiere will recognize.
    What is your best recommendation on how to convert (and what format to convert to to maintain the best quality) and can you recommend a good converter program?  Free perhaps if I don't have to buy one.
    I have spent days looking for a solution and reviewing posts but to no avail.  I have tried MPEG Streamclip, Virtual Dub, Digital Media Converter, Prism and many selected others.
    -MPEG Streamclip doesn't seem to recognize the DIVX files (even after the 3IVX codec installed)
    -Digital Media Converter (free watermarked version) seems to work to produce the DV AVI files (type II) but the quality is pretty low so not really wanting to pay $50 to use the low quality conversion -does the converter program have much to do with the quality of the output?  It also produces a MPEG2 that seems a little better quality than the DV AVI file it produces.
    -Prism does convert to a high quality AVI file that does output a really high quality file that plays in Media Player (latest version) but not in Premiere Pro CS4. Prism also converts to a WMV (windows media vid) that I can use on PP but is not quite the quality of the above noted AVI.  This may be my best option???? Or is it a bad idea to use a compressed codec as wmv to edit and eventually output for the complete PP movie?
    http://www.nchsoftware.com/prism/index.html
    Any insight is very much appreciated. I must get on with my editing project!!! Thanks,
    Aaron.

    Jeff, thanks so much, but I'm still not quite there!  Agreed, codec packs can be dangerous but apparently the DIVX one is OK!
    So I downloaded the DIVX pack, and the VirtualDub did work and converted via VirtualDub to AVI,... then tried in PremierePro.  Again no luck viewing... sound OK but the video freezes on the first frame or two.  I can view those outputs in MediaPlayer or DIVX player though. So I tried rerunning the UT codec installer and the logarith but still can't view the outputs from VirtualDub in PP.
    I tried (in VirtualDub) converting the previously converted AVI file I did in Prism converter and again, can see the output in PP (still minor artifacts here and there though).
    ?Maybe I should just be happy with a the DIVX converted to a .wmv file but I think I will be sacrificing quality on already pretty grainy footage that I'm inserting into a largely HD film project so kinda shotty?
    Any more suggestions? The help is greatly appreciated!
    Aaron.

  • How to print an adobe form with xml interface in r3

    I have a Web dynpro application that creates an ADOBE form using an XML schema interface.
    I need to be able to print the same form in R/3 - is this possible? If so how do I create the interface?
    Thanks

    Hi,
    I am not sure if I understand your question correctly. The following NetWeaver documentation might be useful for you https://help.sap.com/saphelp_nw04s/helpdata/en/a1/40aac795a243cebdcff368491c659e/frameset.htm Check section Example: Calling Forms in an Application Program. You need to get a name of the corresponding FM using FM FP_FUNCTION_MODULE_NAME.
    Regards

  • Adobe Flex with xml creates cache problems....Need help

    Hi,
    I have created a qoute calculator in flex and the data's are pulled from an xml file, but when I upload these to server and when new xml file with new data is uploaded the application is showing with same old data.
    Every time I have to change the xml and have to run the application one again to get new updated data.Following way I am connecting the xml file.
    I have read in many places that by giving random time function will clear this cache so I tried and even that also not working for me.
    Please, looking for an urgent help .
    ..................Code.................................
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete=" initComponent()"  layout="absolute" width="640" height="516" backgroundColor="#FFFFFF"  >
    private function initComponent():void
                     var url:String = "data.xml?blabla="+new Date().milliseconds+";";
                    var d:Date = new Date();
                   xmlURL = url + "?" + Math.random();
                   items.source=xmlURL;
    <mx:XML id="items" source="data.xml" />
    <mx:HTTPService id="xmlDataList" url="{xmlURL}" />   

    try adding a datadump to your HTTPService; POST some irrelevant data, this will force the service to run without caching

  • Adobe Flash Cs4 : xml parsing fatal error invalid document structure line 1 file

    Hi there.. Well, this is in the title.. I got a problem with adobe flash cs4 : I can't launch it normaly and its says that a fatal error has occured.. I really don't know what I must do.. Please, help me.... I've just lost like 3 or 4 files of adobe by trying to reinstall it.. Help me please..
    ** My tools are now invisible **

    Say do you have a designer.xml file

  • Loading audio into Adobe Edge via XML issue

    I am having an issue linking the location of an audio file via XML in Adobe Edge. I am able to get the info and post it as text, however I can not get it to load into the audio player. This is my first try at code ever, nothing too complex if possible.
    Here is the code that works along with the part I can not get to work.
    var fromName;
    var outputField = $(this.lookupSelector("xmlOutput"));
    $.ajax({   
        type: "GET",
        url: "edgesound.xml",
        dataType: "xml",
        success: function(xml) {
            fromName = $(xml).find('audio1').text();       
            outputField.html(fromName);    
        var newSound = new Audio();    
         newSound.src = "sound.mp3";
         newSound.volume = 0.5;
         sym.$("soundBtn").toggle(
    function(){
         newSound.play();
         sym.$(this).html('stop'); },
    function(){
         newSound.pause();
         sym.$(this).html('restart'); });
    // XML Try below   
         var newSound_xml = new Audio();    
         newSound_xml.src = "fromName";
         newSound_xml.volume = 0.5;
         sym.$("soundBtn_xml").toggle(
    function(){
         newSound_xml.play();
         sym.$(this).html('stop'); },
    function(){
         newSound_xml.pause();
         sym.$(this).html('restart'); });
    And here is the simple XML doc being called
        <?xml version="1.0" encoding="utf-8"?> <ax>  <audio1>sound.mp3</audio1>  </ax>
    I've also tried taking the .mp3 out of the xml and trying the following in the code with no success.
    newSound_xml.src = "fromName" + ".mp3";
    Thank you and here is a link to demo what I have so far.
    http://www.projectcog.com/audio/xml_audio.html

    Hi Exports,
    I am able to load directly from XML file to oracle tables. I am also successfully reverse engineer the XSD file into oracle relational structure but after that I don't know how to assign XML data file to the schema and load to oracle table
    Can you explain me the steps how to assign XML file to the schema (created from XSD ) and load to oracle table. which KM to use to load from XSD to oracle.
    Thanks,
    Mano

  • Total adobe muse site xml for blogger ?

    Hi i created a site using adobe muse and my website is hosted on blogger ..The problem is whenever i exported the adobe muse project as html there is no xml for the whole site ..and i dont know what to upload to the blogger ...since there is no ftp option for the blogger ..i dont know what to do ..Help would be appreciated.thankyou

    Hi
    If site is exported as html and saved then it should include sitemap xml file, In case its not working , Please try to re-export and check.
    Regarding uploading the site to Blogger , they have a migration tool which helps you to redirect the urls, so please try that option.
    If you need more details about Migration Tool, please check Bloggers forums as there are many users using the same tool.
    Thanks,
    Sanjit

  • Conversion of MyXML to MS Porject XML

    Hi,
    I have my xml file. And i want to convert it into ms project xml file. I have all data in my xml which required in ms project xml. I am working on it. But is very complex work. Is there any way to do? Or any one did this before?
    Thanks in advance

    Hi,
    Microsoft Project XML schema is quite complex and awkward to use, particularly if your requirements are simple. You may find it helpful to look at using
    MPXJ. This provides a standard API which can read and write various Project related file formats, including MSPDI (the Microsoft Project XML format).
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    If you have further question, I recommend you post to Project Dev forum:
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=project2010custprog&filter=alltypes&sort=lastpostdesc
    Regards,
    George Zhao
    TechNet Community Support

  • Where is "adobe bridge keywords.xml" located on mac (using CS5)?

    I just installed Photoshop to work from home, and I'm trying to set up my (rather extensive) keywords list. Other discussions have identified the place for this file as '~/Library/Application Support/Adobe/Bridge CS5' but that directory does not exist for me - the Adobe directory is missing. There is a 'Bridge CS5.1 Extensions' directory, but there is no place within it for this file.
    Does anyone know where I should put this file?
    Thanks!

    '~/Library/Application Support/Adobe/Bridge CS5' but that directory does not exist for me - the Adobe directory is missing. There is a 'Bridge CS5.1 Extensions' directory, but there is no place within it for this file.
    You are looking in the wrong library, that file is in the system library at root lever. You have to look in your user account library (the ~ means your 'user name').
    Some other observations, You say you have CS5 but Bridge CS5.1 Extensions points to CS5.5. Not a big deal but that means you should also have a Bridge CS5.1 folder in the App support at user level.
    (It is a bit of a mix up with all different versions of apps in the CS suite. PS is at number 12 and comes with CS5. Bridge is at version 4 in CS5. They made an update for the whole Adobe suite and called it CS5.5. Inhere PS 12.1 and Bridge 4.1. The call some parts CS5.1. Hope you still with me here... :-0 )
    And I suspect that you are already on OSX 10.7 Lion and that means by default your user library is hidden. To show it can be done in multiple ways, fastest way is to google on user library and OSX lion

Maybe you are looking for

  • DB Connect DataSource PSA records and DSO records are not matching...

    Dear All, I'm working with SAP NetWeaver BW 7.3 and for the first time, I have loaded from Source System DB Connect. I have created a DataSource and pulled all records and found 8,136,559 records in PSA. When I designed and created DSO with Key Field

  • Cisco ASA 5505, Cisco VPN Client and Novell Netware

    Hi, Our ISP have installed Cisco ASA 5505 firewall. We are trying to connect to our Novell 5.1 server using VPN client. I installed VPN client on a laptop that is using wireless connection. I connect using wireless signal from near by hotel and I am

  • Error In Production XI system URGENT

    Hi Experts, Its very URGENT. I have one problem in Production XI system. we have one interface which is running fine for india. In this they are using multi mapping to split the messages according to the company codes and are sending to the same FTP

  • Sync of Zencast items INCREDIBLY s

    I just upgraded from a Zen V Plus to the Zen. On the V Plus, I occassionally used Zencast (video casts) and aside from memory issues the process worked ok. I subscribed with Zencast, updated channels, and then converted and downloaded in Sync Manager

  • "error in parsing value" "declaration dropped"

    A week ago I lost the ability to log in to my banking site (BBVA Compass). After submitting my username, it USED to then ask for my password on the subsequent screen. Now, it dies with a screen that shows "please wait", never gets beyond that. Lookin