Unlock the power of Acrobat SDK through our community.
Recently active
I have a fillable form and have created the three buttons listed in the subject. I am having issues with the Add Page button and Clear Page button working the way I need too. When I click "Add Page" it creates the new page but it copies all the data from the first page.JavaScriptcar a = this.getTemplate ("Name"); a.spawn(); When I click " Clear Page" it clears the entire document not just the page I'm on when I click the button.JavaScriptif( app.alert({cMsg: "Are you sure you want to Clear",cTitle: "Reset Warning",nIcon: 2,nType: 2}) == 4) {this.resetForm();} I am basically attempting to add a new page to the document that is the exact same as the first but is blank. I need the buttons to work independently from page to page only affecting the page the button is on. For example if a user needs to start over on page 5 without having to redo pages 1-4 they can click the button and start over. I have no clue what I'm doing any help would be appreciated.
How I can install adobe acrobat reader on my Macbook air? Every time it start installing it stop I dont know the reason. If somebody now let me know.
Just got back from uninstalling Acrobat DC on another 3 user's systems and reverting them back to Acrobat XI. It's like a virus - once a user hears that it's actually possible to revert back to XI, they all want to revert. I personally hated Acrobat DC, I think it's harder to use, it's simplified interface causes more grief then it solves, it buries important things under layers of commands, and the bright white interface / contrast issue is a hilariously awful design decision. I gave it a few weeks and got rid of it, but as a sysadmin, I'm also not using it as much as my users who are constantly working / editing / signing / combining PDF files.I feel like I'm missing something that DC must offer my users, but they all universally hate it. I am curious if anyone else has had this experience with DC or find it in any way better than XI?
Hi, I am in need of assistance writing a custom calculation script for a field.My form includes two fields that include a low and a high value, and another field that has a total value. I need a script to show me the variance if the total value falls outside of the low or high. If the total value falls within the range, it should just say $0.00 Example: Range is $2,000.00 to $5,000.00 and the Total is $5,500.00. I need it to return $500.00. Can anyone help me with this?Thank you in advance!
I have three dropdown lists that all have information. I am trying to figure out if there is a way to limit the selections of the second and third drop downs based on the selection of the first. So if i have options A, B and C in dropdown 1 and AA, BB, CC and DD in drowpdown 2 how do i show if you select option A to only allow you to select option BB and CC in the second one, etc. Thanks.
I have a user-input form with a series of questions that have 4 differently ranked answers for each question. No duplicate ranking is allowed. Example Question: "My favorite food is:" Rank these possible answers from 1-4 in order of preference: Apple; Ice Cream: Fish; Wine I'm using Acrobat Pro DC. Can I create a script under either Calculate or Validate that would make this work? If so, what would that be? If not, any suggestion? I have created 4 dropdown boxes for each of the 4 form fields. They are named: Dropdown1a, Dropdown1b, Dropdown1c, Dropdown1d. I would create/name the remaining fields as Dropdown2a, Dropdown2b, Dropdown2c, Dropdown2d, and so on. I don't use JavaScript, but here's the simple script that I thought might work:if(Dropdown1a) not= (Dropdown1b)if(Dropdown1a) not= (Dropdown1c)if(Dropdown1a) not= (Dropdown1d) Any help is much appreciated. Thank you.
Hello, please, I have a Button and I need to fill in the Text Box with some text after clicking on it.What code do I have to type in the action on the button when I want to insert text (may be in code) into the text box? Thank you very much.
Is it possible to add a "signature" field that is actually intended for a custom dynamic stamp? Our process is to approve documents by adding a signature and an official stamp assigning a number to it. We have a custom rubber stamp we typically use for this, but I want to make it possible to be done via adobe sign remotely due to the "stay home" COVID-19 restrictions. I know how to create the dynamic stamp. I can't figure out how to create a form field for placing.
Is there an efficient way of getting the word under the mouse using the Acrobat SDK? I have seen some discussion of using AVPageViewDevicePointToPage, enumerating the text elements, then doing a hit test using PDEElementIsAtPoint. Of course, this is probably not so efficient. Any tips much appreciated. I would like to make a simple dictionary lookup tool that responds as you move the mouse.
Hello, I am trying to get a field on each page to show a total of the number of buttons on that field's page that have a specific caption ( "X," "(X)," or "OUT OF TIME"). My goal is to be able to paste a copy of this field on each page with a unique name and have it work without needing to change the code. So far my field just displays "1" whether the criteria are met or not, and doesn't update when I change the button captions. (The buttons are set to cycle through a set of captions when I click on them.) By default, all buttons' captions are "", but after clicking, the captions will cycle through "X," "(X)," "OUT OF TIME," "OK," and back to "". I'm not great with "for" loops yet, so I'm not sure what I'm missing. for (var i = 0; i < this.numFields; i++) { var f = this.getField(this.getNthFieldName(i)); var reg = /btnOriginal/; var count = 0; if (f.pageNum == event.target.pageNum && f.name.match(reg) && f.buttonGetCaption == "X" || "(X)" || "OUT
Hi. I am making a Dynamic stamp. I need to collect multiple data inputs from a form, and shows in the fields of the stamp. The code shows a dialog box every input, which is annoying: this.getField("Name").value = app.response("Name"); this.getField("Corporation").value = app.response("Company"); this.getField("Invoice").value = app.response("Invoice"); I was triying with something like that, but it just gives me one input.... var oDlg = { strName: "", initialize: function(dialog) { dialog.load({"usnm":this.strName}); }, commit: function(dialog) { var data = dialog.store(); this.strName = data[ "usnm"];}, description: { name: "Test Dialog", elements: [ { type: "view", elements: [ { name: "Enter your name:", type: "static_text", }, { item_id: "usnm", type: "edit_text", char_width: 15 }, { type: "ok_cancel", }, ] }, ] } }; this.getField("Corporation").value=
I have a document that is used for filling out FEMA flood certificates. Part of the document is set up so that when we use the address as the file name appended with -CD , -UC , or -FC it ignores anything after the dash and fills in the box for the street address. Is it possible to adjust this so that the address still completes and have the part after the - activate a radio button that changes fields that are calculated and read only to uncalculated fields that require a number to be entered.
I have a 2 page form with buttons. 2 of the buttons have the ability to spawn a new page when selected. If both of these buttons are selected then the form go from the initial 2 pages to a total of 4. My question is that I have a clear form button that when pressed I want any and all spawned pages remove to reset the form to the original 2 pages. When I enter the script below it will remove one of the 2 pages, but not both. What am I missing? if (numPages > 2) {this.deletePages(2, this.numPages-2);}
Hi Team,Can Anyone provide the sample code to AddSticky Note Annot to Existing PDF File using VBA code using Acrobat SDK(JSObject).ThanksMahesh
Hi,After several researches, I discovered that there were a lot of interesting functions in Adobe that I could use for my project, but I discovered that these functions (like for example saveas ()) can only be used on the Adobe console, is it possible to use them elsewhere? in my case, I would like to use them in Google Cloud Functions with Node.js ?! Thanks
Ok. Could someone please help? I've been tasked with taking an excel order from and creating a fillable PDF. Here is where I lose it. I need to create a calculation with user filled amounts that calculate sum and a discount.Subtotal + Misc Amount + Shipping Costs = Final TotalDiscount in percentage will applied to final total.The calcualtion for the final total I get if there is no discount. The discount is a user filled field that may or may not apply.If there no discount then the field need to be empty. If the user inputs a number then it must show a whole number with the percentage sign and calculates the final total.Any help would be great. I'm a scripting noob.
I have 10 Dropdown boxes all named "satunsat.#" (# is 0-9). I want to count the number of "SAT" and "UNSAT" answers and provide a percentage. The percentage is no big deal I already do that in a couple of other fields. But how do I get it to count those answers? Also I use "-" for my blank value and not all 10 dropdowns will be used. It varies depending on information available. So sometimes I will have 6 total answers, or 5, or 10 or even just 2. -SATUNSAT
I'm on macOS Mojave, version 10.14.6 and using Creative Cloud Adobe Acrobat DC version 20.0. Where the eff are Dynamic Stamps/Created Stamps stored on here?? I'm trying to create a dynamic stamp, and every tutorial I've found says where to find the stamp files but so far that spot does not seem to exist for me. There's gotta be a better way! UPDATE:Okay, of course, I found it immediately after posting this question. Here's the link that helped me solve it, courtesyof Adobe Community Professional Thom_Parker, in case anyone else needs it: https://www.pdfscripting.com/public/Installing-a-PDF-Stamp-into-Acrobat-Macintosh-and-Windows.cfm
I have a PDF document that has a mailto: link inside. When I click the link I am presented with an Outlook email to the recipient but I want to add the document as an attachment in the process. Suggestions
Hello there,Is there a way to change the value of a Radio button with some kind of JavaScript "If function"?The dropdown box /pixelamount/ has 3 options: 1024/2048/4096 To every option there are 3 radio buttons /Group1/: A, B, CMy problem is that every option should have a radio button with different value e.g.:1024: A = 102048: A= 204096: A= 30and i have no clue how to achieve it. Thanks in advance for any tips!
There are two "Date Field".If there is no input in one of them, I want to reset the other "Text Field", but I can't. The following JavaScript is embedded in the "Text Field" that I want to reset. In the example below, the "Text Field" is "AA_A".The "Date Field" are "Day_Start" and "Day_Set". By the way, "Text Field" is numeric.And also readonly. var AAAa = this.getField("AA_A");var AAAb = AAAa.value; var DayBa = this.getField("Day_B");var DayBb = util.scand("yyyy/mm/dd", DayBa.value);var DayBc = DayBb.valueOf(); var DayCa = this.getField("Day_C");var DayCb = util.scand("yyyy/mm/dd", DayCa.value);var DayCc = DayCb.valueOf(); All of the following do not work. (1)if (!DayBc || !DayCc ){this.resetForm("AA_A");}; (2)if (DayBc == null || DayCc == null ){this.resetForm("AA_A");}; (3)if (DayBc == undefined || DayCc == undefined ){this.resetForm("AA_A");} (4)if (DayBc == '' || DayCc == '' ){this.resetForm("AA_A");} (5)if (DayBc ==
Hello,I'm trying to write a function to replace text inside FreeText comments without losing the Rich formatting of said comment. Previously I used a .filter.map(replace) over the getAnnots() array of a document, but this removes any formatting and makes everything use the richDefaults. The nested for loop I have right now (see below) is returning the correct value in the console, but I can't get it to output to the annotations themselves. Could anyone please help me figure out why?var replaceItem = "abc123"; var replaceWith = "def456"; var annots = this.getAnnots(); var toReplaceItem = RegExp(replaceItem, 'g'); for(i=0; i < annots.length; i++){ if(annots[i].type == "FreeText" && annots[i].contents.search(toReplaceItem)!= -1){ for(j = 0; j < annots[i].richContents.length; j++){ annots[i].richContents[j].text = annots[i].richContents[j].text.replace(toReplaceItem, replaceWith) } } }
I do not have any JavaScript experience and am hoping that someone can assist me with a Adobe form calculation.I am creating a Pass/Fail scorecard that will take a value from a field (Calc_OScore) and then return a word (Perfect!, Pass, Fail) based on the score.Due to my lack of experience and ignorance, my attempts to make this work have been nothing more than copy/paste trial and error from others' scripts and experiences.I've tried this:var text ;if ("Calc_Score" == 16) {text = "PERFECT!!";} else if ("Calc_Score" > 11) {text = "PASS";} else {text = "FAIL";}And one of these:var int1=this.getField("E_score").value;var int2=this.getField("S_score").value;var int3=this.getField("P_score").value;var int4=this.getField("C_score").value;var tSum = Number(int1+int2+int3+int4);var rVal = 'NULL';if(tSum===16){rVal='PERFECT SCORE!';}else if(tSum>11){rVal='NOT PERFECT BUT OKAY!';}else{rVal='FAIL';}return rVal; Can anyone help out here? If it makes it easier to understand what I'm try
I have already disabled the JavaScript Feature completely by registry trick. But however when users open a document which has JavaScript which user have a option to enable JavaScript which we want to restrict, this is applicable to all document which has the JavaScript based.
How can I can find the oCoords (field.rect) information for each check box in a check box group? I'm only able to find the first set of coordinates. It seems that the function getNthFieldName is also seeing the entire checkbox group as 1 field. I tried to play around with exportValues and field names but I was never able to locate the .rect information for all exportValues. I have to change hundreds of check box groups into radio buttons. I made a lot of progress thanks to this forum and older post but at the moment I can only create all the correct radio buttons at the location of the first checkbox group field. This means I have to manually drag and drop them to the correct field location. Example:In the example below you can see I can only find the location of 1 box even though there are 3var fieldName = getField("Check Box Group"); fieldName.rect 279.6754150390625,313.5375061035156,297.6754150390625,295.5375061035156 fieldName.exportValues 1,2,3 &n
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.