Unlock the power of Acrobat SDK through our community.
Recente
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: 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?
Hey All, I have an Adobe Reader DC Plug-in that allows a customer to save the current PDF to our system. It is basically a file copy. When the user clicks the toolbar, a screen is presented that allows them to identify the Client/Matter so the location to save the file can be determined.Everything works great as long as Protected Mode is off. I use a .NET COM DLL (Wrapped in C++) to present the UI to the user. Everything is registered properly and I have the correct "permission" to use the plug in reader and it is signed. The question is how do I get Reader to allow it to run in Protected Mode? Thank you for any help and/or direction.Mark
Acrobat Hello... brand new to Adobe acrobat pro DC. Trying to create new pdf form using abobe acrobat pro dc and have few questions for many smart people. Can you create drop down menu in pdf form with only able to select bi weekly monday? For example you can only select Mondays of following prior and after. Mon, Dec 2, 2019 Mon, Dec 16, 2019Mon, Dec 30, 2019Mon, Jan 13, 2020.... and continues to be able to only Mondays? thank you for your help!
HiHow to convert PDF to word/txt/excel using sdk.I would like to convert many files to another format. And are there any restrictions?Cloud you let me know the documentation-link?
I created a PDF form to be distributed to a lot of clients. Inside the PDF form I created a lot of information buttons in javascrip. However, in some occasion there's a lot of text to show for instructions and when using a laptop specially, they can't see the bottom of the box because it goes off screen on the form. I know all about changing resolution and changing the view size as well, that isn't the problem. I need to resize the popup box to make it wider instead of longer, to be able to show the text properly. I was wondering if there's a way to adjust a popup box (or any javascrip created box for that matter), to play with the width and lenght size? I'm using Acrobat DC.
I regularly need to add password security to PDF forms so have been looking into creating an action to do this in Acrobat - which I've successfully done. However, if I start this action on a batch of files it still asks me to input the password twice for each form. Am I doing something wrong or missing a setting? Not having to input the password over and over really was the draw card for this action! Alternatively - is there another way I can create a droplet or batch preset to run forms? I'm quite limited in my tech knowledge so bare that in mind when suggesting options.Thanks in advance!
Hi again, everyone. So, I've got two folder level scripts that are practically identical. The only difference is that one is meant to merely save the current PDF Form open to specific folder based on field data, the other is meant to batch import from a tab deliminated file and save it based on the same criteria. PasteBin of Save Script - https://pastebin.com/NdWSzKxLPasteBin of Import Script - https://pastebin.com/Wv0JG52p The import script is the one not working, but only part of it isn't. The import is done with a while loop with a switch block inside of it. The first 4 cases in the switch are run if the last character of the string is a non-number (with NaN) and the -1 case is run if the string ends in a number. It runs the imports of the first four cases with ease, but for some reason it breaks if it's all numbers. Whereas my Save script runs everything just fine. The code was literally copy-pasted from the Save to the Import but for some reason
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.