PDF javascript submitForm/getURL POST

I'm trying to do a POST HTML request to a web server and display the results in the browser (ideally in a separate tab/window).
Basically, if the adobe reader is running inside a browser, then this works (although the contents are not displayed in a new window);
        var aSubmitFields = new Array('f1', 'f2');
        this.submitForm({
                cURL: 'http://someaddress/serversidestuff.pl',
                aFields: aSubmitFields,
                cSubmitAs: 'HTML',
                cCharset: 'utf-8'
However, if the document is viewed inside a adobe reader without any web browser, then this doesn't
work. The number of fields I'd like to use is fairly large (total about 3-6K) making this unsuitable for GET.
Any recommendations on how to get this working?
Another approach that would work for me is basically generating a HTML document via javascript in the pdf doc, and
then opening this generated html with a browser (without any GET/POST) if this could be automated.
Somehow passing html content to the browser is my problem... Not sure if it is possible...

No, a link (GET) in a PDF document doesn't help. The target (link) needs about 4-6K of data (by HTTP POST) to be able to display. It is an Ajax control that needs arguments from the original PDF document. So, I can't convert the ajax control to a static document, it needs to be displayed on a browser.
To clarify, the data flow is like this;
1) original pdf document sends 4-5K data via HTTP POST (submitForm())
2) web server receives the data and responds with a custom constructed HTML with Ajax.
3) original pdf document receives this and it needs to display it on a browser, but submitForm doesn't work in a stand-alone running adobe reader.
In other words, if getURL() were able to use POST to submit about 4-6K data, everything would be working for me.

