Unlock the power of Acrobat SDK through our community.
Recently active
Hello experts. I am having trouble coding this PDF Form.I am trying to have a drop box at the top of my form that gives the option to select a hospital.Field1 has a selection of either Riverside Community Hospital or Los Robles Regional Medical CenterMy text boxes below would need to fill in Field2, Field3, & Field4 information that corresponds to each hospital. Here is what I have so far: I've also tried to paste it in the validate and calculate custom fields and nothing is happening to my Fields below. Please help! 🙂 if(event.value == "Riverside Community Hospital"){this.getField("field2").value = "Adrian Arevia";this.getField("field3").value = "Zach Johnson";this.getField("field4").value = "Adam Rudd";}else if(event.value == "Los Robles Regional Medical"){this.getField("field2").value = "Denise Bell";this.getField("field3").value = "Andrew Lane";this.getField("field4").value = "Natalie Mussi";}else {this.getField("field2").value = "";thi
hi, in my form i want to calculate average in 40 text fields. fields names are AB-1, AB-2, AB-3, etc up to AB-40. i have found bellow code that really works but only issue is that code not ignoring zero values. so can u pls help me edit bellow code to ignore zero. thanks.. // Initialize variablesvar num = 0;var sum = 0;// Loop through the input fields for (var i = 1; i < 5; i++) { var f = getField("AB-" + i); if (f.valueAsString) { // increment the non-blank field counter num++; // add the field value to the running total sum += +f.value; }}// Calculate the averageif (num) { event.value = sum / num;} else { // All fields are empty, so set to blank event.value = "";}PDF Form Field calculates AVERAGE incorrectly (PDF Forms)
Hello,I have a Script that batch Stamps Multiple Files. Would like that at each file the user is propmted to write which Stamp to Use (via a dialog box) this.addAnnot({type:"Stamp", page:0, AP:"MyStamp001", rec[x1,y1,x1,y1],})The idea is that "MyStamp001" is to be inserted by the User ("UserStampString"). If "UserStampString" Exists then Good. Else, if "UserStampString" deos not exists then Apply default "MyDefaultStamp000" for example. Thank you in advance. Kind Regards
I'm a teacher who purchased Adobe Acrobat Pro for my Mac work computer five years ago, spending about $75 on it, if I recall. I have used it a ton over the years and was devastated when they took everyone's Mac a few weeks ago and gave me a PC laptop to work with. Not only am I sad to have lost my Mac, I don't have my Adobe Acrobat Pro anymore. And I already need it. The new cost is $144 a YEAR, which... yikes!! Is there any way I can get Acrobat Pro on my PC without committing to the big cost? Thanks- Brandy
Hi there,When using getPageNumWords to get the number of words on a page I can see things like ‘What and @11075446 are being treat as 2 words (I've done a test for this). The characters ' and @ are being picked up as separate words. It's the same for quite a few others, for example hyphens.I've have a look in the JS Scripting Reference but can't see anything to stop this.Is there a way to disregard characters like this, from getPageNumWords, as they're throwing the figures out?Or, would I have to go through each word found and test?Thanks in advance.
Hi Everyone,I just downloaded Adobe Pro DC and was creating a form that has 3 checkboxes named (DAK, DHS, EC). I need the client to be required to have at least one checked and I don't know the script to write to make that happen. I've looked through a couple different threads and can't find an answer that works for mine. Any help would be greatly appreciated!
Hi there,I have a custom dialog with an edit_text field on it.Is it possible to load the field with some default text?Thanks in advance.
Hi team, I am trying to find out if we can programmatically automate the feature provided by "Compare" Tool? I have large number PDFs to compare. I like what online/web Compare Tool is providing but comparing large number of PDFs one by one will not be efficient. Is there a way I can automate using SDK or anything? I have Acrobat Pro license.
I am using Adobe Acrobat Pro. It keeps saying not responding. When it happens multiple times during the day. I run repair adobe and then have to restart my computer. This is very frustrating with the amount of work i do.
I have a C++ application that at some point display PDF files inside a window. It worked fine for some years now and with several Adobe Acrobat versions.From some time, I get an error in OpenInWindowEx call. I've tested the sample project ActiveViewVC from Acrobat DC SDK package and it fails too.There is an exception thrown COleDispatchException with no message when calling CAcroAVDoc::OpenInWindowEx.It look like it's the same behavior like the one described in https://community.adobe.com/t5/acrobat-sdk-discussions/error-the-server-threw-an-exception-exception-from-hresult-0x80010105-rpc-e-serverfault/m-p/11925602, but reinstalling is not a solution for me.I’m testing with Adobe Acrobat Pro 2022.003.20322, 64-bit, on Windows 10. My Application is 32-bit, but ActiveViewVC fails in both 64, or 32 bit builds.Did anyone have same problem? Any idea where to dig for the cause? Thank you.
Hello, I am having a difficult time calculating the total of multiple fields and having that total display in the total field. The form I am working on has the ability to spawn a new page as well, the image below is a spawned page. I've tried using the following code as a custom calculation but no matter what I do the CurrencyTotal field remains blank.//define strPrefix var strPrefix = ""; var aFieldName = event.targetName.split("."); If(aFieldName.length > 2); { strPreFix = aFieldName[0] + "." + aFieldName[1] + ".";} //give each field a temp name and bring in its value var nA = this.getField(strPrefix + "Hundreds").value; var nB = this.getField(strPrefix + "Fifties").value; var nC = this.getField(strPrefix + "Twenties").value; var nD = this.getField(strPrefix + "Tens").value; var nE = this.getField(strPrefix + "Fives").value; var nF = this.getField(strPrefix + "Twos").value; var nG = this.getField(strPrefix + "Ones").value; //perform calc var nSum = n
I got an email as seen below: We’re reaching out because you’re still using an older version of our APIs in free trial. Please transition over to our latest REST APIs within 60 days of receipt of this email. The older version of the REST APIs (Version 2.0) for free trials will only be supported until May 6th, 2023. How do I carry out this trnaisitioning?
Hello - I'm developing an application in VBA to return a page level report including the X and Y values from the MediaBox struct on large volumes of PDFs for organizing by page size for printing. My program functions perfectly on smaller data sets. The issue I am having is that after ~4000 - 5000 pages I receive an runtime error stating that I have not SET an object correctly, which I find odd as the program worked perfectly for the large bit it got through. This feels like a memory issue, which I have tried to solve using AcroApp.Exit. However, I cannot seem to get AcroApp.Exit to return true. My File Listing and AcroPDDoc.GetNumPages sub has retrieved As an example, when I run this code in a module by itself, ExitAcroVar begins as false and remains false while CloseAllDocsVar changes from False to True. Sub TestAcro()Dim pdfApp As AcroAppDim pdfDoc As AcroPDDocDim ExitAcroVar As BooleanDim CloseAllDocsVar As BooleanSe
Hi, I have both Adobe DC and Acrobat 2020 installed on my laptop. When I reference a VBAProject in an excel sheet, it always link to Adobe DC but not Acrobat 2020, seems like by default. Adobe DC is under C:\Program Files while Acrobat 2020 is under C:\Program Files (x86)\Adobe\Acrobat 2020. Is this the way it should be? or is there anything I can do to make it link to Acrobat 2020? Aparently, it reads the below codes well before reading the highlighted one. I got a Run-time error '429' ActiveX component can't create object when I run the highlighted code.Any help will be greatly appreciated! Thanks,Simon
I am trying to automate the rotation of a given stamp that is duplicated across multiple pages. Typically I would attempt to script such procedure, but I lack information regarding the methods I have available. In what ways can you refer to an annotation, and what is the appropriate rotate method called?The only rotation I managed to achieve was by selecting the stamp, then executing a command along the lines of " this.selectedAnnots[0].rotate = <angle to rotate>".However, not only do I not want to select and execute the command (as that would be similar to manually rotating with the grip), but also, the rotation shrinks my stamp for some reason.Is there a more appropriate way to do this? Note I am using the Standard Version of Acrobat.Thanks
Hello All,I am probably making this more complicated than it needs to be, but I want to test the totals of 2 fields in the form that I have created.I have a hidden field ("Split Test") that should add together the 2 fields ("Amount To Be Paid On First Card" & "Amount To Be Paid On Second Card") if the checkbox marking the payment as multiple is checked ("MP Yes"). This checkbox is not a radio button, there is a checkbox for Yes and a checkbox for No. No is the default selection.There is an app.alert within the code that needs to inform the user that the amounts for the cards cannot equal less than $99 or more than $1749. But, if the multiple payment box hasn't been checked, this should not be tested at all.I have tried several different variations of code that I have found, inclusive of adjusting the codes that I already have in place, but to no avail.Any assistance that can be provided would be appreciated. I did find a way to trigger it so that it would add
I am not able to finalise my certificate signature. Nothing happens when I click on the "Sign" button in order to complete the sige and certify process
I would like to have DATE in mm/dd/yyyy from FIELD named as "DOS" to be displayed as DATE with custom format dddd, mmm dd, yyyy in another FIELD named as "DOS1".I am really new in Adobe Acrobat 9 pro.Thank you for your expertise.
My university hasenterprise account and I have been using it. Recently I just bought a personal (educational account). When I try to sign in with my personal account, creative cloud does not let me sign in with a personal account but asks me to sign in with university account (enterprise account). I want to use my personal account but not enterprise account.My notebook has enterprise account before. I try loggin in on another machine that do not have creative ccloud installed before and I can sign in creative cloud with my personal account. Looks like adobe places a hidden file somewhere that point to the creative cloud enterprise licene. I try uninstall, clean registry and credential but it did't work.How can I resolve this issue without having to reinstall Windows? Now I have wasted 2 months of subscription fees and I still cannot use any programs.
Hi all. I am new to Javascript and have limited understanding so far.I have created a fillable pdf form to align with my check paper to type customized checks. I have written a javascript to convert the number typed into the 'Amount' box (i.e. $1,000.00) to text on the written amount line (i.e. ONE THOUSAND DOLLARS). I would like to this this format itself as "ONE THOUSAND DOLLARS***********************************" with the asterisks repeating until the end of the textbox which would obviously be a variable length depending on the length of the words needed. How might I code this and in what area would I write this code? Thank you in advance! Here is the coding I am currently using:Document Javascript&colon;function Num2word(value) {var fraction = Math.round(frac(value)*100);var f_text = "";if(fraction > 0) {f_text = " AND "+convert_number(fraction)+" CENTS";}return convert_number(value)+" DOLLARS"+f_text+" ONLY";}function frac(f) {return f % 1;}function convert_numbe
Is it possible to print a PDF and also the PDF attachments inside of it with Javascript?
I have never been able to update my Adobe Acrobat Pro XI. I continually get the following message when trying to apply the automatic updates:"Error 1328. Error applying path to file C:\Config.Msi\PTB743.tmp. It has probably been updated by other means, and can no longer be modified by this patch. For more information contact your patch vendor."Any ideas about how to get updated?
I want to make it where if some enters text into one field, it makes a handful of fields following it required. If no text is entered, the fields remain not required.
Dear All,After installing "Adobe Acrobat Reader DC" on Windows 7 Enterprise N, I am getting error "The application was unable to start correctly (0xc000007b). Click ok to close the application" whenever I open any application or office document or any other text file. The behavior is strange, e.g. if I open a text file, I get the above error, then I click OK, and again I click the text file, it works. now I can open different text files and error will not appear. As soon as I try to open any other file like excel, error appears again and after clicking ok, I can open the excel file and keep opening many other excel files without any error.Error disappears when I uninstall the acrobat reader DC.Any one has experienced this?Regards
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.