1 2 Previous Next 65 Replies Latest reply on Jun 12, 2017 12:50 AM by try67

    Stamps

    philip43378290

      Hello,

       

      I read a lot on internet.
      Who can help me or put me in the right direction.

       

       

      I use Adobe Acrobat DC pro.
      I've created a stamp. When a user put this stamp on a document the 'stamp' ask for some questions :

       

       

      The user has to fill in the question. One question is the filename.
      So I want that when the user has filled in the questions that document with stamp will be saved in a folder and filename the user has filled in.
      I read a lot about mySaveAs and Adobe LiveCycle and buttons and Folder Level Scripts but it don't work.

       

       

      How can I give the information filled in by the user in the stamp to the Folder Level Script so the document will be saved with the filename the user has filled in ?

      And also for the folder. The folder : "/c/ " and then the company name the user has filled in.

       

      Thanks and regards.

        • 1. Re: Stamps
          try67 MVP & Adobe Community Professional

          This can be done, but it requires developing a custom-made script, as well as installing a script on the local machine.

          Also, the folders will have to exist in advance. A script can't create a new folder, nor can it save a file to the root C:\ folder, as that is not considered a safe path.

          • 2. Re: Stamps
            testt70366819 Level 1

            Thx for the info.

            Can you give me the code for the custom-made script as well as the script on the local machine ?

            I used this script, I found on internet, but doesn't work.

            1) This scripts save as file : mySaveAs.js

            2) Your button code on the "calculate" button.

             

            Can you help me ?

             

            Your folder level function:

             

            mySaveAs = app.trustPropagatorFunction(function(doc,path) {

            app.beginPriv();

            doc.saveAs(path);

            app.endPriv();

            })

             

            myTrustedSpecialTaskFunc = app.trustedFunction(function(doc,path) {

            // Privileged and/or non-privileged code above

            app.beginPriv();

            mySaveAs(doc,path);

            app.endPriv();

            // Privileged and/or non-privileged code below

            });

             

             

            Your button code:

             

            // build file name

            var myFileName = doc.getField("LastName").value + doc.getField("FirstName").value + ".pdf";

            // add folder name

            myFileName = "/c/temp/" + myFileName

            myTrustedSpecialTaskFunc(this, myFileName);

            • 3. Re: Stamps
              try67 MVP & Adobe Community Professional

              Your code is pretty much there, I think, but to access the parent document from a calculation script in a stamp you need to use event.source.source, not "doc" or "this".

              • 4. Re: Stamps
                Thom Parker Level 3

                You've got a bit of a conundrum.  A stamp script, i.e., the code in the calculate script on a field on the stamp is very limited. It is run before the stamp is applied to the document.  In order to save the file after the stamp has been applied requires a code to be run after the dynamic stamp has already finished running. So a stamp script is not the correct place to save a file. There are also other issues with document and system state that will probably prevent you from saving a PDF from a stamp script.  And of course, as try67 has pointed out, the script in your post points to the wrong document.

                 

                To do this requires a folder level automation script that performs all actions, accept applying the values to the dynamic stamp.

                 

                First, the code you show above is overly complex. You only need this.

                 

                mySaveAs = app.trustedFunction(function(doc,path) {

                app.beginPriv();

                doc.saveAs(path);

                app.endPriv();

                });

                 

                That's it. the app.trustPropagatorFunction() is for adding trust to object members.

                 

                Next, how are you creating the popup dialog that collects all the info?

                • 5. Re: Stamps
                  testt70366819 Level 1

                   

                  • 6. Re: Stamps
                    testt70366819 Level 1

                    So. I've a PDF document.

                    I open the PDF stamp.

                    Put the stamp on the document and will save this document with the stamp on it.
                    The stamp ask for "Filename". The user fill in a name. In the future I also want to ask for foldername.
                    So I'll that the document with the stamp will be saved under that name.

                     

                    Stamp has name 'Filename' :

                    Code under Filename button under calculate :

                     

                    var cAsk = "Give Filename";

                    var cTitle = "Filename";

                     

                    if( event.source.forReal &&

                    (event.source.stampName == "#Filename")){

                    var cMsg = app.response(cAsk, cTitle);

                     

                    event.value = cMsg;

                    event.source.source.info.DocumentState = cMsg;

                    var myFileName = event.source.source.Filename + ".pdf";

                    myFileName = "/c/temp/" + myFileName

                    myTrustedSpecialTaskFunc(event.source.source, myFileName);

                    }

                     

                     

                    So what's wrong in the code ?

                    It save a file in de c:/temp dir with the name undefined.pdf and the stamp is NOT visible.

                     

                    Thx

                     

                    If I understand you correctly I don't need the myTrustedSpecialTaskFunc script ?

                    • 7. Re: Stamps
                      Thom Parker Level 3

                      The trusted function is needed to save, but the "app.trustedPropagatorFunction" is not necesary. That's all I as saying.

                       

                      Now, to get a clearer idea of what is happening in your current script, and in the future, please open the console window and see if any errors are reported.

                      Let me know what you see and we'll go from there.

                       

                       

                      • 8. Re: Stamps
                        testt70366819 Level 1

                        Hello,

                         

                        No errors in the console.

                        I open the console. Put the stamp. Fill in the name and that's it.

                        No error in the console and in the c:/temp/undefined.pdf file.

                        So can you help me with this info.

                         

                        I changed the line myTrustedSpecialTaskFunc(event.source.source, myFileName);

                        into mySaveAs(event.source.source, myFileName);

                         

                        And I changed the script.

                        Folder mySaveAs script : C:\Program Files\Adobe\Acrobat DC\Acrobat\Javascripts

                        PDF open = Adobe Acrobat DC Pro

                        • 9. Re: Stamps
                          Thom Parker Level 3

                          Ok, so if the "undefined.pdf" file did not exist before you placed the stamp, then you have shown that you can in fact save a PDF from a stamp script. This is very interesting because it shouldn't happen. But you have also proved my first point.

                           

                          Now please refer to my previous post:

                          A stamp script, i.e., the code in the calculate script on a field on the stamp is very limited. It is run before the stamp is applied to the document.  In order to save the file after the stamp has been applied requires a code to be run after the dynamic stamp has already finished running.

                          The reason the stamp is not in this saved file is because the stamp does not exists when the stamp script is run.  The save has to happen after the script is finished running. Hence the conundrum. 

                           

                          The solution is to create an automation script that places the stamp on the PDF, then saves the file after the stamp is on the PDF.

                          • 10. Re: Stamps
                            testt70366819 Level 1

                            I changed the code in the calculate (see below)

                            Now the PDF is saved with the name you filled in the "Filename" text box.
                            But the stamp is not on is. Is like the original PDF.
                            The stamp = Filename : (and then the name you filled in).
                            But the saved file under c:/temp/ has the name I filled in but without the stamp.

                            Example : I fill in the filename : test and the filename under c:/temp/test.pdf.
                            That OK but how can I get the file with stamp ?When I fill in the console  : this.filename or this.documentfilename is for both undefined.

                             

                            var cAsk = "Give Filename";

                            var cTitle = "Filename";

                             

                            if( event.source.forReal &&

                            (event.source.stampName == "#Filename")){

                            var cMsg = app.response(cAsk, cTitle);

                             

                            event.value = cMsg;

                            event.source.source.info.DocumentState = cMsg;

                             

                            var Filenaam = cMsg;

                             

                            var myFileName = Filenaam + ".pdf";

                             

                            myFileName = "/c/temp/" + myFileName

                             

                            mySaveAs(event.source.source, myFileName);

                             

                            }

                            • 11. Re: Stamps
                              Thom Parker Level 3

                              And the reason the file is named "undefined.pdf" is because of this line:

                               

                              var myFileName = event.source.source.Filename + ".pdf";

                               

                              event.source.source refers to the document object being stamped,

                               

                              but there is no "Filename" property of the document object. It should be

                               

                              var myFileName = event.source.source.documentFileName + ".pdf";

                               

                              Something that you should always do when writing code (any code for anything) is to verify the names of the things referenced in the code.

                               

                              For example, open the console window, enter and run this:

                               

                              this.Filename

                               

                              It will return "undefined"

                               

                              Now enter and run:

                               

                              this.documentFileName

                               

                              See what happens

                               

                              • 12. Re: Stamps
                                testt70366819 Level 1

                                I'm not an expert but I put the save command at the end of the calculate script.
                                I added app.alert and I checked the folder when the file is generated.
                                I put the stamp and filled in the name.
                                Then an app.alert. The file is not generated.
                                When I push ok the file is generated without the stamp.

                                 

                                Do I write a code ?
                                Can you help me with that ?
                                I think I almost there.So a little push to the solution :-)

                                • 13. Re: Stamps
                                  Thom Parker Level 3

                                  The test you described is an excellent demonstration of how the stamp is applied to the document after the stamp calculate script is finished running. In fact, in your example the app.alert box prevents the script from finishing, thus ensuring that the file will be saved without the stamp on it.

                                   

                                  Again the solution is to write an automation script that applies the stamp and then saves the document. Basically you need to extend the folder level script with a menu item or toolbar button to perform these two steps. I would suggest searching the internet for "how to make an Acrobat menu item", "Acrobat Automation Script" and "Automate PDF Stamp", "Apply PDF stamp with script", that sort of thing.

                                   

                                  We can certainly help with the next step.

                                  • 14. Re: Stamps
                                    testt70366819 Level 1

                                    OK. I've already a menu script that saves the file with stamp in de folder.

                                    But I want to create a stamp (that ask for some question like filename, department, ...) and then, with a push on a button (or something like that) that saves the document with the name the user filled in the right folder.

                                    I thought I read that on the internet that's also possible and handy for the customer.

                                    Otherwise they have to go to the menu .....

                                     

                                     

                                     

                                     

                                    I'll search on the internet for a script and keep you informed.

                                    • 15. Re: Stamps
                                      Thom Parker Level 3

                                      The best thing to do is to ask all the questions in the menu script. Place the collected values into something that is accessible to the stamp script, then place the stamp. The stamp script then pulls the values from the common storage location. A good candidate for this storage is the document "info" object on the PDF being stamped.  By default, the current document will be "this" when the menu item is selected. 

                                       

                                      For example:

                                      // In the menu script

                                      this.info.myValue = app.response(cAsk, cTitle);

                                       

                                      // in the a field calculation Script on the stamp

                                      event.value = event.source.source.info.myValue;

                                       

                                       

                                      • 16. Re: Stamps
                                        testt70366819 Level 1

                                        Sorry Thom but know you lost me :-(

                                         

                                        What you mean I don't understand !!

                                         

                                        What I've right now is :

                                         

                                        - The user opens a PDF document

                                        - Goes to stamp

                                        - Choose the 'filename' stamp

                                        - Put that stamp somewhere the document

                                        - Fill in some information

                                        - Then goes to menu : File - Save the Filename doc (a menu item I created with MenuItem.js)

                                           But I've problems to put the value off some files to save that document (I didn't have the code to put the value from field Filename to     save the document with. You helped me to save the document with that name but without the stamp.)

                                        - User go to File - Save Filename

                                        - User filled again the filename

                                        - Document with stamp is saved under the name the user filled in

                                         

                                        But the has to fill in twice the filename.

                                         

                                        My idea was to create a stamp that ask for the information. A "save" button on the stamp that save the document with stamp.

                                        But that seems to be very difficult.

                                         

                                        And now you telling me to use te menu script to ask for the information and to fill in the stamp ???

                                        Sorry but that I don't understand.

                                         

                                        Hopefully you'll still help me.

                                        • 17. Re: Stamps
                                          Thom Parker Level 3

                                          Your current strategy has two steps.

                                           

                                          1. apply the stamp with the regular stamp tool

                                          2. use menu driven automation script to save file

                                           

                                          Let's stick with that for now. Forget what I said about putting it all in one script.

                                           

                                          You want the file information to be collected in one location, and then used for both the stamp and the save script.

                                          To do this,

                                             1. collect the information in the stamp script.

                                             2. save it to a common location, such as the document info.

                                             3. the save script then uses this info to rename the document.

                                          • 18. Re: Stamps
                                            testt70366819 Level 1

                                            if I understand correctly :

                                             

                                               1. collect the information in the stamp script.

                                             

                                                      That I do already under the calculate tab.

                                                       Let's say I ask for the value of Filename and Department

                                                              

                                                                     var cAsk = "Give Department";

                                                                     var cTitle = "Department";

                                                                     if( event.source.forReal &&

                                                                     (event.source.stampName == "#Filename")){

                                                                     var Department = app.response(cAsk, cTitle);

                                                                     event.value = Department

                                                                     event.source.source.info.DocumentState = Department;

                                             

                                              2. save it to a common location, such as the document info.

                                                           How can I do that ?

                                             

                                               3. the save script then uses this info to rename the document.

                                                            This code under a "save" button. This mean you fill all information and then you push on the "save" button and the document with stamp will be saved under filename and department

                                                            var Filenaam = cMsg;

                                                            var myFileName = Filenaam + ".pdf";

                                                            myFileName = "/c/temp/" + myFileName

                                                            mySaveAs(event.source.source, myFileName);

                                             

                                            Is this correct ?

                                            Thanks             

                                            • 19. Re: Stamps
                                              Thom Parker Level 3

                                                                     event.value = Department

                                                                       event.source.source.info.DocumentState = Department;

                                               

                                                2. save it to a common location, such as the document info.

                                                             How can I do that ?

                                              Look at the line of code immediately above "2. save it to..."

                                              This code creates a new entry in the document info called "DocumentState".  This new document info entry is accessed in the menu save script as "this.info.DocumentSate". Just as I showed in my previous post. You might want to go back and re-read what I've written.

                                              • 20. Re: Stamps
                                                testt70366819 Level 1

                                                Hello,

                                                 

                                                Sorry but I can't figured out.

                                                 

                                                This is what I do now ?

                                                 

                                                Put the stamp on the document.

                                                Stamp ask for some questions. One of the questions is "Give supplier" ?

                                                (Because I want to save the document with stamp in the 'supplier' folder'.

                                                 

                                                This is the code in the Custom calculation script for field 'Supplier' :

                                                 

                                                var cAsk = "Supplier";

                                                var cTitle = "Supplier";

                                                 

                                                if( event.source.forReal &&

                                                (event.source.stampName == "#stamp")){

                                                var Supplier = app.response(cAsk, cTitle);

                                                     event.value = Supplier;

                                                     event.source.source.info.DocumentState = Supplier;

                                                }

                                                 

                                                Then I do File - 'Save mystamp' in the menu (created by MenuItem.js)

                                                app.addMenuItem({

                                                cName: "Save mystamp",

                                                cParent: "File",

                                                cExec: "mySaveProc();",

                                                cEnable: "event.rc = (event.target != null);",

                                                nPos: 7   

                                                });

                                                 

                                                In the mySaveProc file:

                                                 

                                                var mySaveProc= app.trustedFunction(function(myDoc, myPath)

                                                {

                                                var myPath = "/c/" + Supplier + "/test.pdf";

                                                     app.beginPriv();

                                                    var myDoc = event.target; 

                                                     myDoc.saveAs(myPath);

                                                     app.endPriv();

                                                return myDoc; 

                                                });

                                                 

                                                But this doesn't work.
                                                What is wrong in the code ?

                                                How do I get the value of the 'Supplier' field to the mySaveProc file ?

                                                So the document with stamp will be saved in the supplier folder.

                                                 

                                                Thanks.

                                                • 21. Re: Stamps
                                                  Thom Parker Level 3

                                                  You are very close, but your code has a couple of problematic spots.

                                                   

                                                  1. In the code that creates the menu item =>  cExec: "mySaveProc();",

                                                  the function mySaveProc is called with no parameters, yet it has 2 inputs,  This is not an error, just neatness, get rid of the two inputs.

                                                   

                                                  2. In the "mySaveProc" function the "Supplier" parameter is undefined.  What you want to use is the storage location for "Supplier", like this:

                                                   

                                                  var mySaveProc= app.trustedFunction(function(myDoc, myPath)

                                                  {

                                                       app.beginPriv();

                                                      var myDoc = event.target;

                                                      var myPath = "/c/" + myDoc.info.DocumentState + "/test.pdf";

                                                       myDoc.saveAs(myPath);

                                                       app.endPriv();

                                                  });

                                                   

                                                  It also does not need to return a value.

                                                   

                                                  This will work, but if you have issues, report back and I'll show you how to do some debug

                                                  • 22. Re: Stamps
                                                    testt70366819 Level 1

                                                    Hello Thom,

                                                     

                                                    I'm a little bit confused about question 1.

                                                    cExec: "mySaveProc();",   has no parameters. But in the mySaveProc I've two parameters myDoc and myPath.

                                                    But in the example you adapted I see stil myDoc and myPath ??

                                                    var mySaveProc= app.trustedFunction(function(myDoc, myPath)

                                                    So do I've to add these two parameters in the cExec: "mySaveProc();",  or do I've to delete in the mySavedoc.js script ?

                                                    a : cExec: "mySaveProc(myDoc, myPath);", 

                                                    b : var mySaveProc= app.trustedFunction(function()

                                                    Witch one is the correct one ?

                                                     

                                                    Then the second question is myDoc.info.DocumentState

                                                    How does the script knows that it is the supplier field ?

                                                    Because I want to put several values to the mySaveProc script from the stamp to save the  file.

                                                    The supplier for the folder. And the filename to save the file. I think 5 field values from the stamp I want to put in the mySaveProc script to save the file.

                                                     

                                                    Thanks for you answers and patience.

                                                    • 23. Re: Stamps
                                                      testt70366819 Level 1

                                                      I test a lot and the Supplier value = undefined.

                                                       

                                                      I added in the mySaveProc script :

                                                       

                                                      var supplier = myDoc.info.DocumentState.Supplier;

                                                      app.alert(supplier);

                                                       

                                                      The value is undefined.

                                                       

                                                      When I do :

                                                       

                                                      var supplier = myDoc.info.DocumentState;

                                                      app.alert(supplier);

                                                       

                                                      The value is 'null'.

                                                       

                                                      What do I wrong ?

                                                      • 24. Re: Stamps
                                                        Thom Parker Level 3

                                                        First, My Bad.  I just copied your code for the "mySaveProc" and forgot to remove the inputs Here is the revised code

                                                         

                                                        var mySaveProc= app.trustedFunction(function()

                                                        {

                                                             app.beginPriv();

                                                            var myDoc = event.target;

                                                            var myPath = "/c/" + myDoc.info.DocumentState + "/test.pdf";

                                                             myDoc.saveAs(myPath);

                                                             app.endPriv();

                                                        });

                                                         

                                                        Now, about the "Supplier" value.  In the stamp script you have this line:

                                                         

                                                           event.source.source.info.DocumentState = Supplier;

                                                         

                                                        This code places the "Supplier" data value into "doc.info.DocumentState"

                                                        where "doc" is a pointer to the document object in question. In this case the document being stamped. 

                                                        Check on it. Open the Document Properties window and click on the custom tab. You'll see the value there.

                                                         

                                                        "myDoc.info.DocumentState.Supplier" is not a thing. It does not exists, because the code only sets "myDoc.info.DocumentState". Go with the code for "mySaveProc" as I've written it above.

                                                         

                                                        • 25. Re: Stamps
                                                          testt70366819 Level 1

                                                          Perfect. Perfect.  Thanks a lot

                                                          I have a file with stamp in the supplier folder.

                                                           

                                                          But, hopefully :-), my last question.

                                                          I want also save the document with invoice number and company name and ....
                                                          I think I ask 5 questions in the stamp and I want to use all 5 values in the mySaveProc script.

                                                          How can I do that ?

                                                           

                                                          Do I user for each field another command.
                                                          Example for company :

                                                           

                                                          event.source.source.info.DocumentState1 = Supplier;

                                                           

                                                          And

                                                          var myPath = "/c/" + myDoc.info.DocumentState1 + "/test.pdf";

                                                           

                                                          I'll test it meanwhile.

                                                          • 26. Re: Stamps
                                                            testt70366819 Level 1

                                                            When I use in the stamp the command (as test with 1)

                                                            event.source.source.info.DocumentState1 = Supplier;

                                                             

                                                            And

                                                            var myPath = "/c/" + myDoc.info.DocumentState1 + "/test.pdf";

                                                             

                                                            Then it works.

                                                            So, I think that's the solution.

                                                            If you've a better alternative then let me know ?

                                                            But I want to thank you for your help en patience.

                                                            But keep this post in mind want I'm going to finalize the stamp and maybe more questions

                                                            • 27. Re: Stamps
                                                              testt70366819 Level 1

                                                              Here I'm with a quick question :

                                                              I've a dropdown question with 3 options.

                                                              When the user don't choose a option and press on OK button than one, standaard option, (= blanco line) must be displayed.

                                                              Three options B, 3 and 6. So, when the user press OK then a blanco line must be displayed but now it displayed B.
                                                              I added a 4 option, blanco line, but he want display the blanco line. Always displayed B.

                                                              • 28. Re: Stamps
                                                                Thom Parker Level 3

                                                                Yes, this is the correct methodology, except you should name the info property for the data.

                                                                 

                                                                event.source.source.info.Supplier = Supplier;

                                                                event.source.source.info.InvoiceNum= InvoiceNum;

                                                                event.source.source.info.Company = Company;

                                                                 

                                                                These make a lot more sense than "DocumentState". 

                                                                Also, instead of the "app.response" box, I'd use a custom dialog. Dialogs however are much more difficult to create than the code we've just worked though.

                                                                • 29. Re: Stamps
                                                                  testt70366819 Level 1

                                                                  Hello,

                                                                   

                                                                   

                                                                  Is there also the possibility to check if the user filled in the correct information ?

                                                                  Example : the stamp ask for a period (YYYYMM) so a check if the data is 201706 and not AZDIKS of 201405 (2014 is before 2017)

                                                                   

                                                                  Thanks

                                                                  • 30. Re: Stamps
                                                                    try67 MVP & Adobe Community Professional

                                                                    If you're using a Dialog object you can do it in its validate event to prevent the user from proceeding (unless they click Cancel or close the dialog). Otherwise you can validate the input but if it's incorrect you can't prevent the stamp from being placed. You can only show an error message and force the fields in the stamp to be empty.

                                                                    • 31. Re: Stamps
                                                                      testt70366819 Level 1

                                                                      I've put the code below in the Validate tab :

                                                                       

                                                                      event.rc = true;

                                                                      if (event.value.length == 6 && event.value > 201700 && event.value < 203000) { event.target.textColor = color.orange; } else { app.alert("The entered value needs to be 6 characters long and format YYYYMM !"); event.target.textColor = color.red; }

                                                                       

                                                                      When the user enter a wrong value the value in the stamp is Red.

                                                                      That's OK.

                                                                      example : enter 201407 and you this value in Red. That's OK.

                                                                      But when you close the document (not Adobe) and you open the document again, because I've enter a wrong value in the stamp, then enter a good value example 201707 then this value is also in Red.
                                                                      So, how can I reset the values for all the fields in a stamp ?
                                                                      Is that possible ?

                                                                       

                                                                      Thx

                                                                      • 32. Re: Stamps
                                                                        try67 MVP & Adobe Community Professional

                                                                        - There's no such thing as "color.orange". Use this instead:

                                                                        event.target.textColor = ["RGB", 1, 0.5, 0];

                                                                         

                                                                        - Run this code to reset all the fields in the file:

                                                                        this.resetForm();

                                                                        • 33. Re: Stamps
                                                                          testt70366819 Level 1

                                                                          Where do I put the 'this.resetForm()' command ?

                                                                          I put this command in the first stamp field and this works when I open a PDF and put the stamp.

                                                                          But when I put the stamp and enter a wrong value. Then close only the document (but PDF is still open) and put the stamp again on the document the value is in red. Meaning that de value of the fields are still remaining and aren't reset.

                                                                          • 34. Re: Stamps
                                                                            try67 MVP & Adobe Community Professional

                                                                            This command needs to be at the top of the code. It will get executed before you apply the stamp, not afterwards. So it's possible that the old text will appear in the stamp's icon, if that's what you mean. That can't be avoided.

                                                                            • 35. Re: Stamps
                                                                              testt70366819 Level 1

                                                                              you can work with 'event.target.textcolor'= color.black

                                                                              The text.color orange (color.orange) doesn't exist. I configured it in the 'appearance' tab.

                                                                              Therefore i saw 'orange' text.

                                                                              When I changed the command to event.target.textcolor = color.yellow it's works.

                                                                              Thx for your quick respons.

                                                                               

                                                                              You can also see the link for the RGB code

                                                                              http://www.windjack.com/resources/Examples/ColorCalculator.pdf

                                                                              • 36. Re: Stamps
                                                                                testt70366819 Level 1

                                                                                on TERMINAL SERVER :

                                                                                 

                                                                                In which folder do I have to put the MenuItem.js and mySaveproc.js files (javascripts) ?

                                                                                In which folder the dynamic stamp ?

                                                                                 

                                                                                On my test computer, with Acrobat DC, the stamp and script works.

                                                                                Then I want to put the files on terminal server but it don't work.

                                                                                 

                                                                                Javascript folder : C:\Program Files (x86)\Adobe\Reader 11.0\Reader\Javascripts

                                                                                 

                                                                                Stamp :  C:\Users\USER\AppData\Roaming\Adobe\Acrobat\11.0\Stamps

                                                                                 

                                                                                I use the code you see above.

                                                                                In the stemp I ask for company. I choose a company and on my test computer I can save the file tine right folder.

                                                                                When I copy the files on terminal server then it don't work.
                                                                                When I use an app.alert for company the value is null. I see a screen with red cross.fsqqf

                                                                                 

                                                                                What do I wrong ?

                                                                                 

                                                                                Thx

                                                                                • 37. Re: Stamps
                                                                                  try67 MVP & Adobe Community Professional

                                                                                  You're not allowed to use Acrobat as a service on a server.

                                                                                  • 38. Re: Stamps
                                                                                    testt70366819 Level 1

                                                                                    Does that mean that I can't work with a dynamic stamp and Folder Level Scripts, I created on a local computer, on a terminal server ?

                                                                                    Are there work-arounds ?

                                                                                     

                                                                                    Thanks for the quick respons.

                                                                                    1 2 Previous Next