Unlock the power of Acrobat SDK through our community.
Recently active
Looking for a Document level script and Field level script that will ignore blanks in the average but will count 0s in the average. I have several fields for subaverages and a cumulaitve average. I have been using these two scripts to ignore blanks but now they want the 0s in the averages. Any suggestions would help! function calcAverage(fields, ignoreBlanks) {var total = "";var n = "";for (var i in fields) {var f = this.getField(fields[i]);if (f==null) {console.println("Error! Can't locate a field called: " + fields[i]);continue;}if (f.valueAsString=="" && ignoreBlanks) continue;total+=Number(f.valueAsString);n++;}if (n=="") event.value = "";else event.value = total/n;} calcAverage(["PLO_1_a", "PLO_1_b", "PLO_1_c", "PLO_1_d", "PLO_1_e"], true, true);
Hello. I'm trying to have two fields in Acrobat automatically calculate based off two other fields filled in by the employee for our employee bill back form. The employee will fill in the field Total Hours and the field AmountHr (amount per hour). I then need the field named Bill Back Monies NMI to calculate what 25% of Total Hours*Amount/Hr is, and another field called Total Bill Back Monies Emp to calculate what 75% is. I know this sounds simple, but I've never written formulas/script in Acrobat.
Hi everyone,In Acrobat DC I created a custom Tool, containing some custom Actions: Now I want to share the Tool in my company. So I exported it to a TestTool.aaui and the Action to TestAction.sequ. When I import the Tool and Action files afterwards on a new computer, the Tool doesn't contain the Action:I still have to assign the Action to the Tool manually on every single computer (this is not very handy).How do I allow users to simply install the Toolbox, already containing all of the new Actions, without having the users to configure it themselves?Thanks for your help!Regards.
Hi everyone,Is it possible to restrict editing of a pdf with a permission password in javascript?Is it also possible to set the password security settings in javascript? (printing allowed, changes not ... etc.)Regards.
Hello everyone,I am trying to create a form with three drop down lists. With the last drop down list giving me different information based on the first two drop down selections. Is it even possible? For example, the first drop down is "grades" with options: 9, 10, 11, and 12. The second drop down is the "subjects" English or History. The third drop down "Standards" should give me the proper information based on the previous two drop down selections. For example, 10th grade history should give me some drop down options like: H10.1, H10.2, and H10.3 and 9th grade English should give me drop down options like: E9.1, E9.2, and E9.3. Thank you in advance for any guidance. P.S. I am using Adobe Acrobat DC
I need help with sorting of a created portfolio in Visual Basic 6 with JavaScript and Acrobat Pro DC. I can create successfully a portfolio with some entries. I want to sort these entries by a specific sort order. I tried this by entering a sorting code into the description field as a workaround. This works. But only if I manually change the sort order at the portfolio: Dim AcrobatApp As Object 'Acrobat.CAcroApp Dim AcrobatDoc As Object 'Acrobat.CAcroPDDoc Dim jso As Object Dim Collection As Object Set AcrobatApp = CreateObject("AcroExch.App") Set AcrobatDoc = CreateObject("AcroExch.PDDoc") AcrobatApp.Hide Set jso = AcrobatDoc.GetJSObject Set Collection = jso.App.newcollection() Collection.addField "index", "0", "S", 3 Collection.importdataobject("readme", "/c/Test/readme") jso.ResetAttachmentDescription Collection, "readme") Set varAttachment = Collection.getDataObject("readme") Debug.Print varAttachment.Name & ", " & varAttachment.path & ", " & va
Hello All,thaks for your help! I have question regarding Digitial Signature, I create a custom script for the Digital Siganure and it's working fine, but I'm passing the null user name and Passoword/ wrong password it open the above page, is there any way we can hide this or disable it.I'm using the below box to pass the user name and passoword.
I want to enter a time in a field, but I want the system to automatically put in the colon. Example: I enter 830 and the system enters 8:30
I tried everything I can think of and just can't get this to work.In my "field1" validate tab I use this custom codeif(event.value > 0){event.target.textColor = color.blue;}else if(event.value < 0){event.target.textColor = color.red;}else if(event.value == 0){event.target.textColor = color.white;}field1 get it's value from another field. I want it to show if 0= white, if bigger then 0=blue, if lower then 0=red but the colors are mixed up,for example if number is 5 it should be blue but is white, 0 is red and -2 is blue but in field properties it shows correct color ( example in the field1 value is 5 it show white color but in properties it's blue) .If I enter value manually it doesn't change colors at all.
If I use this code for example AFNumber_Format(2, 0, 0, 0, "$", true); how can i get currency to show on right side of value? also can it have 2 currency symbol one on the left, and one on the right?
HiI have a pdf that contains dropdown menu for type of ID document. In my example, the dropdown option is 'passport'. I want to then create a script that will add my total number of 'crew' if the fields contain the 'passport' dropdown. Ie if I select 'passport' on a row, then automatically the total crew is 1. On next row, if i add 'passport' again, totla crew is now 2. If Passport is not selected on a row then it doesnt add that as a person. The drop down has to be selected to 'Passport' for it to register a person and then add it from each row if selected.
Total nubie here with no knowledge of javascript yet. I have one last item I need to complete a form I am working on. I need to take the amounts of two fields and check it against a drop down menu of Yes or No to determine if the items should be taxed 6%. The formula someone provided to me didn't work. It was:var a = this.getField("Item3_Amt").value; var b = this.getField("Item4Amt").value; var c = this.getField("Dropdown").value; if(c == "No"){event.value = "$0.00"; }else event.value = (a+b)*0.6; Unfortunately it doesn't work. Can anyone tell me what the problem might be?Also, after looking at the form a bit more I think it would work better to replace the dropdown with a check box. So what would a working formula look like with a checkbox instead of the dropdown.For you guys with the knowledge, your awesome! Thanks
Hi,I require some help regarding JS in Acrobat DC.I've been looking in every document and every corner of the internet and I just can't seem to find what I need.What I require is to programically get the format currently applied to a text field, (for example, none, number, percentage, etc.).To be clear, I do not need to know what type of data would currently be in the field's .value, as it can have nothing at all at that moment.What I need to know is what that field is currently formatted for (Properties > Format).Also, yes, I know you can just apply the right format to that field programmically likeAFNumber_Format(2, 0, 0, 0, "", true);That is also not what I want. I want to apply further code on the field only if it is configured for a wrong date or number format. And for that I need to know what format it has beforehand.I'm trying to develop scripts to automatically detect wrong formats being applied to certain fields in large files, please help me out if you have any clue.
G'Day All, I am creating a fillable form for our daily work sheet. We give each form a unique number so that they never double up. I want to use the initials of the Supervisors name and the date the form was signed to create the unique number.Is this even possible? Thanks everyone!
Hi again,In JavaScript I want to select a stamp and add it to the PDF (works fine so far): this.addAnnot({ type: "Stamp", page: 0, rect: [36, 72, 288, 144], AP: "#DApproved" }); The stamp is now placed to the exact position and size defined in the code.Now I want to allow the user to place the stamp where ever he wants. (like when you select a stamp from the stamp toolbar)How should I proceede?
I want to check through the Links in a PDF via a javascript, but the Link object only has 4 properties (which are it's physical properties) and only one method to set a javascript action. Is there any way to determine the URL (or any other action) that is set for the link via javascript?
I got a book from John Deubert "Extending Acrobat Forms with JavaScript". Is there books like that but newer date?
Hi All,I have created a PDF form which includes JavaScript scripts and sensitive data such as URL to Submit the PDF to.The form is an application form and I am hoping to allow clients to edit the data in the text fields but not be able to access to the code behind the scenes, i.e. the JavaScript and the submission URL. I had a quick look on Google but it seemed to be people wanting to lock the forms down as a whole, where I am hoping to still allow the client to edit some fields.Whats the best way to do this?
Hi, I have been trying to write an app that will allow a PDF(s) file to be indexed (create a pdx file set). SO this user does not have to open acrobat to create the full text catalog manually. After much research and reading and dead ends I believe I have finally come up with a plan of action. Acrobat DC Pro comes with a "catalog" plugin that appears to be able to create a PDX file. It seems the best method for me to access this catalog plugin (API?) is to write a C++ application to call the catalog functions. I have not developed in C++ for a while but I used to. I downloaded Microsoft Visual Studio to create my app.Now I have hit a deadend again. Trying to find some example of using Visual Studio to access the acrobat plugin but getting nowhere. I have been through the SDK but can't seem to make any head way. Any example of calling any of the acrobat plugins would be helpful - like the search plugin. Thanks for any advice.
Hello my friends, I've a problem which I am hoping will be solved with your help:)I made a pdf form with calculating net and gross price where customer can type how many of products wants to buy and it works all fine (attachment). The problem is when I want to make a discount (for example 10%) of total price if customer order 2 or more products and I'm stuck. Do you have any ideas how I can make it happen? I can write JavaScript code but I dont know how to implement it into pdf. Is it possible to use the total net price as a variable? Any ideas will be very valuable, cheers!
I have made a simple form in acrobat with text fields and two fields for an image to be added by the end user. When this is viewed on a microsoft surface or Ipad, the image field does not open a dialogue box to attach an image. Any suggestions
I’m creating a template in Word 2016, and I have a couple of issues. Most of the fields have an on entry macro associated with them to force text input for the prior field. A message box comes up if the user tabs out of the field without inputting text.My first issue is this: The last field, E-mail, has an on entry macro for the field before it, Extension, and an on exit macro so if the user tabs out of the E-mail field a message box comes up.When the user completes the Extension field and tabs to the E-mail field, if they tab out of the field without entering text a message box comes up letting the user know they need to enter text into that field. However, when the user clicks the OK button the cursor advances to the first input field (Dropdown1). I would like it to stay on the Extension field, Text 13. Below is my coding: Sub ForceEmail()Dim Msg, Style, Title, ResponseOn Error GoTo fErrorIf ActiveDocument.FormFields("Text13").Result = "" Then Msg = "You must enter t
Hello all,I am trying to create an if /then statement on a sales agreement that needs to calculate different amounts of tax based on the amount of the sale. I don't know if I am using the wrong field names or what but I keep getting syntax errors.We have a 6% sales tax with an additional Education tax of .5% up to $5000. Everything over $5000 is a 6% tax. The name of the cell that has the value of the subtotal of the sale in it is called SubTotal, the "Tool tip" name is "$_Row_1"Here is my equation description:I want to calculate the amount of tax to charge based on the amount in the "SubTotal" cell.If statement: If cell named SubTotal is < $5000If True: then SubTotal * 6.5% (.065)If False (greater than $5000): then subtract $5000 from the SubTotal amount and multiply it by 6% (.06) and add $325 ($325 is 6.5% of the first $5000) Here is what I put in the calculation field for "Sale Tax": if(SubTotal<5000, SubTotal*.065,((SubTotal-5000)*.06)+325) What am
After a sleep Acrobat Standard DC keeps asking for signing.I use Windows 10 64 bits.Is there a way to avoid this?Thanks for your help,Daniel
I'm trying to do this lesson i have from a book but it doesn't work.I do everything as described in lesson but my result is 11.00 and not 11:00.Can someone help?
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.