Similar Messages

  • TS1702 I installed Adobe Reader so I can read PDFs a teacher has posted online. How do I open the documents using Adobe? I tried the open button, but I still can not get more than the first page. Thanks

    I installed Adobe Reader so I can read PDFs a teacher has posted online. How do I open the PDFs? I tried using the open button at the top, but I'm only able to see the first page. Thanks

    I had the same problem.
    Try this.
    https://igppwiki.ucsd.edu/groups/publichelpwiki/wiki/a1538/Howto_Disable_Acrobat _as_the_Safari_PDF_Viewer.html

  • Does Preview support PDF JavaScript?

    Due to a PDF vulnerability, various security experts are suggesting turning off JavaScript in Adobe Reader. I don't see any way to do this in Preview. Does this mean that Preview does not support PDF JavaScript?

    From this link:
    -=-=-=-
    "There are exceptions. Preview can't open protected PDF files, and it may not render all PDF documents properly. The PDF file format has become extremely complex over the years, including support for JavaScript, embedded Flash content, and other advanced options. Acrobat includes far more extensive controls and content capabilities than simply printing to PDF, especially if you need to manage image resolutions and formats. Of course, this complexity in Reader and Acrobat is where a lot of these security problems come from in the first place.
    Since there is no risk unless you open a malicious file with Reader or Acrobat, one of the best steps you can take to limit the chances of future issues (aside from staying up to date with patches) is to set Preview as your default reader. Not that Preview is perfect, but we have yet to see it face the same number of zero day vulnerabilities or exploits."

  • I tried sending the Adobe pdf file of a poster via email and it said the file was too large to send.  How do I remedy this?

    I tried sending an Adobe pdf file of a poster via email and it wouldn't go through because it said the file was too large.  How do I remedy this?

    Lots of free file hosters out there. Mediafire.com as an example. Upload a file there, copy and paste the download link you are given into your email to the client, then delete it as soon as the client successfully downloads it. Mediafire has 10 gb storage for free accounts.
    Email is limited to 10 MB on attachments. So that's where file hosting comes in.

  • Get pdf creation by using pdf javascript

    Hello all,
    Can I ask how can I get the pdf creation/ last modify date by using pdf javascript?
    Many Thanks
    Sunny

    this.creationDate and this.modDate have both been superseded by this.info property. These commands have not been eliminated but they are candidates for a future dropping.
    I would use
    this.info.CreationDate
    and
    this.info.ModDate
    Unless the user is using Acrobat 3 or 4.
    A universal approach for all versions could be:
    CreationDate = "";
    ModDate = "";
    if(app.viewerVersion < 5) {
    // versions below version 5
    CreationDate = this.creationDate;
    ModDate = this.modDate;
    } else {
    // versions 5 and above;
    CreationDate = this.info.CreationDate;
    ModDate = this.info.ModDate;
    app.alert("Viewer version: " + app.viewerVersion +
    "\nCreation date: " + CreationDate +
    "\nModification date: " + ModDate, 3, 0);

  • Submitting a PDF form via HTTP Post: Beginner's Questions

    Hi,
    I am completely new to PDF forms, so I have been finding the documentation and options overwhelming.
    I am hoping to get pointed to the documentation/tutorials/examples I really need.
    I would like to build a "proof of concept" for my boss.  I would like to include a screen in our Java ( JSP & Spring ) webapp where either a PDF form is embedded or is accessed via a link.
    I have
    Adobe Acrobat Distiller X standard license
    Adobe Acrobat X Standard
    Microsoft Office 2010
    I made a small, 3 field Microsoft Word form.  I then converted it via DIstiller into a PDF form.
    I then found this document about how to submit a PDF form to a server side component:
    http://acrobatusers.com/tutorials/form-submit-e-mail-demystified
    My big problem with this document it doesn't have an example nor an example showing what is going on in a full HTML page.   As I result I have some questions:
    Can I see such an example somewhere?
    Does the call to the javascript function doc.SubmitForm(urlToMyServerSideComponent) go in a script tag on the HTML page like other javascripts?
    Can I execute that submit function from an HTML button or do I need to put a "submit" button on the PDF form?
    Do I need Adobe LiveCycle in order to create a PDF form with a "submit" button?  Free versions?
    Can I send via HTTP POST ?
    Do I need Adobe LiveCycle to crate a PDF form with a digital signature?
    Is there a document/tutorial that fits where I am starting off from? ( Please no books, I am tyring to show my boss that this is something that can be done, in a reasonable amount of time, not time to get and go through a book ).
    Thanks in advance for any tips that get me pointed in the right direction
    Steve

    To answer some of your specific questions:
    2, 3. The submit form button needs to be on the PDF. You can either configure a Submit Form action or use the submitForm JavaScript method.
    4, 6: No to both questions. You can create the form in Acrobat. Such forms are knows as Acroforms, as opposed to XFA forms that are created with LiveCycle Designer. Acroforms have wider support.
    5: Yes, that's the method that's used when submitting to a web server. You have your choice of formats. The "HTML Form" option causes the form data to be submitted in the same format as an HTML form, so the same type of server-side code can be used to process the data. As Dave's tutorial shows, the server should return an FDF as the response, however, as opposed to HTML content.
    It's a mistake to try to embed the PDF in a web page. So much depends on the user's browser, PDF viewer, and how both are configured. PDF forms can be submitted directly from Adobe Reader/Acrobat, so it's not necessary for them to be viewed in a browser. Note that Adobe Reader for iOS/Android don't yet support submitting to a web server (apart from FormsCentral), but that's is supposedly being worked on.
    Since you mentioned digital signatures, be aware that for Reader users to be able to sign, the document has to be Reader-enabled, either with Acrobat Pro or LiveCycle Reader Extensions (which is not the same as LiveCycle Designer). Digital signatures in PDF forms are not yet supported on mobile devices. Also, you will want to submit the entire PDF, as opposed to just the form data, when submitting a digitally signed form.

  • Getting the number of pages in a PDF [JavaScript in CS3]

    Hello All,
    I am an InDesign JavaScript newbie that will be posting questions in the near future. Before asking a lot of questions, I would like to contribute something to the group. Here is a function that will query a PDF and return the number of pages that it contains. This is useful for placing multi-page PDFs.
    Rick Quatro
    rick at frameexpert dot com
    function GetPdfPageCount(oFile)
    // Convert filename to a VBS-friendly format.
    var sFile = oFile.fsName.replace(/\\/g, "\\\\");
    var aFile = [sFile]; // An array of arguments.
    if(File.fs == "Windows"){
    var sGetPdfPageCount = "Dim AcroApp, AVDoc, PDDoc, iPages\r";
    sGetPdfPageCount += "Set AcroApp = CreateObject(\"AcroExch.App\")\r";
    sGetPdfPageCount += "Set PDDoc = CreateObject(\"AcroExch.PDDoc\")\r";
    sGetPdfPageCount += "If PDDoc.Open(arguments(0)) Then\r";
    sGetPdfPageCount += " iNumPages = PDDoc.GetNumPages()\r";
    sGetPdfPageCount += " Set oInDesign = CreateObject(\"InDesign.Application\")\r";
    sGetPdfPageCount += " oInDesign.ScriptArgs.SetValue \"ScriptArgumentA\", CStr(iNumPages)\r";
    sGetPdfPageCount += " PDDoc.Close()\r";
    sGetPdfPageCount += "End If\r";
    sGetPdfPageCount += "Set AcroApp = Nothing\r";
    sGetPdfPageCount += "Set PDDoc = Nothing\r";
    app.doScript(sGetPdfPageCount, ScriptLanguage.visualBasic,aFile);
    return Number(app.scriptArgs.getValue("ScriptArgumentA"));
    else
    return 0;

    Hi Peter,
    The solutions that open the PDF files with f.open and look for particular strings don't work for all of the PDF files I have. This one seems to work well for me so far. Thanks for the link.
    Rick

  • Call PDF Javascript Function from External HTML Document

    Greetings,
    Forgive me if this information has been posted previously - I've searched quite a bit and haven't quite found anything specific or similar.
    We have LiveCycle Designed forms, and are including the Form in an IFRAME within an HTML page.  From there, we would like to be able to call one of the functions we've added to the LiveCycle form.
    So for example,
    <HTML>
    <HEAD><TITLE></TITLE>
    <SCRIPT type="text/javascript">
    function CallFunc()
    window.PDFFrame.TestFunc();
    </SCRIPT>
    </HEAD>
    <BODY>
    <iframe src="MyPDFFile.pdf" width="100%" height="100%" name="PDFFrame" id="PDFFrame"></iframe>
    </HTML>
    The "window.PDFFrame.TestFunc()" is where I'm running into issues.  I have tried to use PDFFrame.xfa.etc, and PDFFrame.document.etc, but I'm not sure of the appropriate method to access this PDF Document's functions.
    I do have a "TestFunc()" defined (tested and working) in the PDF document (designed in LiveCycle).
    Any advice is much appreciated -
    Thanks!

    I have attempted to use the information found here for this task:
    http://livedocs.adobe.com/flex/3/html/help.html?content=PDF_1.html
    But is this outdated?  Using the LiveCycle Designer, I have not been able to utilize the "this.hostContainer.messageHandler" with any success.  Is their an equivalent xfa.etc handler?  Or if "this.hostContainer.messageHandler" is still available to Acrobat 9.X documents, what are the appropriate steps to using this?  I've tried putting it in the document initializer, docReady, and Page events and it doesn't seem to be available in any of those.
    Any advice is appreciated,
    Thanks!

  • Making a javascript jump menu post the parameter value to a jsp

    I have got a HTML page with a javascript jump menu on it which is intended to post the user selected parameter to a jsp. However I do not know how to get the jump menu to post the data in the same way that it is done with a submit button. I don't want to use a submit button, hence the jump menu. Does anyone have an example that they can let me use.
    function jumpPage(form) {
    i = form.SelectMenu.selectedIndex;
    if (i == 0) return;
    window.location.href = url[i+1];
    document.writeln('<FORM><SELECT NAME="SelectMenu" onChange="jumpPage(this.form)">');
    This bit of Javascript just opens the selected window but submits no data to it.
    Any help is greatly appreciated.

    In order to get your data passed through to your second page via parameters, you must do one of two things.
    1) Actually submit the document. Since you don't want a submit button, you can accomplish this with document.form.submit(). However, you must specify a URL in the "action" attribute of your form tag.
    2) Construct the URL with the parameters listed in it. (ie. myJSP.jps?user=foo&password=bar ). This is not too bad if you've only got a few parameters... rather tedious for more than a few.
    What situation are you in where there are multiple parameters to pass with a Quick Jump setup? Usually, all you need to do is determine which page they need to head to, and simply forward. If there are other fields in your form, an automatically forwarding Quick Jump is potentially problematic, since they could select that field before filling out other necessary fields... just something to think about.

  • Pdf reader X has problems with small pdf and printer with post script driver

    Hi friends.
    I have installed new Reader X and then i saw that, when i print a very small pdf with about 50 kb and i print it on a Laserjet 4000 printer the printer has problem with the amount of data that reader 10 produces.
    When i install a Postscript driver for the printer my computer makes up to 3.5MB printer data from a 50kb pdf.
    When i install a PCL driver for the printer my computer makes only 350kb from the same 50kb pdf file!!!!
    When i install Reader 9.3 the 50kb file becomes also only 350kb on the printer with post script driver, and i can print without problems also.
    my printer has 8 MB Ram and that should be enough for 3.5MB printer data.
    But when i print the pdf with 1 side only, the printer created a side who is only filled with 50% of the text, then there comes out a second page with the message.....not enough memory in the printer.
    i can not change the postscript driver to a pcl driver cause our ERP System can not handle printer with PCL drivers.
    Can someone help me please.........are there settings in Reader X who can solve my problem ???
    Thank you very much for help!

    put ? after rwcgi60.exe

  • Pdf javascript in mobile pdf reader

    Hello all,
    I have embadded some javascript in my pdf and the javascript works in PC adobe reader. I find that the javascript does not work android adobe reader, can i ask how can I preview the pdf open in android adobe reader or I can write some javscript for android adobe reader?
    for example, in PC, the javascript is this.closeDoc();
    what is the javascript in android adobe reader?
    Many Thanks
    Sunny

    With Adobe Mobile Reader some JavaScript is supported but not all.
    So testing if very important to determine if your script will work or not.
    Also you need to be aware that not all apps on mobile devices support JavaScript so again testing by individual app is needed to determine if your script will work or not.

  • I have add-ons (Convert to PDF, Edit in Contribute, Post to Blog) that use small icons, yet take up 2 rows of space at the top of my browser window. How do I move these items to display on 1 row?

    ''Problem: too much blank space at the top of browser window.''
    • The Convert to PDF icon takes up 1 entire row (predominately blank) of horizontal space
    • Edit in Contribute, Post to Blog are listed on a separate row, taking up 1 additional row (predominately blank) of horizontal space
    They both use small icons and titles, .5" wide each, are flushed to the left, yet take up 2 rows of blank space at the top of my browser window. How do I move these items to display on 1 row?

    Start Firefox in Safe Mode (https://support.mozilla.com/en-US/kb/Safe+Mode) and choose the 'Reset toolbars and controls option'. This will get you back to the stock icon set which you can then customize to your liking

  • 3D PDF JavaScript Examples and Tutorials

    I am having trouble finding good resources on the web for 3D PDF and Javascripting.  I am particularly interested in finding a good set of javascript examples that I can get ideas and code snippets from.  It would be even better if those examples were associated with some tutorials.  I found this site on Adobe Developer Connection:  JavaScript for Acrobat 3D.  There is a link for a zip file containing JavaScript samples but it is no longer available.  Is there somewhere else I can get this file?  Any tips would be greatly appreciated.

    Sorry, nobody updated the link for the ZIP file when it moved servers - it's at http://partners.adobe.com/public/developer/en/webseminars/3DFiles.zip
    I also suggest going through the tutorials and videos at AUC.

  • How to launch pdf javascript controls in java

    Hello,
    Here is my problem.
    We have a pdf (acroform) with controls in javascript on many fields.
    We have an xml with data to fill in the acroform.
    We made a java program, with the iText lib, to fill the pdf acroform with the xml. It's working fine, except that the javascript control are not launched. So if there is a problem in the xml, the pdf is wronlgy filled in.
    Is there a way, to launch the javascript controls in java? What library to use??
    Thank you, (sorry if my english is not good).

    Yes, it's server-side pb. The thing is, I don't really know what technology / library we can use to deal with this problem.
    If you have any idea that coul guide me...

  • Lock form & email as PDF Javascript

    Hi Guys,
    I am using Adobe Acrobat X and creating a Forms natively. We do not use LiveCycle.
    So I have created a form with several fields, buttons a date picker - some of which I have found online.
    The forms that I will be creating will be placed on the Intranet of the Organisation that I work for.
    So what I need is for our users to fill out the form online. Press the Submit button. When they press submit the form must lock all the contents. We do not want to contents edited when it reaches its destination. The submit button will also call up the default email program, populate the TO: field with a specified email address and the Subject field with specified text.
    The form must arrive at its destination in PDF format.
    Been stuck on this one for a while. I used some simple html with the submit button for a while and that mostly worked except the part about locking the form.
    So if someone can java me up a solution i would greatly appreciate it.
    I have tried a few of the solutions a few solutions from the lifecycle partof the forum but apparently the java is different!
    Many thanks,
    Nick

    In that case you can only set the fields as read-only, not truly flatten
    them. Here you'll find a script I posted that will do that:
    http://acrobatusers.com/forum/forms-acrobat/i-need-users-fill-form-and-save-it-then-it-sho uldnt-be-anymore-editable/
    Regarding submitting the file by email and pre-populating the various
    fields, see this:
    http://acrobatusers.com/tutorials/dynamically-setting-submit-e-mail-address
    The variabt you should use is mailDoc().

Maybe you are looking for

  • HT201263 My iPod wont turn on? Help!!!

    I hold down the Sleep/Wake button and the apple logo pops up. Ok thats normal. But not even a few seconds later, this symbol pops up. (The symbol is a USB connecter with an arrow pointing to the iTunes logo. So i plug it into iTunes and this is what

  • When I add an event to my exchange calendar in my iphone5 it no longer syncs with ms exchange, can this be fixed?

    We use MS Exchange for our business Contacts, Email and Calendars. When I add an event to my exchange calendar in my iphone5 it will not syncronize to my exchange server, it does works from ms exchange to the phone. Can this be fixed?

  • In what order are results from gather_database_stats 'LIST AUTO' returned?

    11.2.0.1.0. The results from the following seem to have some order to them (groupings of objects returned alphabetically). Didn't see anywhere in the docs to indicate what's getting returned in what order (empty stats, stale stats). I looked at table

  • Images in IE Render over Spry SubMenus

    I've developed a Spry Menu Bar, but in IE when you open the submenu under the 'about us' link - any image thats in the content of the page renders over the submenu. Works fine in firefox though. See www.genicaassist.co.uk for this example. I've searc

  • Bluetooth Device

    Is there a way to "recall" or "remember" forgotten/removed bluetooth devices?I've seen this question around the web on different forums, but no answers.