Unlock the power of Acrobat SDK through our community.
Récent
Hello,I am trying to fill out fields in a form by selecting a certain row in a text file. My javascript is if (typeof cnt == "undefined") cnt = 0;importTextData("/C/Users/Desktop/Barcodes/filename.txt", 3)With the above code i am able to fill out my form using information from the 3rd row in the text file. What i would like to do is fill out information based on the value of the first column. For instance, my text file looks like thisF. Name Gender emailJon M test@testing.comVictoria F sample@testing.comTom M test123@testing.comI would like to import the data based on the value of colu
I have radio boxes named 1,2,3,4. I have them set as Yes or No and their value as Choice1/Choice 2.When a person checks no, I need specific text to store to an array. (Each check box goes to a question and I need the question they checked no to to display later).At the end, I want to program an action button to display an app.alert that shows the questions that someone checked no to.For example, if they said no to questions 2 and 4. I want the app alert to display a message that says, you chose No for Do you smoke and Do you drink.I have combined some code, and I'm not sure if I'm on the right track. I'm new to Java Script and have been looking at other people's questions.if (getField("1").value=="Choice2") {var question68 = "You check no for question 68";}var emptyFields = [];for (var i=0; i<this.numFields; i++) { var f = this.getField(this.getNthFieldName(i)); { if (f.required && f.value == "") {
I am creating a form in Adobe Acrobat. There will be four text fields; the first two will contain the latitude and longitude of a certain point, and the next two text fields will contain the latitude and longitude of a second point. I would like a fifth text field to be populated with the distance in miles between the two coordinates. How would one create script to accomplish this? I have VERY limited knowledge of JavaScript. Thanks in advance!
I want to access the C# base COM component (i.e., tlb file) from the Adobe Plugin Code.Please suggest me how to use the broker process in order to achieve the accessibility of .net based COM component even when the Protected Mode is enabled.I was able to create a Adobe Reader plug-in by modifying the “BasicPlugin” sample.My plug-in contains few buttons. When the toolbar buttons are selected the application should display a form.The form is written in C# and the plug-in in VC++.I was using interop to access the C# code from plug-in code.Unfortunately, it does not work when Reader Protected Mode is ON.Thanks.
Good Morning,We have a user with Windows 10 Pro x64 and Acrobat Standard DC getting a unusual message when trying to open PDFs in IE11.Thats all I get, nothing more. I have reinstalled it completely even using the cleaner tool from Adobe...still no luck.Any ideas?
I know the correct way of getting the selected row is by iterating over dialog.store()[itemId].aRows and finding the row that has the "Select" property set. So I tried programmatically iterating over the rows and setting the "Select" property to true for the row I want to select but it doesn't seem to visually select the row even after calling dialog.load({ itemId: data });
I have been working on this form for a few months now. I've taken it from 81 KB to over 1 MB. I'm afraid that if I put too much script into it, it'll freeze or crash on the user. Is this possible?
Good morning,I have managed to get the stamp to produce the date, however I am unable to get it produce a fillable field. As stated in the description, I am new to java and adobe, I am a quick learner but am unfamiliar with how java works so I have been trying to cut and paste script but have been unsuccessful. If someone could give me the coles notes on Java or run through how to do this task and I'll look into getting some education on Java later that would be great.Thanks,John M.
Hi,I am trying to change the crop box by a 10th of its height and length on every page of a PDF. So if the 1st page is 100 by 100 it would be come 110 by 110. If the second page is 200 by 200 it would become 220 by 220 leaving new white space to the top and right which I intend to add a watermark.This seems to work fine, but for some reason its only working on the active page, and not looping thorough each page.I am no Java expert so I am probably missing something very simple, here is my code:for (var i = 0; i <= this.numPages; i++){ var rectCrop = this.getPageBox("Crop",i); var width = rectCrop[2]; var height = rectCrop[1]; var new_width = width+width / 10; var new_height = height+height / 10; var rectNewCrop = [ 0, new_height, new_width, 0 ]; this.setPageBoxes("Crop", i, i, rectNewCrop);}It is hurting my brain trying to figure this
Hi,I have generated some action sequence files in my Acrobat application. I need to interact this action sequences files using JavaScript. Is it possible, please suggest me.I am using Adobe Acrobat DC Windows. Thank you for your help.
I'm trying to come up with a script that would function as an if/then scenario. I very new a writing in JavaScript and have done a reasonable job developing an interactive form. My form has a section where there are 3 lines of information that adds up to a number. That number can be either a positive or a negative number which would populate in field "l100". The other field consists of a number that adds up three fields "l37"+"l38"+"l39" which will always be a positive number this populates in field "l41". "l41" final number will be determined if field "l100" is a positive or a negative number. If "l100" is a positive number then "l41" will be the sum of "l37"+"l38"+"l39"+"l100". If "l100" is a negative number then "l41" will be the sum of "l37"+"l38"+"l39". Here is the direction I thought might work. Wondering if I'm on the right track or not:var theField = this.getField("l100");var theValue = theField.value;var theField2 = this.getField
How to remove watermark from pdf programatically in .net using adobe object type library
I wrote a Javascript in Acrobat for a form that I'm working on. The result could be either a positive number or a negative number that populates as my answer. I30 is supposed to yield the difference between I28 less I29. If I28 populates a number $1,000 and nothing shows in I29 then the result in I30 would be $1,000. This is correct. If nothing shows in I28 and $1,000 populates in I29 then I30 is supposed to show as (1,000) because I28 less I29 would equal (1,000). This result is not showing up. I cannot figure out why. I'm wondering if my validation script is the issue. I've included this below the script. Any suggestions? Thank you so much for any input. (Note: I am learning and trying to figure out how to write this code)var theField = this.getField("l28");var theValue = theField.value;var theField2 = this.getField("l29");var theValue2 = theField2.value;if (+theValue - +theValue2 > -10000000000.01) { &nb
I have an array of information I have collected from radio buttons. I need to know when they chose No to a certain question. Right now I have an app alert displaying the no's for the user. Now I need to copy that information into a Word/Excel document. I need to know the code to copy the array to the clipboard. Also, I named my radio buttons 1, 2, 3 etc. Here is my current code. I'm not sure where the copy code would go:var questions = ['Question 1: Do you smoke?','Question 2: Do you drink?']//I had 69 questions total that I added to the above array// the number of radio buttons you have in the pdfvar question = 79;//question starts at checkbox 5. I made the mistake of taking out questions so my radio button started at 5.var counter = 5; var myArray = [];var arraycounter = 0;for (; counter < question; counter++) {if (getField(counter).value=="No") {myArray[arraycounter] = questions[counter-5];//variable for question stringarraycounter ++;}}app.alert('These questions were answered no
Hi, I have two fields linked together in a pdf, so that the text flows from one line to the next... using this code:// Move to next field when this one is fullvar t=this.getField ("strongpoints1"); if (event.fieldFull) { getField("strongpoints2").setFocus();}Can anyone direct me to a coding solution that allows me to backspace from the second field back through the first field? Right now, I have to click each field individually to backspace the content on that line. But I would like it to automatically backspace up through the previous line.Thank you!
Is there any way to add additional actions in JS?I'm trying to use the setAction() method to add an additional action to a form created in InDesign. It already has nearly 100 show/hide actions that were set up in the InDesign document. When I try to add a JS action on mouse up using the setAction() method, it deletes all of the other actions instead of adding to. There wasn't previously a JS action on the button I'm trying to add it to, only show/hide fields.Any ideas?I've been trying to create a workaround by using the visibility of a checkbox as a trigger without success...
Good morning. I have field in a pdf form that reacts to another fields drop down selections. I added some code with popup windows because there are questions that need to be asked before output can be completed. The problem is that the popup window code is in the Custom Calculation Script box so every time I put information in other fields, it pops up...I'm assuming that it's recalculating every time there's change in the form. How can I stop that from happening? Here's my code:var v = this.getField("System Name").value;var vName = this.getField("01: Name").value;var vOrg = this.getField("02: Organization").value;var vTitle = this.getField("06: Job Title").value;if (v=='Select from the dropdown menu'){ event.value = "";} else if (v=='NIPR'){ event.value = "Needed for daily access supporting our operations.";} else if (v=='SIPR'){ event.value = "Needed for daily access supporting our operations.";} else if (v=='NIPR and SIPR'){ event.value = "Needed for dai
I want to create a acrobat action to extract single page pdfs to specific names. first I'am using the "Search and Remove Text" under Protection to find the text to be used for the individual file naming. This creates Comments for each page with the unique text for the names. Then I want to use javascript to to do the extracting.I found this code on the forum that extracts single page pdfs. I need the extracted pdfs named by the Contents............ Annots:/ Redacts:/ Contents: with the Annots removed.I've tried to modify the code with no luck. I am new to scripting, I understand the concept I just don't know the method/properties to perform the function to apply the Annots Contents from each page to the naming of each extracted pdf.code that extracts single page pdfs. var re = /.*\/|\.pdf$/ig; var filename = this.path.replace(re,""); { for ( var i = 0; i < this.numPages; i++ )
I need to add a pdf page as background to another pdf file of 16000 pages.The "Add Background" from acrobat pro is not an option because it is very slow.Thanks
Hi,I have a dropdown list and a group of radio buttons on my form.I need that the appropriate radio button should get automatically checked based on the selection of an item from a dropdown list.For example,If Item 1 is selected than radiobtn1 should be checked and if Item 2 is selected than radioBtn2 should get checked.
I am using a combo box a shift scheduling layoutis there a way to have the value displayed with just a letter after the selection is madeFor example, the Combo Box options are Sick, Vacation, Comp time, Bereavement, Military, and so forthSo if the selected item is Bereavement can it display B or vacation a V ect.Space is limited, so just an initial would be sufficient I have explained to the bosses that we can just use the initials, to begin with, but they don't believe an individual would remember that S stood for Sick Leave and a C stood for Comp timeAny help would be greatly appreciated.
Hi,I have been trying to write a script that automatically populates a price in another field once an item in a dropdown box is selected. From looking at the tutorials, I have a good portion completed but I am running into the issue where every "cost" field is populated and I am not sure how to create a 1:1 selection with each row.Example: desc1 populates for cost1 desc2 populates for cost2Code:var cateringData = { "Large Cheese Board":{ cost: "165"}, "Regular Cheese Board":{cost: "98"}};function setFieldValues(cCateringName){ this.getField("cost1").value = cateringData [cCateringName].cost; this.getField("cost2").value = cateringData [cCateringName].cost; this.getField("cost3").value = cate
i create a drop down menu with option to allow user to add custom text...now how to add a permission for max user character = 100 and if characters is max (100) then go to next field automatically?
i work this javascript code menu :var MyItems = new Array("1","2","3");this.getField("Dropdown14.0").setItems(MyItems);now i want a script help if user choose option "2" then count ++ field name BOX (1...2...3..4...5..............)i try this but not working :count=0if (event.value=="2"){count ++;}
I have tried so many different ways, that I finally decided to break down and ask the "experts"! I have a text field where users will input what organization they are with. I have a popup window "On Focus" that tells the user if they are working for our organization, to input our company name "XYZ"; Otherwise, input whatever. Later on in the form, there's a submit button to email the PDF form. If that text field has XYZ G6, it'll send an email to a certain group of people; Otherwise, if that text field doesn't have that key word (XYZ), it sends the email to a different group of people. Here's what I've been working with:var sendTo = "john.doe@mail.com";var sendOther = "bill.jones@mail.com";var keyWord = this.getField("20 Supervisors Organization").startsWith("XYZ);if (this.getField("31 Sec Mgr Sig").value != "" && keyWord == true) { this.mailDoc({bUI:true, cTo:sendTo...} else if (this.getField("31 Sec Mgr Sig").value != "" && ke
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Vous avez déjà un compte d'utilisateur ? Connexion
Pas encore de compte ? Créer un compte
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.