Submit as xdp or pdf

Generated a pdf in designer 8.2 and added a submit button, when set "Submit AS" to "XDP", I am able to submit the form in workspace. However, when I set "Submit AS" to "PDF", there's no response after I click the submit button. Nothing happened. What's wrong?
Thanks,
Wayne

Thank you, Jasmin.
Yes, the input datatype is "Document Form". Do I have to have Acobat installed in the workspace side? From my test, the submit works in the machine with acobat installed. Will "Adobe Reader Extension ES" help here?
Thanks again,
Wayne

Similar Messages

  • Including attachments from PDF in Save as Draft and Submit as XDP

    When I wrote the first large process years ago, I ran into the problem of saving attachments that are in the PDF. If you ask the question, the response will be that you have to submit as PDF. That in turn has it's own other problems which when trying to solve, the answer given is "That is because you are submitting as a PDF". I have seen many ask the same thing I wanted: Submit as XDP, but include the attachments. This also includes that the built in Save Draft save them too.
    The summary is this: Loop through the attachments in JavaScript, Base64 encode them and stick them into the DOM. On the server side, use a script step to loop through and create a map of document objects to pass to the next render.
    The following needs to be called from a preSubmit event passing event.target. You'll need to add the nodes referenced to your schema.
    function embedAttachments(oParent) {
        // Get the list of attachments
        var oDataObjects = oParent.dataObjects;
        //app.alert(oDataObjects);
        var rootNode = xfa.datasets.data.resolveNode("[Your Data Root Node]");
        var oAttachData = rootNode.nodes.namedItem("FileAttachments");
        var oldNodes = oAttachData.nodes;
        //wipe out empty nodes
        while (oldNodes.length != 0) {
          oldNodes.remove(oAttachData.nodes.item(0));
        if (oDataObjects != null) {
          var count = oDataObjects.length;
          if (count > 0) {
              // Loop through all the attachments
              for (var i = 0; i < count; i++) {
                // Grab the next attachment
                var oFile = oParent.getDataObjectContents(oDataObjects[i].name);   
                  // Get a new stream with the image encoded as base64
                var vEncodedStream = Net.streamEncode(oFile, "base64");
                // Get a string from the stream
                var sBase64 = util.stringFromStream(vEncodedStream);
                  //console.println(sBase64);
                  // Copy the data to the XML
                var oNewNode = xfa.datasets.createNode("dataGroup", "FileAttachment");
                oAttachData.nodes.append(oNewNode);
                var oName = xfa.datasets.createNode("dataValue", "FileName");
                var oDesc = xfa.datasets.createNode("dataValue", "FileDesc");
                var oData = xfa.datasets.createNode("dataValue", "Base64Data");
                oName.value = oDataObjects[i].path;
                oDesc.value = oDataObjects[i].description;
                oData.value = sBase64;
                oNewNode.nodes.append(oName);
                oNewNode.nodes.append(oDesc);
                oNewNode.nodes.append(oData);   
    It also needs to be called from ContainerFoundation_JS in the form bridge.
    Add this variable:
    var thisDoc = null;
    Add this line of code at the top of RegisterMessageHandler:
        thisDoc = event.target;
    Add this line of code to the top of getData function:
    xfa.form.[Root Node].[Script Object].embedAttachments(thisDoc);
    Here is the Java code to add to a script object. I put mine in a custom render.
    import java.util.HashMap;
    import java.util.*;
    import org.w3c.dom.*;
    import com.adobe.idp.Document;
    import org.apache.commons.codec.binary.Base64;
    int count = 0;
    Map attachmentMap = new HashMap();
    Node ndAttach = patExecContext.getProcessDataValue("/process_data/xmlData/Formdata/FileAttachments");
    if (ndAttach != null) {
        NodeList children = ndAttach.getChildNodes();
        if (children != null) {
            count = children.getLength();
    for (int i = 1; i <= count; i++){
        String name = patExecContext.getProcessDataStringValue("/process_data/xmlData/Formdata/FileAttachments/ FileAttachment[" + i + "]/FileName");
        String desc = patExecContext.getProcessDataStringValue("/process_data/xmlData/Formdata/FileAttachments/ FileAttachment[" + i + "]/FileDesc");
        String b64Data = patExecContext.getProcessDataStringValue("/process_data/xmlData/Formdata/FileAttachments/ FileAttachment[" + i + "]/Base64Data");
        if (b64Data != null && b64Data.length() != 0) {
            Document attDoc = new Document((new Base64()).decode(b64Data.getBytes()));
            attDoc.setAttribute("basename", name);
            attDoc.setAttribute("description", desc);
            attDoc.setAttribute("wsPermission", "1");
            attDoc.passivate();
            attachmentMap.put(name, attDoc);
    patExecContext.setProcessDataMapValue("/process_data/mapAttachments", attachmentMap);
    After I wrote that, I realized there is a method to create a document from Base64. Since I can inspect the map during record and play back and see that the documents are stored Base64, I think I could speed up the process by changing to the other method. I am assuming it would prevent a decode then encode. This same technique might also be applied to annotations.

    Revised Execute script. Server was running out of heap space with large attachments. Creating the Document objects as temp files instead of in memory solves that. I also added the part that wipes the Base64 Attachments out of the XML.
            int count = 0;
            Map attachmentMap = new HashMap();
            String name="";
            String b64Data="";
            File tempFile=null;
            FileOutputStream outStream=null;
            Document attDoc=null;
            int i=0;
            Node ndAttach = (Node) patExecContext.getProcessDataValue("/process_data/xmlData/Formdata/FileAttachments");
            NodeList children;
            Node childNode = null;
            if (ndAttach != null) {
                children = ndAttach.getChildNodes();
                if (children != null) {
                    childNode = children.item(i);
                    if (childNode instanceof Element) {
                        System.out.println("tag name: " + ((Element)childNode).getTagName());
                    count = children.getLength();
            for (i = 1; i <= count; i++){
                b64Data = patExecContext.getProcessDataStringValue("/process_data/xmlData/Formdata/FileAttachments/FileAttachment[" + i + "]/Base64Data");
                if (b64Data != null && b64Data.length() != 0) {
                    name = patExecContext.getProcessDataStringValue("/process_data/xmlData/Formdata/FileAttachments/FileAttachment[" + i + "]/FileName");
                    tempFile = File.createTempFile("Attachment", ".tmp");
                    outStream = new FileOutputStream(tempFile);
                    outStream.write(Base64.decodeBase64(b64Data.getBytes()));
                    outStream.close();
                    attDoc = new Document(tempFile, true);
                    attDoc.setAttribute("basename", name);
                    attDoc.setAttribute("description", patExecContext.getProcessDataStringValue("/process_data/xmlData/Formdata/FileAttachments/FileAttachment[" + i + "]/FileDesc"));
                    attDoc.setAttribute("wsPermission", "1");
                    attachmentMap.put(name, attDoc);
            patExecContext.setProcessDataMapValue("/process_data/mapAttachments", attachmentMap);
            while (ndAttach.hasChildNodes()) {
                ndAttach.removeChild(ndAttach.getLastChild());

  • How do I add a submit button to a pdf form?

    hello
    I am trying to add a submit button to a pdf form... is this possible though forms central or Acrobat Pro?

    If it is a PDF you created with FormsCentral, then yes, it should have a Submit button. See this for more info: http://helpx.adobe.com/acrobat-com/formscentral/help/create-fillable-pdf-form.html  and http://helpx.adobe.com/acrobat-com/formscentral/help/create-forms-locally-save-them.html
    If it's a fillable form created with Acrobat Pro, and you want to collect data with FormsCentral, then you import that existing PDF file into FormsCentral and add a Submit button to the form: http://helpx.adobe.com/acrobat-com/formscentral/help/navigate-formscentral.html#import_exi sting_fillable_pdf_forms
    I hope that helps,
    Brian

  • How do I add a functional "submit button" to a pdf form in Adobe Acrobat Pro XI ? I created the pdf form in Adobe Forms Central.

    How do I add a functional "submit button" to a pdf form in Adobe Acrobat Pro XI ? I created the pdf form in Adobe Forms Central. It's for an online Diet Questionnaire. After people complete the form I'd like them to click "SUBMIT" and the completed form will be emailed to me.

    This can be a bit confusing because Acrobat 11 comes with the desktop app that allows you to create simple PDF forms without having a FormsCentral account. Some people find this helpful, but you need to understand that when you generate the PDF form, it is Reader-enabled by Acrobat. In order to edit the form further in Acrobat, you have to create a non-enabled copy of the form. You do this in Acrobat by opening the form and selecting: File > Save a Copy
    and opening the copy. It is not opened automatically.
    You can now add a button and set it up to submit by email, either using a "Submit a form" action or the submitForm JavaScript method. You can set it up to include just the form data or the entire PDF, and will want to use a mailto type URL. Submitting the form to the FormsCentral server has a number of important advantages over email (much more reliable, more secure, etc.), so you might want to consider it.
    If the form needs to be saved with Reader versions prior to 11, then you will need to Reader-enable the document. In Acrobat 11 you do this by selecting: File > Save As Other > Reader Extended PDF > Enable More Tools

  • How do I make a button onj the form which will submit and send the pdf as an email?

    how do I make a button on the form which will submit and send the pdf as an email?

    You can set up a button with a "Submit a form" action and use a mailto type URL to specify the email address you want the forms sent do. If you want to send the entire PDF, select that option and not FDF or anything else. The mailto URL should not include any spaces and the "mailto" part should be lowercase, like:
    mailto:[email protected]
    This will attempt to initiate an email using the users default email client. If the user does not have one set up or there is some other problem, the email might not get initiated. If it needs to work with Reader versions prior to 11, then the form needs to be Reader-enabled, which you do in Acrobat 11 by selecting: File > Save As Other > Reader Extended PDF > Enable More Tools

  • XDP - open PDF with #toolbar=0 problem in IE

    Hi
    When opening PDF's using a correctly constructed XDP I specify at the end:
    <pdf href="some.pdf" xmlns=http://ns.adobe.com/xdp/pdf/ />
    Everything works correctly in all browsers.
    I would like to hide the toolbars so when I change the href to:
    <pdf href="some.pdf#toolbar=0" xmlns=http://ns.adobe.com/xdp/pdf/ />
    the PDF opens but in IE the XDP data doesn't merge however, it works as expected in other browsers (data merge and toolbar hidden)
    Has anyone else come accross this or know of a fix or workaround?
    Thanks for looking.
    Andy

    Since your posting the XDP data to a PDF, you can merge the XDP + LC PDF using 3rd party tools, send the merged PDF to buffer (data is presented), and then pass the querystring parameter to the merged PDF.
    Example URL:
    http://www.url.com/mergeXDP.aspx#toolbars=0
    If you are using ASP.net web servers:
    Check out www.fdftoolkit.net
    Web Examples:
    www.nk-inc.com/software/fdftoolkit.net/examples/
    If you are using Java enabled non-MS servers, check out iText.
    iText can merge XML/XDP with LC forms.
    For more information Google "iText merge XDP XFA", or buy the book or e-book "iText in Action Second Edition".

  • Submit by mail as .pdf  without using client side mail application

    is it possible to submit a form in pdf format to an e-mail address without it opening the clients outlook in order to send, i simply want them to click submit, and it to send to my mailbox with the info as follows
    from: [email protected]
    subject: Timesheet
    Attach: Timesheet.pdf
    body: Attached is this weeks timesheet
    all i want the page visitor to do is fill in the info, and click "submit via e-mail" no outlook, no attaching, simply click and done.

    >? I have a similar requirement where in the users should be able to open the form from out website, fill it, submit and the form should be submitted through email.
    >There should not be any windows based client email needed on the user's machine.
    What you describe is, superficially, utterly impossible. No e-mail
    client means you can't send mail.
    But the end result can be achieved. The form should be submitted, just
    like every HTML page, to a web script on a web server. The script
    should only be written by an experienced web programmer familiar with
    all the security issues of web programming today.
    The script can, if the programmer wants, send the form data as an
    e-mail. Note that sending it as PDF, rather than XML, may require a
    major investment in enterprise software.
    Aandi Inston

  • Converting XDPs to PDFs

    My company, Viga Technologies, has recently developed an object which converts Adobe Livecycle Templates (XDP) to PDF automatically. It can be deployed as a server side object to be incorporated into existing applications, as a stand alone application or as a service to be performed by our company on a per-form basis. The basic input is an Adobe Designer Template (XDP) as well as an XML data file to be merged into the final PDF. It is extremely fast and generates PDFs which have a 60-70 percent smaller file size than PDFs generated by Adobe Designer. If you have any questions, please feel free to contact me.
    Adam Wachtel
    Viga Technologies (http://www.vigatech.com)
    [email protected]
    (678)371-4401

    The file size decrease is noted in all XDP to PDF conversions, regardless of content. If you would like a demo copy, please send your company contact information me and you will recieve a customized demo version. Thankyou.
    Adam Wachtel
    Viga Technologies (http://www.vigatech.com)
    [email protected]
    (678)371-4401

  • Want to delete the "submit" link on a pdf

    I just created a fillable pdf that is only to be completed, then downloaded and printed and then mailed to with a paper check.  How do I delete the "submit" button on this pdf?

    Hi,
    I believe this is a form that you created with FormsCentral and then you downloaded/saved as PDF via the "Save Submission-Enabled PDF" button via the Distribute Tab.
    Please select via FormsCentral app main menu:
    - File -> Save As PDF Form... and then
    - when you get the dialog "Would you like your PDF form to collect responses online in the "View Responses" tab?" select "Don't Collect Responses" button.
    This will save the PDF form without the Submit button/link.
    Thanks,
    Lucia

  • Convert Dynamic XDP to PDF

    Hi,
    Can PDF Generator programatically (Java) convert a dynamic XDP form that has been filled out by a user into a static PDF?
    Thanks,
    Bob

    Hi,
    Is it possible to access interactive PDF through windows logon( windows may have multiple user accounts). On one particular account , if the user enter login credentials--(if valid)--then he should access the paricular pdf( fill & submit vice versa.).
    Any useful information would be appriciated.
    Thanks,
    Ramesh

  • My submit button on my PDF form is greyed out (will not work) after posting link to PDF on my WordPress website. It works in Acrobat Reader just fine.

    This is where you can see the form as clicked through to from the WordPress website page:
    http://pinetreeplayers.com/ptp_new/wp-content/uploads/2014/12/submit-a-play.pdf
    The PDF file was created in Acrobat 11, with a submit button. The submit button is actioned to send the form via email. It works perfectly by itself if the form is opened in Acrobat Reader, but once I upload the PDF to my WordPress site the submit button is greyed out, and will not complete the action to send on-click.
    How can I fix this please - can anyone offer advice?

    Yes. They need to download Reader and then disable Google Chrome's internal PDF viewer and enable Adobe Reader.
    FireFox should also be configured to use Adobe Reader and not the internal PDF viewer.
    The internal viewers are created to process PDF documents by not including the features and code to process PDF forms.

  • I want to have users submit the form in PDF format but it doesn't work using the email submit button

    Hi all,
    I have a form that I want to be returned to a specific email address as a PDF File. This is so that reservations people can open the pdf, and extract the information from it. Keeping it as a PDF will allow them to easily read and use the form.
    When I use the "Add and Email Submit button" approach, as outlined in the "How to" area, everything works fine, except that the format of the submitted file is in xml, not Pdf which is what I need it in.
    I then tried adding a Button to the document from the Library, and set it's "Control Type" to "Submit". This provided me with the submit sub-tab, where I set the "Submit Format" to PDF. In the "Submit to Url", I entered the following - "mailto:[email protected]" (without the quotes)
    The first approach works, but is not in the PDF format that I need (I believe).
    The second approach keeps giving the following error when one selects the submit button - "This operation is not permitted".
    We use Lotus Notes (yes, I know...not my favorite either, and it may be the problem here).
    Any help that might be provided is greatly appreciated!!
    Rob

    Thanks, but, using the "free" version of Reader, there is no opportunity to open nor import the xml data - the menu options do not exist - there is no import listed.
    If we try to open the xml file directly, then we get an error - something to the effect of "unsupported file type, or the file is corrupted".
    I just noticed in my Pro version that there is the command File ->Form Data ->Import Data to Form... command. Is this what you are referring to?
    What do you recommend? Perhaps the easiest thing to do would be to purchase a few copies of Acrobat Pro for the reservations people to use? I was hoping that the free version of reader would do it, but perhaps not?
    Thanks again,
    Rob

  • How to create a submit or save as pdf button?

    I am rendering my forms as HTML forms using form manager and viewing them in the browser, on the desktop and on android smartphones.
    The problem is, it seems like the only way to save your entries from these browser-rendered forms is by printing (CTRL+P) which screws up the layout, it will make a 1 page form break in half and print on 2 pages and things like that.
    So, is there a way to save these html forms (once filled out) as a pdf again and keep the layout intact? How about a "Submit" button that at least saves the filled form?

    Another option is Sirvisetti AutoMail Desktop Connector (part of Sirvisetti AutoStream family of products) that allows you to convert any document to PDF and automatically launches your default e-mail client with the document attached. You just need to add To/Cc/Bcc, type in the subject and message body and click send!
    You can request for a demo at http://www.sirvisetti.com
    Hope it helps!
    - Mark

  • How do I use a generic button to submit xml instead of pdf?

    Hello All.
    I am using the following javascript that I found to email a form:
    var subject = form1.SF1.TxtFld1.rawValue.concat(_form1.SF1.TxtFld2.rawValue);
    var myDoc = event.target;
    try {
        myDoc.mailDoc({
            bUI: false,
            cTo: '[email protected]',
            cSubject: subject,
            cSubmitAs: "XML"
    } catch (e) {
        // exception handling...
    I would like to modify the above to email the xml instead of the pdf.  Can anybody help? 
    The reason I'm not using the submit button is because I can't figure out how to customize the subject line as I have in the above script. 
    If there's a better way of doing what I need, please let me know - I'm open to suggestions.
    Thanks,
    J

    Add a regular button to the form.
    Add/Modify the following script on the click event of the button:
    event.target.submitForm({cURL:"mailto:"+"[email protected]"+"?&body="This is a test email "&subject="+ subject +", cSubmitAs:"PDF",cCharset:"utf-8"});
    You will need an Adobe LiveCycle Reader Extensions Server to make this possible for users who only have Reader and not full Acrobat.
    Please see the following thread for more information: http://forums.adobe.com/thread/286054

  • Unable to submit a Reader-enabled PDF: "This operation is not permitted"

    Hi I've looked through the forums but haven't found an answer to this particular query: I've created a simple form (text boxes, radio buttons, and a submit button which should send the entire PDF to an email address). I have tried different options:
    Reader enabled the form, then saved it and emailed a copy to a friend to test. When he clicked on "submit" he received the error "this operation is not permitted". Unfortunately I didn't ask what version of Reader he has. The form was created in Adobe Acrobat X.
    Did not reader-enable the form, but opened it with Adobe Reader XI. When I click on submit I get a "server connection error". I'm using Gmail, Chrome and Windows 7 (I went to Start > Default Programs and was able to associate "MAILTO" with Chrome, but there is no option to actively choose Gmail as my mail client). p.s. Before submitting the form I checked and my internet connection is up and running.
    I tried to submit the form from Acrobat X and I get a similar error, "Acrobat is unable to connect to your email program".
    There are no unembedded fonts or hidden objects in the PDF.
    Any help would be greatly appreciated!
    Melissa

    Submitting forms by email isn't really submitting. In my view it's a useful quick test, but not suitable for production use. For reasons you've already discovered. A particularly bad case is where a user uses GMail (or whatever) but has a WORKING email client that accepts the mail; but then it goes nowhere because they never set it up.
    Submit really means "send to a web server" (where a script written by a professional will handle the data). Like the forms on every web site.
    Web sites COULD "submit by email" too, but they don't because it isn't any good.
    (Caveat: some big companies control the email set up exactly, and it can work for them.)

Maybe you are looking for

  • Can't open email document in Pages

    I have a new iPad Mini and just downloaded the Pages app.  I want to open a word document from email, but when I tap the "arrow box" icon, I only get a choice to print, rather than an "Open in Pages" choice.  How can I fix this?

  • Comments don't appear in sidebar

    My client sends me comments and they appear as a list in a page below, rather than in the Comments sidebar. I don't know what to request them to do so I can see them in the sidebar and cut and paste the edits. I'm using 11.0.04; not sure what they ar

  • Dynamic Column Names in Trigger

    I have a trigger which fires on each row. The issue is that I have a lot of duplicate code because there are many columns. Is it possible to abstract the new and old column name references? CREATE OR REPLACE TRIGGER a BEFORE INSERT OR UPDATE ON table

  • Samsung Fascinate Will Not Hold Charge

    My Fascinate will not hold a charge longer than about 8 hours. I went to the Verizon store and they said I should get a new battery.  I did. It held better for a couple of weeks and now it is worse thatn before.  Any ideas?

  • Approve quote(cart) to be ordered based on the workflow assigned to the use

    hi, how to approve the quote(cart) to be ordered when user clicks place order based on the workflow activity assigned to the user. regards yesukannan