8 Replies Latest reply: Jul 19, 2012 12:26 PM by feltonjames RSS

    Reader extension

    feltonjames

      I have a form in Livecycle and I need to enable the reader extensions so they can save a filled out copy on their local machine and I can't seem to make it work.  Any help would be great.

        • 1. Re: Reader extension
          radzmar CommunityMVP

          Hi,

           

          you need at least Acrobat to enable save rights for Adobe Reader.

          In Acrobat X goto File > Save As ... > Reader Extended PDF.

          • 2. Re: Reader extension
            feltonjames Community Member

            Ok I have Acrobat and here is the snag, I have a auto calcuate date field and when I save the form with the reader rights the date then becomes static and will no longer auto calcuate......any thoughts on how to get around this?

            • 3. Re: Reader extension
              radzmar CommunityMVP

              What method do you use to populate the date field? I mean what script in what event?

              • 4. Re: Reader extension
                feltonjames Community Member

                I'm using Java script for the auto calculate field.

                • 5. Re: Reader extension
                  radzmar CommunityMVP

                  Ok,

                   

                  this is tricky but not impossible.

                  First you need to know the full somExpression of your date field.

                  Open the form in Acrobat, your field will be populated with a date.

                  Now open the JS Console (Ctrl + J) and erase the populated value.

                   

                  Type the following line into the console and confirm with the return button:

                  this.xfa.form.form1.Page1.DateField1.rawValue = null;
                  

                   

                  The syntax always starts with

                  this.xfa.form
                  

                  followed by the somExpression of the target object.

                  In my example it is

                  form1.page1.dateField1
                  

                   

                  Now, your field is cleared and you can apply the Reader Extensions from Acrobats menu.

                  • 6. Re: Reader extension
                    feltonjames Community Member

                    I was unable to to see any values in the JS console, I took a closer look at the live cycle form and there was some java code that I think isn't doing anything and Formcalc is what is being used when I look at the script ediitor in live cycle.  Is there a way around it with formcalc or should I change it to java?

                    • 7. Re: Reader extension
                      radzmar CommunityMVP

                      The language you use to populate the date has nothing to do with that, so you can stay with FormCalc.

                      In fact you propably don't have to change anything in your form.

                      All you have to do happens in Acrobat, because here you're add the Reader Extenstions.

                       

                      In Designer only check the somExpression of your date field.

                      In this case it's Form1.Page1.DateField1.

                      Screenshot_1.png

                       

                      In Acrobat open the JS Console.

                      Type the full reference expression into the console plus the new Value it should have, such as "null".

                      this.xfa.form.Form1.Page1.DateField1.rawValue = null;

                       

                      Press Ctrl + Return to execute that code.

                      The date field will be cleared immediately.

                      Now apply the Reader Extensions from Acrobat's menu.

                      Screenshot_2.png

                      • 8. Re: Reader extension
                        feltonjames Community Member

                        I can't thank you enough, I really appreciate all your help