Offline pdf Form submit error

hi,
i have a form working online thats working great. I was asked to add the possibility to work offline also.
the problem is:
i have three servlets. Servlet1 mounts the document and servlet2 to handle the submit. However, i had to implement servlet3 that allows the user to change the document state.
- servlet1 renders the document blocked/read-only. the user has to press a button to unblock it.
- this button goes to servlet3, changes the document state on the database, and reloads the document
- the reload is made by redirecting from servlet3 (that changes the state on database) to servlet1 (mounts the document again, but unlocked)
online its working. but offline, when opening the document with reader, pressing the unlock button to go to servlet3 i got this warning :
This document is trying to connect to the site:
"http address of servlet3 to unlock the document"
If you trust the site click YES, otherwise click NO
i pressed YES, obviously, and the document then appears unblocked but on a new reader window. how should i do to make it appear on the same reader window that has the original document?
thanks

i investigated and found it works perfect if opened locally in adobe reader, it dont work in opened in chrome browser at website

Similar Messages

  • Sample code for offline PDF forms submit to workflow

    Hi,
    I have a XDP form which needs to be submitted offline by the user. So i have saved the XDP as dynamic PDF. On submit of this PDF the code flows to the servlet. I am getting the following error:
    "com.adobe.formServer.interfaces.ProcessFormSubmissionException: RequestBuffer not specified at com.adobe.formServer.client.EJBClient.processFormSubmission(EJBClient.java:454) at samples.triggerworkflow.servlet.ProcessFormServlet.doPost(ProcessFormServlet.java:54) at samples.triggerworkflow.servlet.ProcessFormServlet.doGet(ProcessFormServlet.java:28) at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at.... "
    Finally i need to trigger the workflow from the servlet.
    Please help me fix this error. Pleas eprovide a sample code if you have.
    My servelt code is:
    package samples.triggerworkflow.servlet;
    import java.io.IOException;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import com.adobe.formServer.client.*;
    import com.adobe.formServer.interfaces.*;
    import com.adobe.idp.*;
    import com.adobe.workflow.client.*;
    import com.adobe.workflow.manager.*;
    import samples.util.*;
    * @version 1.0
    * @author
    public class ProcessFormServlet extends HttpServlet implements Servlet {
    private static String failedHTML = "Process Invocation Failed. See Log";
    * @see javax.servlet.http.HttpServlet#void (javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
    public void doGet(HttpServletRequest req, HttpServletResponse resp)
    throws ServletException, IOException {
    doPost(req, resp);
    * @see javax.servlet.http.HttpServlet#void (javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
    public void doPost(HttpServletRequest req, HttpServletResponse resp)
    throws ServletException, IOException {
    EJBClient formServer = new EJBClient(Util.getInitContext(getServletContext()));
    IOutputContext form = null;
    try {
    IOutputContext outputContext =formServer.processFormSubmission(req,"OutputType=0");
    // Determine the content type -- make sure it is text/xml
    String ct = outputContext.getContentType();
    if ((ct.equals("text/xml"))||(ct.equals("application/vnd.adobe.xdp+xml")))
    // Get the length of the output stream
    int outLength = outputContext.getOutputContent().length;
    // Create a byte array and allocate outLength bytes
    byte[] formOutput = new byte[outLength];
    // Populate the byte array by invoking getOutputContext
    formOutput = outputContext.getOutputContent();
    System.out.println("coming in post 5555***********");
    } catch (ProcessFormSubmissionException e1) {
    System.out.println("coming in exception 123***********");
    e1.printStackTrace(resp.getWriter());
    return;
    String returnHtml = triggerWorkflow(form);
    resp.setContentType("text/html");
    resp.setContentLength(returnHtml.length());
    resp.getWriter().print(returnHtml);
    private String triggerWorkflow(IOutputContext form) {
    System.out.println("coming in triggerWorkflow 1111***********");
    QLCSession session = null;
    String html = null;
    try {
    System.out.println("coming in try of triggerWorkflow 2222***********");
    session = QLCSessionFactory.createSession("Localhost");
    Context wkfContext = session.login("administrator", "password");
    session.setContext(wkfContext);
    System.out.println("coming in try of triggerWorkflow 3333***********");
    ProcessManager manager = session.getProcessManager();
    System.out.println("coming in try of triggerWorkflow 4444***********");
    manager.setContext

    Figured out how to set an event parameter in the function:
        CALL METHOD event_container->set
          EXPORTING
            name                          = 'Item'
            value                         = wa_eban-bnfpo

  • Acrobat 9: Error when PDF form submit with file attachment

    Hi all,
    Hope you can provide some help with my PDF form submit issue. I am getting this error "There is no PDDoc associated with this CosDoc." in Acrobat 9 (Reader and Pro) when I try to submit a PDF form with a file attachment field (the file is specified). The same PDF form works fine in Acrobat 7 or 8 (Reader and Pro) with file attachment.
    If no file attachment is specified (user did not select a file) then the PDF form submits fine in acrobat 9. The form data submission format is in FDF. Same problem if I change to XFDF.
    There are no differences in the problem if the PDF form is created in Acrobat 7 or Acrobat 9, the same submit issue exists in Acrobat 9 but not in the older Acrobat versions.
    Is this a known issue and are there any workarounds/solutions?
    Thanks.

    Sounds like a bug to me. Please report it: http://www.adobe.com/support/feature.html
    George

  • Submitting a PDF form and Error Message

    One of my users received the following error message when submitting a PDF form: "An error occurred during the submit process. The server has an invalid SSL certificate." Can anyone tell me what this error is and how do I prevent it?

    I have had the same error - we are behind a webfilter which is very tight
    can you please advise the domains i need to whitelist?
    many thanks
    Bruce

  • Saving Offline PDF form from Web-Dynpro with Dynamic File Name

    Hello All,
    We have a offline PDF form.... When we save the form, a default file name appears. We need to change this default name to some value that is already available in the form fields.
    I have gone through some posts in the forum. However not able to figure out the solution.
    Following are the details:
    1. Web-Dynpro used : ABAP Web-Dynpro
    2. Form Type: Native
    3. Offline Editable form
    Regards,
    Kunjal Patel

    Hi Rajesh,
    I have not yet found a solution....
    Also as you have seen no one is replying.....
    All,
    Should we consider that this issue does not have a specific solution?
    Regards,
    Kunjal

  • On Mac, why won't the downloaded PDF form SUBMIT after being filled out?

    On Mac, why won't the downloaded PDF form SUBMIT after being filled out?
    Thank you for the help.
    Kind regards
    Ryan Kohler

    Hi;
    This FAQ should describe the issue - you need to be using Adobe Reader (free) or Adobe Acrobat to fill out the PDF, Preview on the Mac breaks the PDF so it is no longer usable: http://forums.adobe.com/docs/DOC-2653
    Thanks,
    Josh

  • Adobe PDF form / submit sutton does nothing in Safari 5.1.2

    Hi,
    We display embedded Acrobat PDF forms containing a submit button in Safari.
    If I press "submit" nothing happens, this worked some Safari versions before.
    My Adobe Reader is: Adobe Reader X, Version 10.1.1
    My Safari version is 5.1.2, I removed and reinstalled it, still does not work.
    Reading this: http://stackoverflow.com/questions/8302233/pdf-submit-a-form-button-safari
    "I contacted Adobe again, and their technical support was more helpful. 
    It is a known issue, and Adobe suggests using a different browser, or downgrade to Safari 5.0.1.
    Adobe will soon issue a patch for this to work with Safari 5.1.1.
    Well, I have 5.1.2 and this does not seam to be fixed yet.
    Downgrading my Safari version to 5.0.1 made the Adobe PDF forms work again with Safari, the submit button does  something.
    Does anybody have some information about this? Is there another way to solve this issue then to downgrade to version 5.0.1 ?
    Thanks for helping
    huba

    Hello,
    I'm experiencing the same issue and wondered if you have any news re this problem or have found some workaround ?
    I've performed tests on all verions of Safari  5.1.x including the latest 5.1.4 and unfortunately the bug still exists.
    Thanks in advance for your consideration and any help!
    David

  • Pdf form, submit by?, and captcha

    I am a bit of a newbie to the programming side of web design. I have a handful of clients, mostly friends and small ministries, for whom I have created primarily html websites (some CSS and simple PHP). Two of the clients have pdf forms for visitors to fill out and send back by email.
    Problem one is on the site's quote and order forms. Submit buttons for submitting by email. However, the script doesn't initiate (bring up an email program) for people with Hotmail and other webmail programs. Am I doing something wrong or is this not the best way to submit? I know it can also be submitted by url, via http instead of by email, but I have no clue what is involved with having it write to our server and how to access it from there. (https://host36.christianwebhost.com/magdacsihas/magdaOrderForm.pdf)
    The second problem is that we think one of the clients is getting spam emails from robots rather than true order submissions. I read up trying to find out how to add a Captcha security image, but all I could find were related to html FormMails, not to pdf forms. Can robots submit fake orders if I have required fields that must be filled out before allowing submission or do they just record the email address for other types of spam? Can you provide advice on how to better secure the pdfs or should I convert to html forms or what? (http://www.refugeoutreachcenter.org/pp_order_Bulk0508.pdf)
    I need to fix Problem One asap. The client has asked that it be working by this weekend.
    Any help would be greatly appreciated.
    fanis

    > However, the script doesn't initiate (bring up an email program) for people with Hotmail and other webmail programs.
    It can't. There isn't an email program for these people.
    >Am I doing something wrong or is this not the best way to submit?
    This is absolutely not the best way to submit. Think of it as
    something handy for testing, but absolutely no use for
    important/commercial data for the general public.
    >
    >The second problem is that we think one of the clients is getting spam emails from robots rather than true order submissions.
    This is alarmingly common.
    >I read up trying to find out how to add a Captcha security image
    Never heard of such a thing with PDF forms. But then again, I've never
    heard of PDF forms being spammed before. But there was bound to be a
    first time.
    >. Can robots submit fake orders if I have required fields that must be filled out before allowing
    > submission or do they just record the email address for other types of spam?
    The people who write these things are smart. It's no use saying what
    they can and can't do.
    Aandi Inston

  • REST call from PDf form returns error

    I have created a very simple process that allows a user to enter data into a PDF form and submit the form for archiving.  In the process I have used LC Output to flatten the PDF and I am using the Sharepoint connector to create and archive the document. 
    When I do this from the LC Workspace it works no problem.  I can go out the SharePoint and see that archive document and all of the data is there.  I now want to be able to host the form in another location and have the same functionality.  To do this I have change the submit button on the form so that it makes a REST call to the LC server in order to call the correct process.  To be sure that I had the right URL for the REST call I took it right out of the Adminui.
    I have tested the URL in a browser and the process kicks off no problems.  The issue is when I place the URL in a submit button and try to submit the form I get a message box back stating that there was an invalid server response and nothing happens.  I am not sure but I do not think that it is even getting to the LC server.
    I am using LC ES2 and opening the form in Acrobat 9.5.1.  As mentioned it is a very simple process as I am just trying to prove out that a LC process can be invoked using a REST call from a PDF.

    Hey Amr,
    thanks for your feedback. Let me write down some more facts about my environment so we might be able to track down what's going wrong:
    - Virtual PC using Windows Server 2012
    - SharePoint 2013 with September CU
    - Compatibility Level 15 Webapplication using Default "Claims Based Authentication" with form based authentication activated
    - Visual Studio 2013 Console Application .NET 4.5 x64 Build Target
    Writing down what my base configuration is seems to have brought light into the dark. As soon as I deactivated FBA authentication I was able to execute the request without any problems. So now I know what I have to look for. Thank you!
    Regards Andreas MCPD SharePoint 2010. Please remember to mark your question as "answered"/"Vote helpful" if this solves/helps your problem.

  • PDF Form Submit Format

    Hello,
    Does anyone know the format of form values that are sent out after user clicks the submit button in the form?
    I have a PDF form file stored in my computer. In my program, I read this form file and dynamically create a submit button. After that, user can enter data in the form and submit the values to my server in HTML format.
    I was wondering if anyone knows how the format looks like. It seems like a field can have many values associated to it, value, valueAsString, event.value etc. Exactly which value here is sent to the server? And how does the format of the entire HTML looks like?
    I have been looking around for this information but I can't find anything. Acrobat Javascript doesn't provide something like onSubmit event for me to stop the process right before the form data is sent.
    Any hint would be helpful.
    Thanks a lot.

    One way to test this out is to set up a button that's configured the way you want but with a mailto type URL. When the button is clicked, you will be prompted to send the email with your email client or save the data file to your machine so you can manually attach it to an email. Choose the latter and save it to a file. It will have an FDF extension, but it won't be a valid FDF. Open the file in a text editor and inspect it. It will be URL encoded form data, just as you'd get from an HTML form, and can be processed in the same way as an HTML form submission. So what you get isn't HTML, it's URL encoded form data.
    The field name/value pairs will be sent. For fields that format a value for display (e.g., 3.1415926535 to 3.14), you will get the unformatted value.
    The valueAsString property is only relevant when a field value is retrieved via JavaScript. It basically prevents leading zeroes from being dropped. Leading zero for numeric values will be included in the form data when submitted.

  • PDF Form Submit Alert to find missing fields

    I have created a PDF form using Adobe Acrobat X Pro for our website and am testing it. When I submit my form, but have left required fields blank, I want it to locate those blank fields.  Instead it makes me find the missing fields, which is hard to do on my complex form. Please help I have searched and found no answers.

    I see. You can't change this built-in feature behavior, but you could implement your own scheme with JavaScript. The problem with this approach is it won't work if JavaScript is disabled or not (fully) supported, as with most mobile PDF viewers. It would involve replacing the Submit Form action with the submitForm JavaScript method, but only after a script scans the required fields to see if any are blank. The script could set just the missing fields' border color and even set the focus to the first missing one. One problem with setting the border color is it would print in that color, unlike the other type of highlighting.
    If you want to pursue this JavaScript option, post again.

  • PDF form submit button sends FDF instead of PDF

    i have PDF Form created  in Adobe Acrobat XI Pro
    i want to send PDF document to webserver
    my server code
    ob_start();
    $file = file_get_contents("php://input"); //Gets binary PDF Data
    $time = microtime(true); $newfile = "./customers/" . $time . ".pdf"; //Names file based on the time to the microsecond so nothing gets overwritten.
    $worked = file_put_contents($newfile, $file); //Creates File
    ob_end_clean();
    my problem is that i am getting FDF data, not PDF document.

    i investigated and found it works perfect if opened locally in adobe reader, it dont work in opened in chrome browser at website

  • JSP problem after PDF Form Submit

    Hi,
    Our project team is using a PDF with Acrobat Form fields behind it to post form data to a java servlet, where it is parsed and written to a legacy system.
    Our problem: when we return a jsp confirmation page back to the user, we are getting intermittent responses - sometimes the user will see the page, sometimes not. Also of note - the URL address location in the browser is being changed to "C://TEMP/xxxxxx.html", instead of showing "http://myserver/myapp/confirmPage.jsp". In effect, it doesn't retain the server location from which the form data was submitted - instead, after the jsp on that server is rendered into html, it is being written to a temp location on the local hard drive as an .html page, then displayed from there.
    In my debug testing, I have bypassed the bulk of my application code, submitting into the servlet and returning the jsp right back to the user. It works properly when submitted from an HTML page, but goes to the C://TEMP... route when submitted from the PDF. Therefore, I can conclude that the bug is not in our java code and is not in the jsp code.
    On our PDF we are using an Adobe script submitForm() function, naming our servlet to send to (without appending #FDF on it) and specifying "false" as our second parameter, since we are passing the data as an HttpRequest instead of as FDF data.
    I suspect the problem may be caused by some differences in the headers in the HttpRequest object coming from the PDF. In comparing the Request headers from the PDF submit and those from an HTML page submit:
    From the PDF:
    content-type = application/x-www-form-urlencoded
    user-agent = Mozilla/4.0 (compatible; Adobe Acrobat Control Version 5.00 for ActiveX)
    From an HTML submit:
    content-type = text/html
    user-agent = Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)
    I have tried explicitly setting the headers to match those coming in from an HTML submit but this doesn't seem to make a difference.
    Has anyone experienced a similar problem? Any thoughts?
    jander

    This is a bug from Acrobat !
    The turnover is to send a FDF document with the file tag (/F) referencing the jsp page you want to display

  • Apply password on pdf form submit to php

    I'm trying to submit a PDF fillable form online that will apply a password after the form has been submitted, then email to me, without the mailto:command.
    Trying to send to a PHPform processor to do the mailto option. Is there a writeup, or plugin for this.
    I've seen an processor.asp do this, but can't find one for php.

    I think I see you want to submit the data to a web server, then have the PDF encrypted on arrival. You can't do this with a plug-in. That's not least because the license for Acrobat doesn't allow it to be used on a server.
    Adobe produce some server products with "LiveCycle" in the name. These are enterprise software, priced accordingly. Perhaps one of these can do that.

  • Interactive PDF Form Submit Button Not Working

    Hi there,
    I created an Interactive PDF in InDesign with a form included in the document. When I export as an interactive PDF my Adobe Reader will allow me to fill out the form no problem, however, when I click submit to connect the form to my email, it says "operation not permitted". Any ideas on how to fix this issue?

    Reader prior to version 11 cannot save the document unless it is Reader-enabled, which you can do with Acrobat. Exactly how depends on which version you're using. In Acrobat 11: File > Save as Other > Reader Extended PDF > Enable More Tools

Maybe you are looking for

  • I'm working in Photoshop CC 2014. Why is it that when I use the refine radius tool...edges become pixelated? When using Edge Detection and sliding the radius bar I get the same result.

    I used the quick selection tool to get this far...I will be showing the result of adjusting the Radius slider... At 5 px you can already see the changes to the edges... And at 30 px...

  • IMac as monitor for MBA

    I have a mid 2012 MBA and and early 2009 iMac. Is it possible to connect the iMac (it does not have Thunderbolt) as a display for the MBA?  I know that I can hook an external VGA monitor to the MBA (am actually using an old 15") but would like to tak

  • WRT350N STorage

    I have bought myself a WRT350N - my old wireless AP had eventually given up the ghost - and a 1TB HD to connect as storage... but now I discover that has been formatted by the Linksys as FAT32 (is that possible - 930 GB on FAT32?) and that all files

  • REgarding hr payslip

    hi experts, i have to make some changes in hr payroll slip ie HR:INDIA REMUNERATION STATEMENT,,,,,cud u plz tell me what is the name of the form which SAP using for printing....the program name is HINCEDT0...plz help me.

  • Error -9813 and others

    Hello, I've an error code -9813 each time I try to conect to the iTunes store. Might this be related to synchronisation pb with iSync and with troubleshooting with iDisk ? Does anybody have any clue for me ??? Cheers, Bertrand