Skip navigation
resnickstark
Currently Being Moderated

Issues with viewing the form

Jun 22, 2012 12:41 PM

Good Afternoon,

 

  I have created a fillable form in PDF that contains Java Script. If the users have Adobe Reader they are able to fill out the form as inteneded on a PC and Mac. The issue appears to be on Mac you can open forms without Adobe Reader and this appears to cut off words in middle of the page.

 

1. Any ideas what might be casuing this in Preview and how to fix it?

 

2. Is there anyway to force it to open in Adobe Reader?

 

Below is an example of the issue. The radio buttons use to have information beside them and the sentence above has been cut off. (Note: The redaction to protect private information).

 

Thanks in advance for your help,

Christy

issue with Mac.jpg

 

Message was edited by: resnickstark

 
Replies
  • Currently Being Moderated
    Jun 22, 2012 12:47 PM   in reply to resnickstark

    Preview has many problems with forms.

     

    Plan Ahead. It appears the viewer could be using an A4 paper size instead of an 8-1/2 x 11 viewing area or the PDF was created form an 8-1/2 x 11 size paper onto an A4 paper size.

     

    Wait until you get a form back from someone who has used "Preview", you will be back here again.

     

    You can use JavaScript to and a visible read only form field to inform users that JavaScript needed that it appears not to be available

     

    You can use JavaScript to test for known version of Acrobat/Reader and have a pop up warning about the need to use a compatible PDF viewer.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 25, 2012 3:26 PM   in reply to resnickstark

    I would add a field that is read only, visible, and has an optional value like "This form requires JavaScript and a PDF Viewer that can proess form fields.".

     

    I then add a document level scripts:

     

    // field name to unlock or lock

    var aFieldsReadWrite = new Array ("Text1", "Text2", "Text3");

     

    function setReadWrite(aFields) {

    // make locked field read write
    for(i = 0; i < aFields.length; i++) {
    this.getField(aFields[i]).readonly = false;
    }
    return true;
    }

     

    function setReadOnly(aFields) {
    // lock unlocked fields

    for(i = 0; i < aFields.length; i++) {
    this.getField(aFields[i]).readonly = true;
    }
    return true;
    }

    function Init()
    {
    // check for known viewers and versions

    if(app.formsVersion == "undefined" || app.viewerType == "undefined" || app.viewVersion == "undefinded") {
    app.alert("This form requires a PDF viewer that appears to be Reader or Acrobat", 0, 0);
    } else {
    this.getField("JavaScriptWarning").display = display.hidden;
    setReadWrite(aFieldsReadWrite);
    }
    return true;
    }

    Init();

     

    And a will save script::

     

    this.getField("JavaScriptWarning").display = display.visible;

    setReadOnly(aFieldsReadWrite);

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points