Unlock the power of Acrobat SDK through our community.
Recente
I have three fields in a PDF form and I need to calculate one of the fields using the other two fields. Please see below: Field A is a user input numeric field of format $12345.67Field B is a user input numeric field of format 12345.678Field C is a calculated numeric field of format $12345.67 I need the following formula as a Javascript for Field C:C=A*(1-(B/100)) example: $4500*(1-(1.059/100)) go to Field C ($4452) Thank you!
I have a full paid suite - and can no longer print I have tried the "work arounds" here https://helpx.adobe.com/acrobat/kb/error-pdf-creation-cannot-continue.html But I have to do this daily. It used to work - so whats going on?
I have a two page document &, I want to use Action Wizard to center the page contents, using an Exectute Javascript command. Unfortunatelly I know nothing about Javascript, can anyone please help me with a script do do this? All the information on the attached two page pdf is currently aligned to the top left, I cannot adjust how its printed to PDF because it is outputted via an ancient 16bit program. Thanks, in advance for any help and advice!John
Hello together. I created a form with several pages. The first two pages are the completion instruction. Now I created a button on the first page to delete the first two pages.In the properties of the button: Action - release mouse button - execute javascript: this.deletePages({nStart: 0; nEnd: 1});In Acrobat Pro it works properly. In Acrobat Reader DC nothing happens.I also tried to transfer the delete command into a document script and call this function with the button click, but nothing changed.Can someone tell me what the problem is?Thanks in advance.
I am looking to use a check box to show or hide a field. The only thing is when the check box is checked i want a field to be filled with a calculated number. But when the check box is unchecked i want it to fill with a 0. Is this possible? Thanks in advance
I am using AutoMailMerge and I am trying to add a JavaScript to check if a field value is "1" then insert image in the image field. It's working with this code, but it doesn't do the else if conditions, all exported/processed PDFs contains the first image only (Circle1.png). This is the code:var f = this.getField("Image1_af_image"); if (f.value = 1) { f.buttonImportIcon("C:/Users/EslamSamy/Desktop/Circle1.png"); } else if (f.value = 2) { f.buttonImportIcon("C:/Users/EslamSamy/Desktop/Circle2.png"); } else if (f.value = 3) { f.buttonImportIcon("C:/Users/EslamSamy/Desktop/Circle3.png"); }
I was unable to respond to my original post, so I'm recreating it because I'm still hoping to find some help with my problem... I hope this is okay.So, some history.My original question was: Is it possible to create a fillable PDF form that open another PDF file and fills fields based on information from the first file.The answer was a resounding yes with instructions on how to make it work. The problem that I ran into was, while it worked on my computer - where I'm running Pro and another computer where we are running Standard - I am unable to make the button work on a terminal running Reader.My company is running off a shared drive on the X drive on all computers, the files would be saved and held in this location for everyone in a particular department to access and use.We attempted to open the files from the same location and we attempted to open the files from an attachment in the Master PDF. All solutions worked on my computer (Pro) but I am unable to make it wo
I am using a Java Script below to randomly generate a number used for a quote number: this.getField("Quote #").value = (Math.floor(Math.random()*Math.pow(10,13))); It does as it should, everytime you save or close the pdf it generates a new rnadom number. Is there a way once a copy has been saved that it saves that random number that was generated? I am trying to use this for generating a quote number to keep on file but once it is saved and reopened it generates a new number. Thanks for your help!
I have fields that are autopopulated based on radio button selection of another field (point values 0-5 or fewer options for some). I then have a field (named TotalPoints) that sums these values, minimum total points=1, maximum=23 (integers)My third field (named Accreditation Fee) needs to display a price (or simply a number) based on the total points.If the points > than 15, I created a field (named ContactOCPD) with the folloing JavaScript (located in custom caluculation script) that works perfectly:var t = this.getField("TotalPoints").value;if (t > 15) {event.value = "Contact OCPD";}else {event.value = "";}I created another field (which will sit on top of field from 4) with the folloing JavaScript. Nothing happens:var t = this.getField("TotalPoints").value;if (t = 0) {event.value = 0;}else if (t > 0 && t < 4) {event.value = 500;}else if (t > 3 && t < 7) {event.value = 1000;}else if (t > 6 && t < 9) {event.value = 2000;}else if (t
I am trying to write calculation for when a checkbox is selected a fee will calculate based on "Subtotal" and "Tax" boxes multiplied by .035So if Checbox7 is selected (Subtotal + Tax) * .035
Hello all,I'm creating some dynamic stamps in Acrobat. There are no problems with displaying dates, identities etc. But now I'm trying zu create a stamp that asks the user to enter a number that shall be displayed in the stamp. This stamp works great - but only when I use it in a PDF-document for the first time. When I use it again in the same document, I can not enter another number - it automaticly displays the number I entered without asking again. No chance if I delete the first stamp either. It still remembers the number I entered before. If i use the stamp in another PDF-document, it starts again: First use: I can enter the number. If I use it again ... no chance ... *grrr* I'm using this bit of code in Acrobat Pro DC (2020.009.20067), German: var cAsk = "Enter number: ";var cTitle = "xxx";if(event.source.forReal && (event.source.stampName == "#stampname")){ event.valu
I am using C# and Spire PDF to merge PDF files and set field values. The form is not intended to allow manual entry of any field data. The user enters their values using an HTML form - their entries are saved to a database and then programmatically entered into the PDF form. So far everything above is working fine, but the form requires calculation and field formatting. Some fields are percentages, some are currency, some are integers, etc. My problem is that field formatting and Javascripts do not get triggered when the field values are entered in C#. I know the scripts work and I know the field formatting is correct since it does all trigger once I change a field manually. How can I trigger field formatting and calculations after programmatically setting field values?
This is a simple question about the checkbox. My environment is not English.When I create a check box, the following strange characters appear in the Export Value field in the Options tab. I'm guessing it's probably garbled for some reason.・・0o0DPreviously, some operation code related to checkboxes did not work as intended. I didn't understand the cause at all so I was like addicted anything to it for a few days. Finally, I was gazing at this strange characters. I tried rewriting this to "On" and it suddenly started to work. What was originally written here? And is this a non-English versions bug?
Helloi want to stamp dynamically on the pdf documnets which were received by an outlook email as attachments.i created a dynamic stamp using two text fields (Received Date and Time) with user manually input the data and it is working fine.but, i would like to know is there any way, so that dynamic stamp would take the two values ((Received Date and Time) dynamically from the outlook email.For the time being , I tried creating a macro in outlook to update an excel file with these two fields.but i stuck in updating javascript to take that values from excel file for the text fields in the pdf dynamic stamp.i am new the javascript. could anyone help me with this please.i hope i described my problems well and thanks for your supportregardsShas
I understand that I can turn on/off the automatic calculation of field values in the Preferences > form tab. Is there a method to put this on a button in a form? Normally I would like to leave it off and let the whole calculation happen only once when the button is pressed.
I saw a note about resolving an Acobrat XI issue by running the Adobe Reader/Cleaner application. Does this apply to Acrobat Pro DC Subscription?
I import an mp4 movie into my pdf. I then set the page for the movie to start when the page is viewed. And set the movie to stop playing when the page is closed. I want to change the skin and playback option tools but there are no options made available. So leave at the set standard to show all playing tools on grey 75% transparency. I create a placeholder image and import. OK and save! I then go through the pdf in full screen presentation mode. The movie only opens when clicked on and does not stop playing when I move on to another page? What am I doing wrong?
Is there a sample plug in, written in C#, that is a good intro? Myabe just 1 button added to the Acrobat menu that inserts text at a specific place?thanks - dave
Hello everyone,I am trying to write a folder level script using javascript for acrobat API in acrobat pro. It should post to a HTTP server by a click on a toolbar button. I wrote the script using Net.HTTP.request() method which has a parameter 'aHeaders' to pass some headers along with the request. Since I am developing this for an organization, I need to pass some headers like Content-Type, Cookie, etc. When I try to pass a cookie, it does not pass through acrobat or we can say acrobat filter it out and at the server, I receive all headers in the request which I had added except the cookie. I checked this with the help of a network analyzer tool, Wireshark.Can anyone provide a clue as to why is this happening? How can we solve this? Any help would be highly appreciated.Thanks. Edit: Below is my code for the same: ajax = app.trustedFunction(function (furl){ app.beginPriv(); try { Net.HTTP.request({ cVerb: "POST", cURL: furl, aHeaders: [ {name: "Content
I need aformula to caluculate the LTV Its the Loan request of $230,000 / Lowest selling price of $300,000 The answer is 76%
Hi Community - I am not familiar will code and need a simple Javascript code for a fillable pdf. I want to assign a dollar value to 3 radio buttons ("Basic": $ 25.00, "Pemitted": $50.00, or "Combination": $50.00) and to a check box for an option ("Expedited": $25.00). The calculated value, depending on the selections, will calculate in a seperate total box.Thanks in advance for your assistance.C
Hello all, i was using a script in Acrobat 11 pro. It is working fine. Now i upgraded to Acrobat DC Standard. Icon is showing in the tool bar but while clicking it is not executing the script. I have total 5 scripts. Am I missing anything in Acrobat DC Standard and do i need to change anything in the script. Please provide me a solution. Thank you.
I have a date field in my PDF that is using a custom calculated script to get the date value from another date field. I want to be able to have the option to manually change the date in that field using its own date picker. The problem I have is that my current script partially works but it looses the focus and reverts to the custom calculated value when I continue to work with other fields. This is the script that I 'm using: //event.target is the current date field I want to execute this script var a = event.target; if (getField("myOtherDateField") !="") { var s = a.value = this.getField("myOtherDateField").value; var d = util.scand("mmmm, d yyyy", s); d.setDate(d.getDate()+0); event.value = util.printd("mmmm, d yyyy", d); } else { if (a.value = event.changeEx) { a.value = event.change; } } In the code above I know there is a lot wrong. I understand that event.change and changeEx is normally used with dropdown m
Can I use the API to add hyperlinks in the document to areas within that same document? That is, can the API replicate/replace the functionlaity of the Link tool?
I have a drop down field "Weight" where I want the drop down field options to be the values from various text fields.Speficifically I have text fields Wt1, Wt2, Wt3, Wt4, and Wt5. The values of these text fields is determined based on other fields and user input.I would like the drop down options that appear in "Weight" to be the values of these text fields.I've tried something like the below. with no luck: var wt1 = this.getField("Wt1").value;var wt2 = this.getField("Wt2").value;var wt3 = this.getField("Wt3").value;var wt4 = this.getField("Wt4").value;var wt5 = this.getField("Wt5").value;this.getField("Weight").setItems([wt1,wt2,wt3,wt4,wt5]); I suspect it is an easy thingto do just don't know the code or where to put it, i.e., as validation, caculation, etc.Thanks in advance for any help on this.
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Você já é cadastrado? Entrar
Ainda não tem uma conta? Crie uma conta
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.