Unlock the power of Acrobat SDK through our community.
Recently active
I have a form that requires percentage to be calculated using values input by person filling form.Text4.0 is no. of attendeesText4.1 is no. of EmployeesText 4.2 is the percentage calculation
I have created a financial statement form with format of 0 decimals. I know that formatting is visual only. The table has five columns of information relating to Rental Property #1, #2, etc. One of the calcs is the following (which I repeat for each property):event.value = Math.round(this.getField("GrossMthRent_1").value * this.getField("OwnershipPercentage_1").value); which I contain in a hidden field (Prop1Rent),etc. Then I add all Prop#Rent calcs for a visable TotalShareMonthRent. This total then flows to the summary page where it is presented as an annualized total (TotalShareMonthRent*12). The calculation order was challenging as the totals on page two and three flow to summary on page one so 2&3 have to be calc'd before page 1, but it works great and both the format and the actual system number are the same. My last hurdle is that I don't know how to struc
Hello to all, I'd like your help in how to get the font name and size of the selected text and then change the font name and color of all words with that font name and font size using JavaScript. Below is a kind of pseudocode what I thought. For example:var f = this.selectedtext.fontnamevar s = this.selectedtext.fontsize for each word with font f and s{ word.fontname = "Helvetica" word.fontcolor = blue} Thanks in advance for any help
I have a button on my form that checks thats all required fields have been completed before continuing.One of the required fields is a monetary field. If it's blank, the error message appears as it should, but if 0,00 is typed in, the error message is still appearing saying the field needs to be completed.This is the code on the button, but I'm not sure what to actually change so it literally only appears if the fields are blank (it ignores 0,00) var emptyFields = [];for (var i=0; i<this.numFields; i++) {var f= this.getField(this.getNthFieldName(i));if (f.type!="button" && f.required ) {if ((f.type=="text" && f.value=="") || (f.type=="checkbox" && f.value=="Off")) emptyFields.push(f.userName);}}if (emptyFields.length>0) {app.alert("ERREUR. Au moins une de ces informations suivantes est manquante.\nVous devez compléter l’ensemble de ces informations afin de pouvoir soumettre votre dossier\n\n" + emptyFields.join("\n"));}elsethis.getField("HIDE.LockDoc"
Hi!I'm fairly new to using and making forms on Acrobat Reader. I was recently tasked to do a pdf form for my job and I have no experience with javascripts and codes. My boss wanted this certain option to appear when typed on the circled field on the picture. I tried looking for answers on Google and I didn't really understand how to do it. Can someone help me?
I am behind a proxy that changes daily, and I usually don't need the internet services.I don't want to enter my proxy password every day when I open a PDF file.I don't want it to prompt me for my proxy password unless I explicitly attempt to use an internet service.[Moved from the general, non-support Forum Lounge to a product-specific support forum - Mod]
Good Afternoon Community 🙂 I am trying to create a form in Adobe Acrobat Pro DC. So far this has been pretty successful.The next thing I am trying to achieve is that when I enter my asset number into the field using a barcode scanner, that it will go to the next field for the secondary barcode to be scanned.The very next field is for notes so what I would like, is to do some code that will allow for me to click in the first asset number box, scan the barcode and have it automatically move onto the next field. The barcode numbers are limited to 6 digits, so I have set each field to only accept 6 digits. Heres the thing- I have basically no knowledge of JavaScript so have had no luck in getting any of the scripts to work. Does anyone have any ideas that might help me out? Many Thanks in advance 🙂
I need help creating a simple calcuation for deposit terms.All the deposits will be based of a Guaranteed Minimum.First Deposit (20%)Second Deposit (50%)Final balance (30%). I cant seem to figure out how to calcualte it. Can anyone help?
Hi, I'm trying to create a document-level javascript to calculate three fields with conditions. The three fields are "LicenseFee", "ServiceFee", and "Total". The "LicenseFee" is the only one not read-only; the other two fields will autocalculate based on the number entered in "LicenseFee". I'd like the behavior to go as follows: when "LicenseFee" is empty, "ServiceFee" and "Total" are also empty. When an integer is entered in "LicenseFee" (for example, 120.00), "ServiceFee" will multiply that number by .025 and add 2.00. "Total" will then add "LicenseFee" + "ServiceFee". This what I have so far - up front I am a novice to javascript&colon; function FeeCalc(){var Licensefee = this.getField("LicenseFee").valuevar ServiceFee = this.getField("ServiceFee").valuevar Total = this.getField("Total").value if (LicenseFee='') {Service='';Total='';}else{ServiceFee=(LicenseFee * .025) + (2.00);Total=LicenseFee + ServiceFee;}} I appreciate any and all assistance! Thanks
Hi, I have a pdf with 3000 pages and I have inserted an one page pdf as background from Acrobat Pro Tools. The resulting pdf has 5 GB size (!!!) because every page has a copy of the background instead of a link to that. Is there a way to fix that?thanks
I could convert PDF and extract data but for Form based Adobe PDF called as FDF my library which is used to extract data from PDf couldnt detect FDF and thus couldnt extract the data. I got information that FDF can be converted to XML, is there any script which can detect and extract the FDF into xml. Need immediate help
Ahoy all! So I will start by saying I am brand new to javascript and am learning things the hard way! 🙂 I am trying to figure out a way that I can have two text fields, Field1 & Field2, and have it so that when a number is entered into Field2 it will automatically add it to Field1 then clear itself out. Example: Field1 has a value of 10, when I enter 10 into Field2 then Field1 become 20 and Field2 becomes blank. I am figuring the javascript will have to be attached to a button but my co-pilot, google, is letting me down on this one. Any ideas? Thank you!
Hi,Depending on my selection in the dropdown list, I would like to fill specific checkboxes with a tick.For example, the checkbox "Monday", "Tuesday" and "Friday" should be filled by the selection in the dropdown list: "Sport". I would be very happy for your help!
We are creating a fillable form for our employee files and because most of the people we are hiring are not going to have DC pro, let alone know how to use it, I am looking for a way to include a button that will allow our branch administrators to insert pre-hire paperwork through out the employee file. I have included several buttons that allow one page documents to be added, however some of the documents are multiple pages, such as our application, and will not show or print the extra pages once it is inserted. The problem with adding a page/button for each page of the item to insert doesn't always work either, considering some people might have a longer work history than others. I have also tried to include a button to insert attachments, however they will not insert into the actual document, appearing more as a note, and will not print with the rest of the pages.
Hey everyone, I have a script which does some stuff with time ( HH:MM format) where its important to check that the entered start time is before the end time. (because.. you know, time) This is the jest of what I have;if (hour start > hour end)){ // ERROR: start later than end }else if(hours are equal)){ // check if minutes are entered correctly if (minutes start>minutes end)){ // ERROR: start later than end }else{ // Time was entered correctly, start }}else{ // Time was entered correctly, start } So basically I have two conditions in which I want to run the same code; I reckon I can solve this by using a state variable but was wondering if there was perhaps another way (i.e. a goto line or perhaps a function in a function, is there such a thing?) I got the feeling those might be unnecisarily complicated so perhaps theres an easyer way to d
Hi there, hope anyone could help here. I have 3 Fields 1st Field is the Start Date wich you could pick with a Calender and its Formated in mm/yyyy2nd Field is the End Date wich you could pick with a Calender and its Formated in mm/yyyy and the 3rd Field is the Field where the Calcualtion should write the Months betweet this two Fields Example:Begin: 02/2019End: 05/2020MonthsTotal: 16 The starting and ending Months also count. Begin Field is named beginEnd Field is named end Thank you Best RegardsDaniel
I will try to convert a lot of pdf-files (1000 over) to excel and text from mac-os terminal.Do you know these things?① is it possible to convert from outside of the Acrobat Pro application?(If we can, please let me know the document )② Can we use sdk-function on the cloud server(such as AWS, GCP, and local-desktop)?
Hello! I am trying to make a business card form for employees to fill out. For the phone number portion there are a lot of options. Some employees have an office phone, office phone with an exstension, mobile number, and/or a fax line. My goal is to have it so that if a text box for a fax or mobile is left blank the text box(es) is deleted. Additionally, if an emlpoyee only has a mobile or a fax (I know it is almost 2020; who still uses fax?!) that the office phone box is deleted and all other textboxes' position is shifted up to keep with the formatting of the document. Any help would be greatly appreciated! 🙂
Hello, I'm at a loss here and I was wondering if anyone can help. Thank you so much in advance.I'm looking to check if fieldA which is a dropdown yes or no field. If fieldA is Yes, then do nothing. If fieldA is No, then get the date and time and convert it to a hexidecimal value. What is wrong with my script? var fieldA = this.getField("Resubmission").value;var hexString = this.getField("LRFNO").value;if (fieldA = "Yes") {hexString = "";}else {var ts = Math.round((new Date()).getTime() / 1000);hexString = ts.toString(16).toUpperCase();}
Hi 🙂I've been trying to cancel my subscriptionfor Acrobat for more than a week.I tried to connect with the support teambut the service is unavailable for more than a week.What can i do more? ThanksLioz
Please help me understand when to use .valueAsString instead of just .value. Below is the calculation I used (in black), with the portions in red added when I asked for help from this group in making it work. Since this is a form to be completed either manually or as a fill-in, I also used a validation script on A and B fields: if(event.value == 0) event.value = "";. The second part of my question, does it hurt to use vAS even when you don't need it? I read the JS Reference and I think I understand "It differs from value, which attempts to convert the contents of a field contents to an accepted format. For example, for a field with a value of “020”, value returns the integer 20, while valueAsString returns the string “020”. Here's my thought - showing fields A & B as .valueAsString changed it to a undetermined format, which then had to be manually shown to be a number by the addition of A=Number(A). But why did it need to be done in the firs
Hi,I have been using the same Excel VBA code below to populate a few PDFs in the past, .However, when I try now to use the same code for a PDF that has [SECURED] in its file name, when I open it with Adobe Acrobat Pro, it won't work.I am able to modify this PDF manualy and save the changes I make, but failing to do so with Excel VBA.Any ideas ? My Code Option Explicit ' --- Adobe Acrobat Objects --- Dim AcroApp As Acrobat.AcroApp Dim AcroDoc As Acrobat.AcroAVDoc Dim AcroPdf As New Acrobat.AcroPDDoc Dim PDFJSO As Object ' ===== List of Fields in PDF ===== Const AddressFldName As String = "p_Street_Address" ' address Const CityFldName As String = "p_City" ' city Const ZipCodeFldName As String = "p_Zip" ' Zip Code Sub FMLSSaleAgreementPDFPopulate() Dim PDFFullPathAndName As String Dim PSAFullFileName As String ' set the Full path and PDf file name
How to make these two groups of checkboxes happen?? (note - my checkbox "group" is set up with same name but different choices 'Yes and No' so that they act more like radio buttons) These two checkboxes are independant of each other.CheckBox1 - Check Yes if A4 >= A5, else NoCheckBox2 - if A7 is "" then "", Check Yes if A7>=A3 or Amount7>=M, else No Based upon other calcs you have helped me on, I've got my variables set up (I think) but how do I write the rest of the query? var CB1 = this.getField("CheckBox1"); // Yes or No;var CB2 = this.getField("CheckBox2"); // Yes or No;var A1 = this.getField("Amount1").valueAsString; // amount ; .......through A11var M = this.getField("Minimum").valueAsString; // minimum amount;{ A3 = Number(A3); A4 = Number(A4); A5 = Number(A5); A7 = Number (A7);&nb
Hi,I'm writing a JavaScript action that creates a new file in a loop with var newDoc=app.newDoc(); and close this file at the end of the loop with newDoc.closeDoc();This action works fine... until the 49th file, then I have a message in the console window (in French):Vous avez atteint le nombre maximum de fichiers pouvant être ouverts. Vous devez fermer certains fichiers avant de pouvoir en ouvrir ou en imprimer d'autres.That means: You reached the maximum number of files that can be opened. You must close some files before opening or printing other ones.What I don't understand because the files are not open!!! It is certainly necessary to empty a variable or a memory somewhere.Does anybody have an idea?Thanks in advancebernard
Hi There,I want to toggle the button color of a pdf form along the with the caption/label color of each button. For this, I have written this code: for(i=1;i<bn+1;i++){ var b = "btn"+i; var f = this.getField(b); if (color.equal(f.fillColor, color.white)){ f.textColor = color.white; f.fillColor = color.red; }else{ if(bn==1){ f.fillColor = color.white; f.textColor = color.black; }else{ f.textColor = color.black; } } Everything is working well except for the color of the Caption/Label. It is black in default and remains black even the fill color is changing. How to change the Caption/Label color to white too?
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.