Readdle PDF Expert using JavaScript forms

Hi there,
I am trying to build a form that will handle three successive dependent drop-down menus.  I have this working as both a static and interactive PDF in Adobe Reader.  However, I need to ensure there integration with tablets and smart phones via the Readdle PDF Expert app.
According to Readdle's website, this is the limit of their APIs: https://helpspot.readdle.com/en/index.php?pg=kb.page&id=465
This code fails with PDF Expert.  Is there a way of achieving the same result with PDF Expert's API?
FIRST DROPDOWN:
form1.#subform[0].productGroup::exit - (JavaScript, client)
productRange.clearItems();
productFields.clearItems();
switch(this.formattedValue)  {
   case "Bath panels":
     productRange.addItem("Aspen");
     productRange.addItem("Contemporary");
     productRange.addItem("Evolution");
     break;
   case "Cabinets":
     productRange.addItem("Contemporary cabinets");
     productRange.addItem("Sensory");
     break;
   case "Mirrors":
     productRange.addItem("Clarity");
     productRange.addItem("Source");
     break;
SECOND DROPDOWN:
form1.#subform[0].productRange::exit - (JavaScript, client)
productFields.clearItems();
switch(this.formattedValue)  {
  case "Aspen":
    productFields.addItem("White");
    break;
  case "Contemporary":
    productFields.addItem("Beech");
    productFields.addItem("Walnut");
    productFields.addItem("Oak");
    break;
  case "Evolution":
    productFields.addItem("White");
    break;
  case "Contemporary cabinets":
    productFields.addItem("Aluminium");
    productFields.addItem("Walnut");
    productFields.addItem("White");
    break;
  case "Sensory":
    productFields.addItem("Oak");
    productFields.addItem("Walnut");
    productFields.addItem("White");
    productFields.addItem("Glass");
    break;
  case "Clarity":
    productFields.addItem("Silver");
    productFields.addItem("Glass");
    break;
  case "Source":
    productFields.addItem("Glass");
    productFields.addItem("Unclassified");
    break;
Any help would be much appreciated!
Thanks,
Rob.

Hi;
FormsCentral PDF forms have to be filled out using Adobe Reader or Adobe Acrobat, on the iPad using Adobe Reader you can submit our PDF forms.  I will have to check out what happens with PDF Expert, it should not tell you it completed successfully, but I can say that we do not expect any other PDF viewer applications to be able to submit our forms, only from Adobe Reader/Acrobat.
Thanks,
Josh

Similar Messages

  • How to print form into pdf format using smart forms in abap

    please let me know how to print form into pdf format using smart forms in abap.
    Moderator message: please search for available information/documentation.
    Edited by: Thomas Zloch on Mar 25, 2011 2:04 PM

    Hi ,
    refer this link
    <removed by moderator>
    Regards,
    Dhina..
    Moderator message: please do not reply to questions that violate forum rules.
    Edited by: Thomas Zloch on Mar 25, 2011 2:04 PM

  • Modifying a pdf page using Javascript

    Hi all,
    - I am having an html report that consists of many html pages.
    - Each page of these html pages contains a table or more, in addition to some buttons that hides/display specific rows in these tables. And these buttons are programmed using Javascript.
    I would like to convert these html files to a single pdf file.
    My question is: If I converted the report to html, will my buttons work. I mean will my Javascript buttons hide/display table rows in the pdf pages ?
    Thank you,
    Moustafa

    Even though there is some common objects, properties, and methods between Web JS and Acrobat JS, Acrobat uses some very unique objects, properties, and methods so there is no straight forward conversion possible. You would need to rewrite much of the JS and make form fields that could be manipulated. Also Acrobat makes static forms, so no dynamic re flowing of content would be possible.

  • How to generate a pdf file using javascript?

    I would like to generate a pdf file having images in it using javascript. I tried jsPDF but getting some exceptions like
    Uncaught ReferenceError: pageWidth is not defined,
    fail to load pdf document
    Could anyone show me some pointers?
    Thank You
    Rahul

    Here is my code
    var myImg=new Image();
      myImg.src=arrData['employee'][1]['Image'];
      myImg.crossOrigin ="Anonymous";
       var imgData = this.getBase64Image(myImg);
       var doc = new jsPDF();
       doc.setFontSize(40);
       doc.text(35, 25, "Test Image");
       doc.addImage(myImg, 'JPEG', 15, 40, 180, 160);
       doc.save("sample1.pdf");
    I'm receiving the following error at 'addImage' function.
    Uncaught Error: getJpegSize could not find the size of the image
    Could you please help in pointing out where am I going wrong.
    Thank You

  • Accessing objects of pdf file using javascript

    Is there a way, using javascript, to accsess objects that are defined in the pdf file, but where not defined using javascript.
    I would like for instance, to access a text stream, or any kind of stream using javascript.
    Thanks
    Moshe

    Not possible with Javascript.

  • How to manipulate pdf files using javascript in action wizard

    Respected all ,
    I am a software programmer from india and i want to make a programe which can do below described things :
    I want to know that how can i achive this kind of steps using javascript in acrobat XI :
    for ex. if i have  4 pdf files :  800123-001.pdf , 800123-002.pdf    and  800555-001.pdf , 800555-002.pdf
    then i want to do using javascript
    step 1 :  pdf to ps , output should be : 800123-001.ps , 800123-002.ps , 800555-001.ps , 800555-002.ps
    step 2 : ps to pdf (acrobat distiller ) : 800123-001.pdf  , 800123-002.pdf , 800555-001.pdf , 800555-002.pdf
    step 3 : pdf merge : 800123.pdf  - > which contains both : 800123-001.pdf and 800123-002.pdf
                   and                     800555.pdf -> which contains both : 800555-001.pdf and 800555-002.pdf
    ----------END------------
    Is it possible using javascript in acrobat or any other way ?

    i can not access adobe site .. can you plz replay me on my personal e
    mail.. [removed personal contact info, please send a forum message instead]
    On Wed, Jun 19, 2013 at 1:16 AM, Test Screen Name
    Message was edited by: sinious

  • Using Javascript form validation in WordPress - Firefox issues

    I have been struggling for a while to get javascript to validate a WordPress based HTML form which uses radio buttons. I finally came up with a solution with was a bit long-winded but worked - at least in IE and Chrome - however, it doesn't work in Firefox (which suggests my code is a bit sloppy). I think my radio button reference is the issue. Can anyone help with what I have done wrong - apart from use an inefficient approach for validation :-)?
    A simplified version of my form:
    <script>
    function validateForm()
    var aa=document.forms["personalise"]["motivation"]["1a"];
    var ab=document.forms["personalise"]["motivation"]["1b"];
    var ac=document.forms["personalise"]["motivation"]["1c"];
    var ad=document.forms["personalise"]["motivation"]["1d"];
    var ae=document.forms["personalise"]["motivation"]["1e"];
    if (!(aa.checked == true || ab.checked == true || ac.checked == true || ad.checked == true || ae.checked == true))
    alert("Question 1 must be completed");
    return false;
    </script>
    <form name="personalise" action="insertdatatest.php" onsubmit="return validateForm()" method="post">
    1. Are you seriously planning to quit </b>:&nbsp;&nbsp;
    <input id="1a" type="Radio" title="" name="motivation" value="1" /> Within the next 2 weeks
    <input id="1b" type="Radio" title="" name="motivation" value="2" /> Within the next 30 days
    <input id="1c" type="Radio" title="" name="motivation" value="3" /> Within the next 3 months
    <input id="1d" type="Radio" title="" name="motivation" value="4" /> No, I am not currently planning to quit
    <input id="1e" type="Radio" title="" name="motivation" value="5" /> I have already quit
    <input type="submit" value = "Submit">
    </form>
    For My Website : http://www.schoolanduniversity.com

    Thanks for your support,
    This will partly solve the issue I think. Now, the validation is indeed only done for the first form. But I need to save data twice when entering data in the second grid. When checking the error console in mozilla I see following error:
    Error: grid[r] is undefined
    Which is reffering to:
              if ((grid[r] [1] != missing) ||(grid[r][2] != missing) || (grid[r][3] != missing))
    When I save again, the data will be saved without this error.
    Is there a way to exclude the second grid in the if Statement?
    Regards,
    Erik

  • Printing multiple PDF's using JavaScript

    Hi,
    I have a simple HTML page containing links to a few PDF docs (e.g. www.server1.com/doc1.pdf, www.server1.com/doc2.pdf, etc). There's also a button called "Print" that is supposed to print all the docs when clicked. Is there any way I could print all these documents together without having to display the print dialog for every file? I was thinking a solution would be collating the docs into a single PDF doc but I don't know how to do it. Any ideas?
    Thanks!

    Thanks for the help. So collating is off the table. Now consider this:
    <embed id="doodad" src="http://www.tagg.org/pdftest.pdf" width="0" height="0" name="pdfFile"/>
    <script>
            var x = document.getElementById("doodad");
            x.click();
            x.setActive();
            x.focus();
            x.print();
    </script>
    This script basically send a single PDF doc to the printer and results in the print dialog to pop up. If I want to send multiple docs to the printer is there any way so that either the said dialog would not show or it only showed once for all the docs queued? I may be getting more into the JS side of things in which case I apologize in advance; if that's the case I can ask my question on a JS forum.
    Thanks again!

  • Reading form data using javascript

    Hello.
    I want to go over the data received from the context to the PDF file using JavaScript, without binding it to any elements on the form.
    How can I access the data?
    I've tried using xfa.data or xfa.dataset, but didn't manage to get to it.
    How can it be done?
    Thanks.

    The following applies if it's a PDF generated from ABAP :
    Let's say a simple type parameter from context is named EBELN. To get it from javascript, you must use :
    $data.data.EBELN.value
    or
    $record.EBELN.value
    (it's the same)
    For example, to display the value, use:
    xfa.host.messageBox( $data.data.EBELN.value );
    Edited by: Sandra Rossi on Jan 28, 2009 7:34 PM : added $record line

  • Using javascript to save a pdf to a different directory and generating a new filename based on form fields in the document.

    I have built the following script in an attempt to create a submit button that will automatically save the document in a different directory on my computer. It will also use the form field data "customer" and "date" to generate the filename. I printed out the variable myPath and it looks like it printed the correct string. I keep getting the following error:
    TypeError: redeclaration of const path
    any help would be much appreciated.
    var customer = this.getField("Customer").value;
    var date = this.getField("Date").value;
    var path = "C:/Users/awilliams/My Documents/Test/"
      var reg = date.match(/(\d+)\/(\d+)\/(\d+)/);
    var myPath= "C:/Users/awilliams/My Documents/Test/" + customer + "_" + reg[1] + "." + reg[2] + "." +
    reg[3] + ".pdf";
    this.saveAs(myPath);

    "path" is a keyword within a PDF you should not use keywords as a name for any other object as a general rule.
    Have you checked the PDF Reference to see how to create a file path name within a PDF,  3.10.1 File Specification Strings page 118?
    Did you carefully read the Acrobat JavaScript Reference for the saveAs method?
    The notes following the description:
    Note: This method can only be executed during a batch or console event. See Privileged versus non-privileged context for details. The event object contains a discussion of JavaScript events.
    (Adobe Reader S): This method is available in Adobe Reader for documents that have Save usage rights.
    How to Save a PDF with Acrobat JavaScript

  • How to seperate current page fields in a pdf form using javascript

    Hi,
    Is that possible to seperate current page fields(textbox, Chesckbox) in a pdf form using javascript.
    I have coding to get all the fields in a pdf form. But i want to take CURRENT PAGE alone.
    Please help me out.
    Thanks and regards,
    Christy

    Hi try67,
    Thanks for your support.
    I got the result.
    Thanks and Regards,
    Christy

  • How can I attach a PDF in an email, using javascript in PDF document?

    How can I attach a PDF in an email, using an interactive button in the PDF-document?
    I tried to create a form button with the menu action 'attach this PDF in an email'.
    This Send.to-action doesn't work with Microsoft.
    Does anyone has a solution by implementing a javascript-code for this in the PDF?

    Dick,
    Thanks for your replie.
    Nice alternative, but it still doesn't work on a Windows machine when the
    mail software from Microsoft doesn't react on PDF actions.
    You can do many things in Acrobat, but it is a problem when it doesn't work
    on Windows and iPad.
    So now I am looking for alternatives like  interactive magazine software
    (based on html5).
    2012/5/11 dick the flash <[email protected]>
       Re: How can I attach a PDF in an email, using javascript in PDF
    document?
    created by dick the flash <http://forums.adobe.com/people/dicktheflash>in
    JavaScript - View the full discussion<http://forums.adobe.com/message/4395927#4395927

  • How to hide a table row in pdf  using javascript?

    How to hide a table row in pdf  using javascript?

    This is only possible with LiveCycle Designer forms, not PDF forms created
    in Acrobat.

  • Using JavaScript to Print and Overwrite Active Form Files

    Hello all,
    I have zero knowledge of JavaScript and I am hoping someone can help me
    quickly solve an issue I am having with active forms. I tried using the flatten
    feature in the action wizard but it is not working. I also tried using
    "this.flattenPages()" but I can still edit the fields in my PDF file.
    What I am looking for is a JavaScript command that allows me to overwrite the existing
    PDF file using the PDF printer and overwrite the active form so it is
    finalized. Maybe there is an easier more efficient way to accomplish this? Any
    input or help would be much appreciated. I am using Adobe Acrobat XI
    Pro. Thanks.
    P.S. I realize I can manually selected the Adobe PDF printer and finalize my
    active form that way but I am looking for a one click solution.

    Have you seen these?
    A tutorial on how to flatten form fields:
    http://acrobatusers.com/tutorials/how-to-flatten-form-fields
    And a free "Flatten Page Content" tool:
    http://www.pdfscripting.com/public/Free_Acrobat_Automation_Tools.cfm

  • How to use Javascript, C#, or Java to automatically fill out a PDF file using ACROBAT PRO

    Hi.
    I have purchased a copy of acrobat pro and am currently using it to try to create a method of populating certain fields in a PDF file.
    This particualar scenerio is a printable cerficiate, it has a spot for the persons First Name, Last Name, and other basic info.
    So we have an exisiting editable PDF, a database with the user's info, and a ASP.NET web server, and of course Acrobat Pro.
    How can I use these components to create an auto fill script?
    Ideally, we'd genereate these certs on the fly, and allow users to download them.
    A code sample would be awesome.
    Thanks!
    --shawn

    I've discovered that you can create a "PDF Form" and edit that form with Javascript.
    My question now is, what is the prefered method for controlling the pdf form?
    I would like to include the PDF file in an HTML page and edit the form fields using javascript in that HTML page.
    I think that this is how developers are meant to work with dynamic pdf files.
    In the acrobat javascript reference, it only shows an example using the acrobat javascript console.
    If anyone has used Javascript with PDFs, I would highly appricate some input.
    Thanks,
    -- shawn

Maybe you are looking for