Unlock the power of Acrobat SDK through our community.
Als letztes aktiv
Good evening, I am attempting to use the "Set Items" function to add hundreds of words into a drop down box, using a for loop, and an Array.I can use the same method of a loop to use the Array however I want, except for when it comes to adding the Array's contents into a drop down box.Here is my code:/*Here we will import, and read from a specific text file, and then assign the text file into an array, seperated by '\n' */this.importDataObject("MED & DIAGNOSIS & ICD-10.txt", "C:/Users/dell/Documents/MED & DIAGNOSIS & ICD-10.txt");var oFile = this.getDataObjectContents("MED & DIAGNOSIS & ICD-10.txt");var cFile = util.stringFromStream(oFile, "utf-8");var fileArray = cFile.split('\n');/* Here, we will loop through the array equal to its length, attempting to add every other value in the array into a drop down box. This portion of the code does not work, however. "console.println(MedAnalysis);" works just fine in t
I am trying to prompt Field B to become required only when Field A contains specific text such as "Apples", "Oranges", and "Bananas".I have tried this code in the Custom Calculation Script of Field B:if (this.getField("A").value=="Apples"){event.target.required=true}else{event.target.required=false}Which works, but it won't work when Field A has other words like "Oranges" and "Bananas" with this script:if (this.getField("Name").value=="Apples", "Oranges", "Bananas"){event.target.required=true}else{event.target.required=false}How can I prompt field B to be required if field A has any of these words in it?
On Adobe XI Pro form tool how do I write a calculation such as excel formula =IFERROR(G14/C14,"")? When the form is blank the cell is not acting correctly with a return of zero ($0.00). Current simple field notation is PV1/OP with the return in a %.
I designed a form using InDesign and exported it to Interactive PDF.I need to cause each checkbox to "check" when any text is entered in the text field beside it. I have over 30 checkboxes, and figured how to do this using the following code in Acrobat Pro (as a custom calculation script under the text box properties). if (event.value==""){this.getField("Check Box 3").value="Off"}else{this.getField("Check Box 3").value="Yes"}It seems to work, however before I repeat this 30 times for every single text box / checkbox combo, is there a way to make further edits to the layout in InDesign after adding all these custom check box actions? Do I really have to add them all each time I export to interactive PDF?
Is it possible to apply a page label without numbering style like we can using style "none" with page numbering in Acrobat?var labels = "4, 9, 13";var labelsplit = labels.split(", ");if (labelsplit.length == this.numPages) { for (var i=0; i<this.numPages; i++) { this.setPageLabels(i, ["D", "", labelsplit]); //this.setPageLabels(i, ["r", "", labelsplit]); //this.setPageLabels(i, [ "A", "C4-Lot", 4]) }}My problem is if my labels contain something else than integer...For a label like "C4-LotD" I would have to evaluate if the last letter is upper case and then "D" is the fourth letter of alphabetical order to come out with:this.setPageLabels(i, [ "A", "C4-Lot", 4])Label not ending by alphanumeric character will be a problem. Maybe another way to label pages
I want to calculate the sum of total hours worked. The text fields are HG1, hg1a to hg1e set in format hh:mm. Anyone have a script for this?
hello team,i have 10 text fieldsText1Text2Text3.....Text10i want a solution how to short numbers min to max on this fieldse.g.Text1 value = 1Text2 value = 3Text3 value = 22765Text8 value = 9Text9 value = 10Text10 value = 8and i want system check the fields and short the number12345678910any help?
I am trying to create PDF files from Office using the AdobePDFMakerForOffice, but can't seem to find any documentation on the SDK about this COM add-in.
Is it possible to add a fingerprint script to scan a fingerprint into a PDF? I have a fillable PDF that requires an electronic signature by the client. I would like to add a fingerprint scan to add authenticity to the user’s signature.
I am using this script in the calculate field event: can anybody assist?var dateFirst=StartDate1.formattedValue;var dateSecond=Date1.formattedValue;var timeDiff = Math.abs(dateSecond.getTime() - dateFirst.getTime());var diffDays = Math.ceil(timeDiff / (1000 * 3600 * 24));Totaldays1=diffDays;by all accounts this should work right?
I am currently trying to convert a jpg image into a pdf with the following code:function JpgToPdf (doc, img){ var myDoc = app.newDoc(); // myDoc.Open("/C/Users/tmuñoz/Desktop/Thuban-Nivel 2.pdf"); myDoc.disclosed = true; doc.disclosed = true; newDoc = app.openDoc({ oDoc: doc, cPath: img, bUseConv: true }) newDoc.disclosed = true; var filePath = "/C/Users/tmuñoz/Desktop/Adobe/temp.pdf"; //MySaveAs(newDoc,"/C/Users/tmuñoz/Desktop/Adobe","Thomas23.pdf"); newDoc.saveAs({ cPath:"/C/Users/tmuñoz/Desktop/Adobe/temp.pdf" &n
This field is calculating correctly based on the value in equipmentthe field name is LevelRatevar nEquipment = this.getField("equipment").value;if (nEquipment<=49999) event.value = .0550;else if (nEquipment>=50000) event.value = .0525;I want to reference LevelRate in another fieldif LevelRate is .0550 the new field VariableRate need to be .0574I'm trying this but it's not working I tried calculation order and putting it in validate vs. calculatethis.getField("LevelRate").valueif (LevelRate=.0550) event.value = .0574;else if (LevelRate=.0525) event.value = .0549;
AfternoonI am creating a form and would like to have 4 radio buttons that when clicked on spawn a hidden template (this bit i have got). what i also want it do do is if i select a different radio button it spawns another associated template page but deletes the other. This is so only one template page can be visible at any time.So i have 4 templates, lets say "Template1", "Template2", "Template3", "Template4".Is this possible. I am new to java so the simpler it is explained the better.Thanks
Is there a javascript to format a text field to have number format and allow text as well?
I've come along way with my programming of Javascript in Acrobat for forms and still have A LONG way to go! I am not an expert, but always looking to improve. I get overwhelmed if it gets too complicate but I have noticed my programming knowledge is growing as I overcome obstacles. Can anyone help me with a scripting issue? Here is my current situation:My goal is to allow the person filling out the form to make 2 manual entries based on a value. Line #16 is the value. Line #17 and #18 are manual entries that no matter what they enter on each line will give the result on line 16. I'd like to be able to program as simple as possible (since my knowledge is simple) as script that if i make an entry on Line #17 then #18 will automatically populate the difference to equal to Line #16. On the flip if I decide to make an entry on Line #18 then #17 will populate the difference to equal Line #16. This needs to be this way not knowing which li
I would like to set tab order going from page one then to page two and then back to page one. The only way i know how to do this is to set the tab order on the left hand side in Acrobat. Is there a way to write a jave script to allow me to tab from one page to the next and then back? I can't figure this out. THANKS again for any advice!updated the title : Malcolm Thomson
hi, i have setup my form total field to number & two decimal places so bellow formula answer showing 95.83. my request is i want to show that answer like 95.84.1150 / 12 = 95.8333333Also if i make another formula like (Total field value * 2), answer should be 191.68 & not 191.67Cau pls help me to solve this issue. thanks..
Good evening, we are trying to extract all of the strings off of a page, we print out said strings to the console, and none of the punctuation is being extracted... how does one extract *ALL* string information from a page?Thank you!
I am trying to create a survey with multiple groups of radio buttons. Currently, I have 9 different groups that each have 6 buttons (representing level of satisfaction from N/A to Very Satisfied). Essentially what I am trying to do is make it so that if you select either one of two of the buttons in the group, it will display a hidden field below the group of radio buttons. My problem is that in the group, lets refer to the buttons as button 1-6, if you select button 2, the script i have in the Mouse Up action works properly; it will display the hidden field when selected and hides it when it is unchecked or any other box is selected. However, I copied and pasted the same script in to button 6 with the Mouse Up action, and the field will not display or hide. Below is the JavaScript I am using. Any help/ideas/suggestions?var showHide = event.target.isBoxChecked(0)?display.visible:display.hidden;this.getField("1 Please detail any very satisfied/dissatisfied answers below").display = show
Hello, I need to know how to search 3d object in the 3d pdf.Is it possible to search 3d object using Javascript ?
Is there a script that will display a date in a set format no matter how it is entered. Ex. entered 021119 or 2/11/19 and auto displayed as 11-Feb-19.
On a information form I am creating I put in a custom script - see below to make the text box email only and an alert come up for the user to enter only a valid email address.var alert1 = ("Please enter your email in a valid format"); var email = /^[a-zA-Z0-9._-]+@([a-zA-Z0-9.-]+\.)+[a-zA-Z0-9.-]{2,4}$/;if(!email.test(event.value)){event.rc = false;app.alert(alert1);event.value = "example\u0040example.com";}This part works, but after it is saved by the user, or even if user tabs tries to clear the box before saving it will not clear so another emailcan be entered by another user filling out the form. Help!
I created a PDF form and am using radio buttons. I am using Adobe Acrobat Pro XI. I have been creating fillable forms for about a year now but want to take the extra step. I have 15 different group of radio buttons named "Observation Group 1 to Observation Group 15" and in each group i have 3 choices " compliant, non-compliant and not applicable". i would like to be able to total each of the 3 choices ( how many compliant, how many Non-compliant etc) in another box. I think I would need a script file for this. I think it goes in the "Calculate" or in the "action" properties but really have no clue how to do it. I have read a lot of this forum and would love any help you could bring. In my head it doesn't seem very hard when I explain what I want but I might be wrong.
!Hello, I want to select an object behind plates.Specifically, I want to select a piping component behind transparent plate.So I need to set the nodes's property "hitEnabled" to "False".Is that the right approach ?then, how to set it False? this is my code:c3d = this.getAnnots3D(0)[0].context3D;thePlate = c3d.scene.nodes.getByname("Plate");myPlate.hitEnabled =false;I tried it in the console, but no change.Clicking on Photo in TPlease help me with this.
I'm trying to program a button to check required fields in a form. The goal is to walk the user through the fields that need attention. Right now it jumps to the field and highlights it. I want it to wait for the user to enter data before removing the highlight and jumping to the next field. Can someone show me a way to implement this?for (var i = 0; i < this.numFields; i++) { var f = this.getField(this.getNthFieldName(i)); if (f.type != "button" && f.required && f.value == "") { f.setFocus(); f.fillColor = color.yellow; // Wait for user to enter something in f f.fillColor = color.transparent; }}
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Sie haben bereits einen Account? Anmelden
Noch kein Konto? Konto erstellen
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.