Unlock the power of Acrobat SDK through our community.
Nyligen aktiv
Hello folks, To start, rest assured I am not a student looking for answers on homework. Rather I am a graphic designer who stepped out of his box a bit too far and need help. I am wanting to have a textbox (Text1) for entering info and a separate textbox (Text2) display only the numbers of characters used [without spaces]. I don't even need the msg part either, just a number that is counting as the customer types. We are charging by the actual character for this form and not the spaces. Below is the only code I have found to function in my document, however it is beyond me on how to adjust it to my needs. Please help and thank you!THIS ONE WORKS:(Drop into ‘Custom Keystroke Script’)Javascript below is for a character cnt w/spaces and a message of remainder.if (event.willCommit == false) { var ec = event.change; var nv = event.value + ec; var nc = nv.length; var msg = nc + " characters typed.\n"; m
No Adobe program installed. What do I have to do to automatically display a message'Please wait... If this message is not eventually replaced by the proper contents of the document, your PDF viewer may not be able to display this type of document. You can upgrade to the latest version of Adobe Reader for Windows®, Mac, or Linux® by visiting http://www.adobe.com/go/reader_download. For more assistance with Adobe Reader visit http://www.adobe.com/go/acrreader. Windows is either a registered trademark or a trademark of Microsoft Corporation in the United States and/or other countries. Mac is a trademark of Apple Inc., registered in the United States and other countries. Linux is the registered trademark of Linus Torvalds in the U.S. and other countries'
I'm new to Adobe's version of javascript. I can't seem to find, in all the web pages of documentation so far, a simple explanation of Adobe's version of replace for Adobe Acrobat Pro 2017.
Hi,i want to use the same Dialog Box that uses Acrobat DC for Insert Page and Location but in a button using Javascript for a Acrobat Form.Thank you ALL..
Hi I would like to collect all of the text field value and send to my web service end point for example. www.getme.com/pdfreceiver.aspxusing either GET or POST method.Do you guys know how to do that?
Is it possible to use SDK JavaScript API to sign (visible digital sign) a file in the browser on the client side?in sample for jsfunction AddSignature(doc){ // if ACROSDK.sigDigitalIDPath is not spcified, ask for user input if(ACROSDK.sigDigitalIDPath == "UNKNOWN"){ var cResponse = app.response({ cQuestion: "Input your digital ID path:", cTitle: "Digital Signature", cDefault: "/C/DrTest.pfx", }); if ( cResponse == null) { app.alert("No input."); &nbs
I'm building an interactive PDF with JS in a project which requires language localization, so there's a bunch of strings in the JS with non-english characters.Acrobat seems to support this nicely until you get an external JS editor involved, in which case Acrobat corrupts the code, replacing the non-english characters with garbage (see the proof of concept example below).Why use the external editor at all? For small projects, you can paste your code from your preferred editor into Acrobat's bare bones internal JS editor, but once your code exceeds a certain character limit, Acrobat requires you to use an external editor exclusively. I haven't had any problems with this configuration when the code and strings made up of english characters.If anybody has any ideas on how I might fix this, I'd be very appreciative.Code maintained entirely within Acrobat:/*---------- Begin PDF Document Script ----------*/function Open(){}/*---------- Begin VARIABLE declaration ----------*/// Field to varia
Hello,I have the following three rowsCREDITRow1 has the following custom validation script: this.getField("DEBITRow1").readonly = (Number(event.value)>0);If I enter a value in DEBITRow1 it correctly make CREDITRow1 read only, but when I go to tab from DEBITRow1 to Line DescriptionRow1 it tabs back to the top of the page and the first field. How can I correct this?Thank you
A form that was previously working perfectly now seems to be giving me some grief with the New Year having come upon us. This form is set to start at the current month and go back one month concurrently as below:1/2019 12/2018 11/2018 10/2018 9/2018It was doing this until the new year of 2019 came up and now it's duplicating some dates and looks like..1/2019 12/2018 12/2018 10/2018 10/2018I'm looking for some help to fix this issue and get it back to the way it is meant to be updating.Document level Javascripts are:To get first field:this.getField("Today").value = util.printd("mm/yyyy", new Date()); To get other fields:function getPastDate(Today, months){ var v = this.getField(Today).valueAsString if (v=="") return ""; var cDate = util.scand("dd/mm/yyyy",new Date("01/"+v)); if (cDate== null){ app.alert(
I have 6 dropdowns but based on space restrictions I had to include a script that showed the dropdown options on two lines instead of just one (kinda like a wrap around). I have the export values set for each item and a text box (TOTAL) that is set to calculate the export value for each dropdown based on the selections. However, the calculation is not happening. I'm sure it has something to do with the "wrap around" script, but I have no idea what I need to do next. Any suggestions would be appreciated. Below is how I have things set up right now.Dropdown1 through Dropdown 6:ITEM: FullyMet MostlyMet PartiallyMet SomewhatMet NotMetEXPORT: 10 7.5
Hello,I currently have 150 pdfs that need signed and no one wants to sign them cause of the amount. In order to get them signed I was thinking about creating a signature field with date to each pdf. these pdfs will have the signature field in an exact location for every one and on the the first page. I am fairly new to scripting so anything would help.If yall also could point me in the right direction to do this as a batch process that would be great.
Hi.I have a big document with confidential information. We have to send it to a person, but we must to hide some information in it.My collegue has been working in the document for several days adding white blocks wherever a critic information is. She added a white gif image and rearranged the size for every situation.Now we have realized that the block should be black.I tried to run a Javascript to change the colour of the blocks but i't doesn't work.This is the code: // Get a color convert action var toBlack= this.getColorConvertAction(); // Set up the action for a conversion to Black toBlack.matchAttributesAll = toBlack.constants.objectFlags.ObjImage toBlack.convertProfile = "Apple RGB"; toBlack.convertIntent = toBlack.constants.renderingIntents.Document;&nbs
Need some help with the following code. Everything works, ie export pages based on bookmarks with temp file names. That is until I add code to go and export the file with the name of its bookmark. Then I get the following error. Any help would be appreciated thanks.RangeError: Invalid argument value.Doc.extractPages:7:Document-Level:testThis worksconsole.clear();oDoc = this;bkTrgt = []this.bookmarkRoot.children.forEach(function(a){a.execute();bkTrgt.push(pageNum);})bkTrgt.forEach(function(a,i,k){oDoc.extractPages(k,((i+1)<k.length)?k[i+1]-1:oDoc.numPages-1);});This Doesntconsole.clear();oDoc = this;bkTrgt = []this.bookmarkRoot.children.forEach(function(a){a.execute();bkTrgt.push(pageNum);})bkTrgt.forEach(function(a,i,k){oDoc.extractPages(k,((i+1)<k.length)?k[i+1]-1:oDoc.numPages-1,oDoc.bookmarkRoot.children.name + ".pdf");});
Good evening I am attempting to create large if-then structured built into Functions.However, I am running into the problem of not being able to write IF-ELSE statements, when the argument is whether a drop-box is empty, or not.Here is an example:var dropBox = this.getField("Drop Box)";var SourceField = this.getField("Source");if (dropBox.valueAsString != "") { console.println(sourceField);}Even if Drop Box has no strings selected, it still won't complete the statement.Any help would be greatly appreciated!
So a helpful member of the community helped me with JS that will populate other text fields based on a selection. Now the issue is, these text fields don't populate as soon as you click on them. Can anyone help please with how I may be able to accomplish this, more info: I can't work Option2 to populate its values to the fields when I click on it. Here is the code:var text1Value = "";var text2Value = "";switch (this.getField("dropdownList").value){ case "Option1": text1Value = "Option1Value"; text2Value = "Option1Value"; break; case "Option2": text1Value = "Option2Value"; text2Value = "Option2Value"; &
My quote generator code is currently set at document level (see below);this.getField("quote_number").value = util.printf("%06d", Math.floor((Math.random() * 1000000) + 1));I would like to be able to save a copy of the form after it is filled out, but when I save the form now and reopen it, it generates a new quote number.I believe this can be done using a global object, but I am not sure how to set that up.Any advice is greatly appreciated!Thank you in advance! 🙂
Hallo!Ich komme leider selber icht darauf und die Suchergebnisse machen mich auch nicht schlauer Ich habe ein PDF Formular erstellt, nun wird aber gewünscht das wenn man das Feld ausfüllt dies automatisch in Großbustaben geschieht, egal was der jeweilige Nutzer des Formulars drückt/eingibt.Könnt ihr mir da helfen?DankeLG[ moved from Acrobat Community for Public Sector Professionals to JavaScript by moderator ]
HelloI am embarrassed to ask this question because I am self taught on JS and using the console for error debugging - and I taught myself on Pro 9 - however overnight, my office has upgraded me to Pro 2017 and now I find the the console / debugger completely useless. Instead of telling me which field has the issue, I now only see:TypeError: this.getField(..) is null1:Field:CalculateIn the button I hit (which was a reset button) I have dozens of fields that are set to do certain things on reset - it used to say for example:this.getField("HolderOne") is null so I knew exactly where the issue was. I kind of use it throughout the document and to test each execution as I create it. I don't really work in the document level script, I use the properties to add my script in.Could anyone possibly suggest how I can use this kind of error message to actually find my problem? Do I have a setting wrong? I lot of the time I am having a stab in th
I'm new to javascript, but have read various threads and tried several solutions. One of them worked in October...but now now longer works OR gives any error code. Any help is greatly appreciated.I am running the application forms on (3) computers on an office network.I have a button on the form that is SUPPOSED to "silent save" the finished application with the applicants LASTNAME, FIRSTNAME DATE with "application.pdf" at the end. For example: DOE, JOHN 01292019 APPLICATION.pdfI am running Adobe Acrobat Pro DC in Windows 10I know there is supposed to be "trusted functions" in the folder level and user level of each machine. I believe that means WHERE the finished application is stored and under the Adobe Javascripts folder. I am now so confused from all of the threads from 2010 to 2018 that I don't know where to go...Thanks again for any help.
Good evening, I am attempting to access a drop down list, however, I can't seem to change the value of the Drop down box within JS. Here is my code: var ListOne = this.getField("relationship.0"); var search = ListOne.getItemAt[1]; console.println(search.value);I can print out the current value that's set in the drop down list, but I can't set it to, "Mother" or, "Brother."Any help would be greatly appreciated!
Hello,this is a really simple question but still I cannot see anyone with this problem.I am only trying to set the value of a field using:this.getField("myField").value = 3;but I get an InvalidSetError.However I can set the value if I use the importTextData function. So the field name is correct, it is writable but doesn't accept a value.Thank you
How do you filter a dropdown list based on user input. Say, the countries list. when the user types either "a" or "A" the dropdown list should list all country names starting with "A". Usage in standard PDF Form and not in Lifecycle Designer form. Thanks.
Hi all, is it possible to disable the saveAs menu option in PDF? Via JS or preferences?Thanks and regards!Juan Carlos
Hello!I tried to search for this but all i find is a custom save button with script for changeing the filename. In my case i want to add multiple signatures to a file. every time i add a signature, i am asked to save the file including the signature. i want the save option to automatically change the file name to a value like e.g. "order number" which is declare on the top.Is there a way to implement this?
helloi have certificate and i want add digital signature to pdf file.how i can do it using js api
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Har redan ett konto? Logga in
Har du inget konto än? Skapa ett konto
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.