Unlock the power of Acrobat SDK through our community.
Recently active
I'm brand new to Adobe programming and I'm trying to automate the conversion of an Excel worksheet into a PDF. I need to add a footer and, through Google research, found out how to do it using "addWatermarkFromText". Now I need to add an image to the header so I guess I'll have to use "addWatermarkFromFile". I found out though that that function needs a "trustedfunction" wrapper and I don't know how to create one. Apparently, you create the trustedfunction and save it to a particular folder. Does anyone know how to do this? Thanks very much for any help.
Where can I find the SDK documentation for addWaterMarkFromText and addWaterMarkFromFile APIs?
Hi, I have an Acrobat JavaScript that deletes pages in a document based on the absence or presence of an annotation on the page. I developed and tested it with Acrobat Pro. Will these kinds of scripts work with Acrobat Standard 2017? Thank you.
I have a form which have one Text Field, one Check Box, one Digital Signature and button control.For Text Field and Check Box control, I am able to validate the value and setfocus if value is not provided on button clicked. But for Digital Signature, how can I open "Sign with a digital ID" pop up (as snapshot attached here) if document is not signed on button click. I don't what to sign the document using javascript. Is there any way to open "Sign with a digital ID" pop up directly using javascript if Digital Signature field is available in pdf?
Hi,I used below code for read Annotation comment from the pdf document using acrobat pro 11 . But I need to read Annotation reply comments also. Any way to achieve this?.var annots = this.getAnnots({nPage:1,nSortBy: ANSB_Author,bReverse: true});console.show();console.println("Number of Annotations: " + annots.length);var msg = "%s in a %s annot said: \"%s\"";for (var i = 0; i < annots.length; i++)console.println(util.printf(msg, annots.author, annots.type,annots.contents));Thanks,Kesavan R
Trying to have an alert pop up only if two conditions are met. The script is running On blur for the text box. First condition is the text box and second is a check box just before it. Right now the message is popping up everytime we tab to the text field regardly if the conditions are met. if ((this.getField("EthnicityOther").value.length == 0) && (this.getField("Other1").value = "on"));{app.alert("When Other is selected, please enter a description.")f.setFocus()}
I have field "points" that shows value 30/30, and 3 other fields(C1,C2,C3) for entering values which then substracts from field "points".How do I make it so field "points" can't go bellow 0, it only allow up to 0? for example if I want to enter 31 in field "C1" itdoesn't allow me.INFO:Field "points" have default value of 30 and use custom calculation script:var a = this.getField("points").defaultValue;var b = this.getField("C1").value;var c = this.getField("C2").value;var d = this.getField("C3").value;var x = a-b-c-d;event.value = x + "/30";It doesn't allow me to enter "Field value is in range" which I could use to solve my problem, I can only enter custom validation script.I also have 3 buttons each for fields C1,C2,C3 with dialog boxes where user input numbers which is then writed to fields C1,C2,C3. I think that I need custom validation script for field "points" but not sure how to write one.
I have create new action using Action Wizard in Adobe Acrobat DC. Is there any way to call this new action using javascript? My requirement is to create custom menu, which can call this new action. I am following this link for custom menu https://acrobatusers.com/tutorials/add_custom_menu_items/
Hi, I am trying to create a form where there is an "effective date" and then once that person fills that in(it will be in yyyy/mm/dd format), the next field is autocompleted to be 1 year from that date. I am new to any custom calclutation script but I believe this is what I need. Thank you so much for any help.
Hey guys I'm new here and I'm a complete novice at Javascript. I'm a designer that wants to get better at coding. I'm trying to add a numeric value to the checkboxes in the 'size' row. Each of the 6 checkboxes will have a different value. Those values will be added together and multiplied by the values that will be inserted in the 'quantity' and 'colours' rows, to get a total. So the total at the end should be something like size(s)*quantity*colours. I'm currently stuck at applying values to the checkboxes. I've been at it for about 2 weeks now (seriously) and haven't figure it out. I used arrays to group the checkboxes as seen in the code below. I can check which box is ticked, but I don't know how to apply values to the boxes and only calculate boxes that are ticked. Any help would be greatly appreciated. Thanks var estimate = this.getField("estimate"); var sizesMale = ["male_small","male_medium","male_large","male_xl","male_2xl","male_3xl"]; var quantit
Hello All, I'm calling my web Service from the Submit button. I'm sending as a FDF include Comments. when I'm calling it as physically click on the button it's sending comments, but when I tried to call it with Java scipt it does not include coments/Stick notes. I have tried the below method: var myURL = "http://localhost.../"this.submitForm(myURL, null, "HTML");this.submitForm("http://localhost",true, false,"");//var cd=('http://localhost');//this.submitForm(cd,"Comment", "#FDF"); Can someone please help me.
All file already completed
I'm getting missing before statement, Do I need to separate +* and how do I do it?event.value = Number(this.getField("field").valueAsString)"+"+*6+"%";
Greetings,We have hundreds of pdf files that we would like to protect them individually with different password and send them out individually.Is there any solution provided by Adobe to accomplish this task?Scenerio: Finance/Payroll Dept would like to go green and save monies by sending employee's non-negotiable pay check in PDF format and protect them with a password that employees provided. We need to be able to do in batch for hundreds of employees.Can anyone shed some lights on this?Thanks,
I have just recently downloaded Acrobat DC Pro because I was told it came with the SDK and the SDk could handle the task I was looking to perform. The bottom line is I am trying to index a PDF file without opening it in Adobe acrobat. I have spent the better part of the week researching this and I'm struggling to make a lot of progress, so I have a few questions.Can someone point me to some examples of using the SDK to index a PDF file. I'm not a javascript or C# developer but have enough programming experience to figure it out once I get started.Best suggested way to accomplish my task? Javascript? C#? Plugins? or Windows Interapplication communications?Lastly? It only looks like I can create a full text catalog (pdx) on the PDF file through the SDK - is that correct? Why did adobe change to have embedded indexes diabled by default?Sorry for the ramblings but any help / suggestions would be greatly appreciated.Thanks ,Joe
In Adobe Acrobat Pro DC I have designed a fillable survey for clients. At the top is a generic text that I would like to have customized. The generic text reads "Custom Residence" and is on every other page at the top. I was wondering if there was a simple way to manually change the first pages text to a respective clients names and have that update the same on all other pages? Summary. I'd like to update text on one page, and have all other pages reflect that same change.
Hello everyone, I created a PDF fillable form for Spanish users, but when I try to type in Ñ/ñ on he Acrobat reader it wont allow me I type the universal command which is ALT+ 164/ALT + 165 and nothing. Is there a way to prevent this beforehand when creating the form in inDesign? I used a font that does include the chracter and it does work while in inDesign, but not in the interactive pdf.
How can I measure the margins of a PDF document? I need to be able to inspect many documents (100+) to see if their margins comply with requirements.
Hi, I'm using acrobat pro to create a form. I need a button that when pressed will copy text from a hidden text box and allow me to paste it into another program. Is this doable? Thanks in advance. Sean Downes
if(this.getField("field").checkThisBox(0, event.value=="4/8"));How do I make it check the checkbox even if values are "5/8","6/8","7/8" and "8/8"?
My requirement is to show warning message before signing the document without customizing the PDF.For this I am creating custom menu to execute below action in sequence:Execute JavaScript to show alert And then pop up digital signature Below is the Javascript&colon; var DoMyMenuItem = app.trustedFunction(function(cItemName) { app.beginPriv(); app.execMenuItem(cItemName); app.endPriv(); }); function CallMenu() { try { app.execMenuItem("FillSignApp"); //DoMyMenuItem("Signatures"); } catch (e) { app.alert("Error: " + e); } } app.addMenuItem({ cName: "My Action Menu", cParent: "Help", cExec: "CallMenu(); " }); I am getting this error "Error: InvalidArgsError: Invalid arguments." on runtime. Is there anywhere I can show warning message to user before signing document and Is there a way to call Digital Signature using JavaScript execMenuItem function?
I have built a timesheet for my employees but unfortunately it confuses some. I need it so you insert the date for the last day of the week and then it automatically fills in the dates next to the corresponding day. For example. 11/02/2020 Wednesday. Please help
I have to post this query 3rd time.. bcoz someone is marking my post as spam don't know why Hi,I have a form of 4 pages, all 4 have been turned into templates. I have dropdown on MainPage from where user can select Month, according to which corresponding template should show/hide.... ex.. if January is selected then Jan20 template should be visible rest hidden, if February is selected then February should be visible rest hidden..... Below is the script i have used,, everytime selection is changed it throws error "Bad parameter". My adobe version : Adobe acrobat pro DC 20.006.20034.39303 Attached is the link of the file: https://www.dropbox.com/s/1sra0teo5w96k93/2020.pdf?dl=0Here is the javascriptvar a = this.getTemplate("Main_Page");var b = this.getTemplate("Jan20");var c = this.getTemplate("Feb20");var d = this.getTemplate("Mar20"); var resp = this.getField("Monat").value;switch (resp) {case "January 2020":a.hidden = true;b.hidden = false;c.hidden = true;d.hidden =
Could someone possibly help me and modify code for me?I would need to change from "edit_text" to "popup" with selections t1,t2,t3 and "ok" button to write selections to text field. I'm trying this whole day and just can't figure it out. var dlg = { commit: function(dialog) { var data = dialog.store(); this.strName = data["usnm"]; }, butn: function(dialog){ dialog.end("butn"); }, description: { name: "", elements: [ { type: "static_text", name: "", char_width: 15, alignment: "align_center", font: "dialog", bold: true, }, { type: "cluster", name: "",elements: [ { name: "", type: "static_text", }, ] }, { type: "cluster", align_children: "align_row", elements: [ { name: "", type: "static_text", }, { item_id: "usnm", type: "edit_text", char_width: 4, }, { type: "button", item_id: "butn", name: "Reset" } ]}, { type: "ok_cancel", ok_name: "Ok", cancel_name: "Cancel", }, ] } }; var dialogReturnValue
Good morning, I need a hand please with code that takes height and converts it to a more detaliked version. Height would be entered like this for feet & inches: 600 (which means 6 feet & 0 inces). I would like it to to display as multi line like this please: Ft 6In, 00 Thank you in advance.
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.