XFA form from API java

Hi,
I'm developing a small project in java, it's a desktop project.
This application has to populate a PDF document. The PDF document has
been developed using LiveCycle with a dynamic XFA form.
1. Could I use the LiveCycle API from my application without
connecting to any server, because I'm running a desktop application?
Thanks,
Araujo

Hi Araujo,
This is not the correct part of the forum for this type of question. It is not related to install and configuration.
The answer to your question depends on the client you use. If you are using Acrobat you can talk to local databases or communicate with a SOAP or HTTP datasource which could be local to populate that data. If you are not using Acrobat you could use LiveCycle Reader Extensions to enable Reader to do the same thing.
Please see the product documentation for this. Or use the correct forum where you will get support from people who know more about this then I do.
Thanks C.
Chris de Groot
Senior Product Manager
Adobe Systems Inc.

Similar Messages

  • PDF XFA form/internet browser/JAVA application/Drag and Drop

    Hi guys,
    I need to be able to open a PDF XFA form (a PDF document where I have some input controls and javascripts for validation) inside a JPanel.
    If this is not doable am thinking if i can open this pdf form in a web browser by launching it from my java application.
    And when I do this, I want to be able to drag and drop between the java application and the browser.
    Anyone can tell me if that is doable?
    Thanks and Regards,
    Rawad

    Tristan,
    I am stuck in the same place. Perhaps we could work on this together.
    I am trying to drag a single item from a JList to a text editor, Word, etc. I have two problems:
    1) I can't seem to get just the item in the JList to drag. It wants to drag the entire JList component.
    2) How does one define the remote application as the drop target? Have not found any examples either.
    Is the drop target actually the system clipboard?
    Rp

  • How to fill out POST HTML forms from my Java Application?

    Hi -
    I am writing a little Java GUI program that will allow a user to fill out data from the GUI and then submit that data. When they submit the data (two text fields) I want to take the two text fields and submit them via the POST form method of a HTML document over the web.
    Here is what I got so far:
    host = new URL("http", "<my_address>", web port, "/query.html");
                InputStream in = host.openStream();
                BufferedInputStream bufIn = new BufferedInputStream(in);
                for (;;)
                    int data = bufIn.read();
                    // Check for end of file
                    if (data == -1)
                        break;
                    else
                        System.out.print ( (char) data);
                }What that code does is makes a URL, opens a stream, and reads the HTML source of the file at the specified URL. There is a form that submits data via the POST method, and I would like to know how to write data to specific forms and specific input types of that form.
    Then, I'd like to be able to read the response I get after submitting the form.
    Is this possible?
    Thanks,

    Here is how one of my e-books go about Posting
    I tryied in one of my projects and it works ok
    (Tricks of the Java Programming Gurus)
    There's another reason you may want to manipulate a URLConnection object directly: You may want to post data to a URL, rather than just fetching a document. Web browsers do this with data from online forms, and your applets might use the same mechanism to return data to the server after giving the user a chance to supply information.
    As of this writing, posting is only supported to HTTP URLs. This interface will likely be enhanced in the future-the HTTP protocol supports two ways of sending data to a URL ("post" and "put"), while FTP, for example, supports only one. Currently, the Java library sidesteps the issue, supporting just one method ("post"). Eventually, some mechanism will be needed to enable applets to exert more control over how URLConnection objects are used for output.
    To prepare a URL for output, you first create the URL object just as you would if you were retrieving a document. Then, after gaining access to the URLConnection object, you indicate that you intend to use the connection for output using the setDoOutput method:
    URL gather = new URL("http://www.foo.com/cgi-bin/gather.cgi");
    URLConnection c = gather.openConnection();
    c.setDoOutput(true); Once you finish the preparation, you can get the output stream for the connection, write your data to it, and you're done:
    DataOutputStream out = new DataOutputStream(c.getOutputStream());
    out.writeBytes("name=Bloggs%2C+Joe+David&favoritecolor=blue");
    out.close();
    //MY COMMENT
    //This part can be improved using the URLEncoder
    //******************************************************You might be wondering why the data in the example looks so ugly. That's a good question, and the answer has to do with the limitation mentioned previously: Using URL objects for output is only supported for the HTTP protocol. To be more accurate, version 1.0 of the Java library really only supports output-mode URL objects for posting forms data using HTTP.
    For mostly historical reasons, HTTP forms data is returned to the server in an encoded format, where spaces are changed to plus signs (+), line delimiters to ampersands (&), and various other "special" characters are changed to three-letter escape sequences. The original data for the previous example, before encoding, was the following:
    name=Bloggs, Joe David
    favoritecolor=blue If you know enough about HTTP that you are curious about the details of what actually gets sent to the HTTP server, here's a transcript of what might be sent to www.foo.com if the example code listed previously were compiled into an application and executed:
    POST /cgi-bin/gather.cgi HTTP/1.0
    User-Agent: Java1.0
    Referer: http://www.foo.com/cgi-bin/gather.cgi
    Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
    Content-type: application/x-www-form-urlencoded
    Content-length: 43name=Bloggs%2C+Joe+David&favoritecolor=blue
    Java takes care of building and sending all those protocol headers for you, including the Content-length header, which it calculates automatically. The reason you currently can send only forms data is that the Java library assumes that's all you will want to send. When you use an HTTP URL object for output, the Java library always labels the data you send as encoded form data.
    Once you send the forms data, how do you read the resulting output from the server? The URLConnection class is designed so that you can use an instance for both output and input. It defaults to input-only, and if you turn on output mode without explicitly setting input mode as well, input mode is turned off. If you do both explicitly, however, you can both read and write using a URLConnection:
    c.setDoOutput(true);
    c.setDoInput(true); The only unfortunate thing is that, although URLConnection was designed to make such things possible, version 1.0 of the Java library doesn't support them properly. As of this writing, a bug in the library prevents you from using a single HTTP URLConnection for both input and output.
    //MY COMMENTS
    When you doing URL encoding
    you should not encode it as one string becouse then it will encode the '=' signes and '&' signes also
    you should encode all the field names and values seperatly and then join them using '&'s and '='s
    Ex:-
    public static void addField(StringBuffer sb,String name, String value){
       if (sb.length()>0){
          sb.append("&");
       sb.append(URLEncoder.encode(name,"UTF-8"));
       sb.append("=");
       sb.append(URLEncoder.encode(value,"UTF-8"));
    }

  • Storing XFA forms in content space

    I've recently begun playing with ContentSpace and am now finding it difficult to store an XFA form from and ES process in a ContentSpace space. I probably just missed a basic thing, but here's what I have:
    I have an XfaForm variable in my process that contains a populated form (the user completed it earlier in the process). I now use the storeContent service to store the form into the repository using my XfaForm variable as the NodeContent.
    When validating the process it seems that LC finds it difficult to assign the content type of my XfaForm variable. I get the message WBP-036 Unable to coerce blah blah.
    Any idea what I'm doing wrong?

    The xfaForm variable is really just a pointer to and XDP in the repository and the data submitted by the user when they hit submit.
    That being said the Node Content parameter of the storeContent operation needs a variable of type 'document'. The variable of type 'document' can contain pretty much anything.
    If you want to store the data that was submitted by the user you can use a setValue to assign the data of the xfaForm variable to a document variable (ex. /process_data/@myDocVar = /process_data/xfaForm/object/datasets/data). This would store the xml data in Content Space.
    If you want to save the entire PDF you have two options. You make sure the form submits the entire PDF, in which case you need to use a different variable type (other than xfaForm) since it can only hold xml. You would use a Document Form variable type.
    The other option is to render the PDF on the server using renderPDFForm with the xml data submitted by the user. Once the pdf is created, pass that to the storeContent operation.
    Jasmin

  • Suggest a java API to flatten dynamic XFA forms

    I have a dynamic XFA form created using LiveCycle designer 8.2
    I want to flatten the form programatically for further processing.
    Does Adobe provide any API for this ?
    Thnks.,

    Michael Mitiaguin (guest) wrote:
    : Previously two APIs were supported.
    : Just citing :
    : "The C Application Program Interface (C API) is a
    : state-of-the-art programmatic interface to Oracle TextServer3
    : with ConText,
    : and is shipped as part of the Oracle Text Developer's
    Workbench.
    : It consists of a set of C-coded functions that you can use to
    : build calls to Oracle TextServer3 into your own applications.
    : The Forms 4 Application Program Interface (API) is a
    : state-of-the-art programmatic interface to Oracle TextServer3
    : with
    : ConText, and is shipped as part of Oracle Text Developer's
    : Workbench. It consists of a set of PL/SQL functions and
    : procedures that you can use to build calls to Oracle
    TextServer3
    : into your own Oracle Forms 4 applications. "
    : What about Java API for the time being ? I am interested in
    : feasibily of Java application with quite typical functionality.
    : VCR screen for navigation among records which satisfy
    : advanced search conditions. Each record is a huge chunk of text
    : ( let's say presented by TextAreaControl or probably specific
    : JavaBean component. I know ctv32.ocx existence for viewing
    : something in native format in regard to Windows applications )
    : and I want to navigate from hit to hit having them highlighted.
    There is no specific functionality in JDeveloper for this API.
    For a generic JAVA API in Intermedia, I could find no references
    to one.
    You may want to search for more info on Intermedia at:
    http://www.oracle.com/database/options/intermedia.html
    Regards,
    -Chris
    null

  • Open a form from a 3rd party Java/Web based application

    Hi All,
    I am working for a client who has a 3rd party web application built in Java.
    For one of his requirements, he wants to open a form, an apps standard form on the click of a button/url in their application.
    This appears like a normal form opening from the single-signon screen where you have the self service single sign-on page, it opens the apps forms on click of the url. Can we use the same logic here? This being the case, just curious to know how is the url to open the form built? (I see that the function name, resp id etc are there in the url) So that, I can actually manipulate the url to open the forms from a url. Please see that the custom application also is included into our Oracle apps, so the user is already logged in. We just need to open the form from the click of a url/button.
    Thanks,
    Srini.
    Thanks,
    Srini.

    If the ICX_SESSION is already available then the form(I am assuming you are refering to a web based form here) should open directly if the function should be accessible to the user logged in. When you say your custom application is included in Oracle apps are you launching these pages from the Ebiz home page through menus and functions ?

  • How to call pdf forms developed in ABAP from WD Java application?

    Hi
    I have a web dynpro ABAP application that that is responsible for generating PDF forms for all other applications (WD ABAP and WD Java).
    How can I call the pdf forms generated by the WD ABAP application from WD Java application in a separate window?
    These forms are to be called on click of a "Print" button. Also, these forms are non interactive.
    Kindly let me know if you need any other information.
    Regards
    Vineet Vikram
    Edited by: vineet vikram on Jun 24, 2009 7:28 AM

    in addtion to Nikhil's response. you can write following code on action of print button:
        IWDWindow window = wdComponentAPI.
            getWindowManager().createExternalWindow(
                  "<ABAP Application URL>",
                  "<Title for window>",
                  false);
       window.open();
    to Close the application, you can use the window close or u can fire an event to close current window.
    Abhinav

  • Digging into the XFA data from AS in the form guide

    So I'm delving into the wonderful and wacky world of making custom layouts for Form Guides in Flex Builder, and I've got a question that hopefully y'all can answer or point me in the right direction.
    So I've taken the SampleRepeaterAccordion file from the SDK and I want to modify it so that the 'title' of each accordion pane is drawn from the one of the fields in the pane itself. These values get populated in the initialize event of the subform the repeater is built off of, and the values do not change.
    So I see that the title is an Hbox with a label that pulls the name of the panel and adds the index after the name. I've been able to modify that statement to pull the item that the repeater instance is based off of using the currentItem property of the repeater. So I have something like:
    label="{rpt.currentItem.Resource.value}"
    (where 'Resource' is the name of the field in the subform that I want to pull the value from).
    This puts "[object Object]" into the label of the HBox. I want the value itself, however. I tried .rawValue instead of .value, but that came out blank.
    So how should I be going about fishing data from the XFA form in the action script of the form guide? Or am I headed entirely the wrong direction? I didn't see any docs on this sort of thing. If I missed them, I'd appreciate a pointer to them!
    Thanks!

    Hi Templeton,
    Did you find any solution for it. Is there any way to tell in form guide that which field on the repeater I want to display in header.
    I was also thinking of making it in flex a custom component to do that and also add filtering capabilities. do you know how can we filter records in repeater accordion or grid
    Also can you send me your code if you don't mind
    Thanks
    Manoj

  • Emailing Your Own Attachment from an XFA Form

    Hello there
    Is there any way to send an email with an attachment from a XFA PDF created in designer?, where the attachment is not one of the "built-in" options (XML, pdf etc.).
    I want to be able to email the encrypted XML.
    If not, how can XML data be securely submitted?
    Many thanks

    That link contains the following:
    LiveCycle ES4 provides support for rendering XFA-based forms into HTML5 such that the forms can be opened in browsers with HTML5 support, including those running on mobile devices like iPad. The HTML5 rendition of the forms maintains the layout of the form design and supports most form logic (such as JavaScript, form calc, and form validations) embedded in the XFA form template. This way, your technology investments in XFA forms are carried over easily to devices where running of the Adobe Reader plugin is not feasible.
    Has anybody actually used this and, if so, what has been your experience? 

  • Xfdf supporting java library for xfa form provided by Adobe ?

    I had been working to find that how we can handle the newer xfdf format and explored many pdf libraries including Apache PDFBox and iTtext.
    While exploring I found that the underlying architecture for the pdf  itself could be either Xfa (composed in livecyle designer)  or Acroform(composed in acrobat tool). The forms available with us are third party provided form and  are Xfa forms.
    Acroforms are properly supported in all these libraries but I see very less support for Xfa.
    Is there any java liberaries provided by Adobe to work with xfdf format in Xfa Forms ?
    Thanks
    Shah Imran Alam

    Thanks , but pls elaborate more on this .
    Is it LiveCycle ES3 Server ? If yes which jar do I need for this purpose. Any documentation to go with it ?
    Thanks
    Shah Imran Alam

  • Running an Executable from a JAVA API in LINUX

    Hi,
    I want to run a C++ executable from my JAVA API in Linux. This is the sample of the code which i
    have used
    String[] arguments = new String[5] ;
    arguments[0] = "/usr/local/code/fun/dcmdump";
    arguments[1] = "+f";
    arguments[2] = "/usr/local/code/fun/240.dcm";
    arguments[3] = "+W";
    arguments[4] = "/usr/local/code/fun";
    Process p = Runtime.getRuntime().exec(arguments);
    On running the test file, the program seems to hang there. dcmdump is the name of my c++ executable and arguments [1] - [4] are its inputs. dcmdump should accepts these inputs and dump the contents of the file 240.dcm into the path mentioned by the last argument.
    But my program jst hangs. Is the the correct way to go about??
    Any suggestions or ideas r welcome!!
    Please let me know
    Thanks
    Dhaval

    Hi
    I did the following
    String[] cmd ={"/bin/sh","-c","/usr/local/code/fun/dcmdump","+f","/usr/local/code/fun/240.dcm","+W","/usr/local/code/fun"};
    Process p = Runtime.getRuntime().exec(cmd);
    When i execute my application, i see the following output
    [root@voltaire fun]# java TestRead2
    $dcmtk: dcmdump v3.5.3 2004-05-27 $
    dcmdump: Dump DICOM file and data set
    usage: dcmdump [options] dcmfile-in...
    parameters:
    dcmfile-in DICOM input filename to be dumped
    general options:
    I try to write the arguments in the command line when i execute but still get the same output.
    I dont think dcmdump is receving any arguements..
    Executing /bin/sh does it mean you have to mention the arguements in the command in the same manner that i have the String[] cmd??
    PLease let me know..
    Also i have put a Buffered reader to capture the output of dcmdump but I dont think i have reached my application has reached thr as yet. The code i have written is
    // put a BufferedReader on the output
    InputStream inputstream = p.getInputStream();
    InputStreamReader inputstreamreader = new InputStreamReader(inputstream);
    BufferedReader bufferedreader = new BufferedReader(inputstreamreader);
    // read the output
    String line;
    while ((line = bufferedreader.readLine()) != null) {
    System.out.println(line);
    Please let me know your suggestions/ideas.
    thanks

  • Extracting specific detial about class from the JAVA API created by Javadoc

    hi ,
    Bacialy I need to get detials of all classes from the Java packages for my project. So i thought getting detials from the Java API document might be one way of doing it. If any one tell me some package or software which can get particulat text from the API document that will be great.
    Thank you,
    Raj

    Hi,
    I think, much easier way would be to write a little doclet. That doclet would take the information you need directly from the Doclet API and generate by it a plain text with the content you wish (for instance, as an SQL script that loads everything into a certain database).
    Obtaining this from the generated HTML documentation just adds one extra step (and a lot more complicated, by the way).
    Also, you can avoid even writing a doclet.
    There is a tool called DocFlex/Javadoc:
    http://www.filigris.com/products/docflex_javadoc/
    It is a template-driven doclet, which can be easily programmed to do the job. (However, a license will be needed).
    Regards,
    Leonid Rudy
    http://www.docflex.com

  • Import/Export xml data from subtree of dynamic XFA form

    Hi
    We would like to import/export xml data (subtree) of a dynamic xfa form. The following script does only work with static AcroForms:
    formular.content.subformDaten.Button1[1]::click - (JavaScript, client)
    event.target.exportAsXFDF({aFields:["formular[0].content[0].subformDaten[0]"]});
    With dynamic forms the script does export an empty xml file (no data is included, only xml root tag):
    <?xml version="1.0" encoding="UTF-8"?>
    <xfdf xmlns="http://ns.adobe.com/xfdf/" xml:space="preserve"
    ><f href="ExportTest_frei.pdf"
    /><ids original="EA43F92A6B6EA34F9C4DBBC2DA0B1840" modified="6A7C6282A167594F91240B773AA979A7"
    /></xfdf
    >
    Any ideas? Many thanks.
    Best regards,
    Daniel

    Hi Paul
    The Problem that Daniel posted was originally mine. Now after subscribing to this forum myself, I try to describe the aim of using exportAsXFDF/importAnXFDF.
    exportData("", false) and exportXFAData works, in my opinion, only with a DataConnection. In my form I have indeed such a connection for sending the whole form. But in addition I need the possibility to export and import only part of the data without overwriting the rest of the filled form.
    exportAsXFDF works with static forms. So there MUST be a possibility that works with dynamic forms, right?
    I hope anyone has a solution.
    Beat

  • From Where i can get DI-API Java Connector ?

    Hi,
      Can any one tell me path to install DI-API Java Connector.
    Thanks ,

    Hi,
    If you load the DI-API, the JCO will be installed also
    Regards
    Ad

  • Fill out a pdf form from ADF application

    Hi
    I need to fill out a PDF form, from my ADF application and i want to know if exist a component or libarary to do this.
    i hope you can help me
    Regards.

    Hi,
    two options are:
    Oracle BI Publisher (by far best choice but needs to be licenced)
    http://www.oracle.com/technology/pub/articles/vohra-jdev-xmlpub.html
    Jasper Reports, Free but not as functional or easy to use as BIP
    http://jasperforge.org/projects/jasperreports
    Both products have Java API's which you can integrate with your application.
    Brenden

Maybe you are looking for

  • Error when trying to sign documents

    I started getting the following message when trying to sign documents:The Windows Cryptographic Service Provider reported an error: Key not valid for use in specified state. Error Code 2148073403 . Any help would be appreciated Thank you

  • Why can't I sync Calendar on my Mac to my touch?

    Let me see if I understand this correctly... I need a MobileMe account in order to sync iCal to my touch? I can't just click "Sync" under the "Info" tab within iTunes and it'll sync iCal on my Mac to my touch? Because that didn't work.

  • How to install ASM instance in oracle linux 6.1

    Hi, I have installed oracle linux 6 and upgraded to oracle linux 6.1 (32 bit) for testing purpose. here is details of some commands [root@rac2 ~]# uname -a Linux rac2.test 2.6.32-131.0.15.el6.i686 #1 SMP Fri May 20 15:00:01 EDT 2011 i68 6 i686 i386 G

  • Reinstallation SAP ABAP Netweaver issue message server not connected

    hi , i am trying to reinstall SAP ABAP Netweaver but getting error in step 24 of 27. i am getting the following error. WARNING 2010-07-20 08:52:08.078 iaxxcmsclient.cpp:93 CIaMsgClient::CIaMsgClient(localhost, 3900) Connect to message server (localho

  • Hlep Me

    hi i m java programer and i want to know that it posibel in java programming i m set password into any folder of my windows directory if it is possible then please inform me through mali. my mailing address is [email protected]