Unlock the power of Acrobat SDK through our community.
Recently active
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: 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.
Hi all, Got a pdf with fillable fields, TIME OUT & TIME IN. Both are entered as HH:MM. No seconds, no date. 24hr clock. I want to find time difference between them also dispalyed in HH:MM. ie time in 12:00, time out 14:30....elapsed time...02:30. I cant get a head of this and its bugging me. Can anyone help?
Hello all,Im sorry if this has been asked, i have been through all the help docs and through google. i am new to Acrobat DC and am trying to create a JavaScript that adds 2 hours to the current time. I dont need the entire date, only the hours. ie. i save my form and it automatically says the time in "arrival" 2 hours from the system time. I am able to get the current time to populate with: var f = this.getField("arrival"); f.value = util.printd("HH:MM", new Date()); and tried adding the variables i could find to add 2 hours two it. I tried using the adding the 5 days format i found in the community and tweaking it to my need to no avail: var f = this.getField("arrival");var twohours = .83 * 24 * 60 * 60 * 1000;var theNewDate = new Date (finalTime); f.value = util.printd("HH:MM", new Date()); can anyone help?
Hi, I need help to implement into code bellow, ok: function for "ok" button to write data from input field into text field and other; function for reset button to reset or write 0 into same text field.var CustomDialog = { description: { name: "Some Name", elements: [ { name: "Some text", type: "static_text", }, { type: "cluster", elements: [ { name: "Some text", type: "static_text", }, ] }, { type: "cluster", align_children: "align_row", elements: [ { name: "Some text", type: "static_text", }, { item_id: "usnm", type: "edit_text", char_width: 4, }, ]}, { type: "ok_cancel_other", ok_name: "Ok", cancel_name: "Cancel", other_name: "Reset" }, ] } }; app.execDialog(CustomDialog);
Happy Monday, I am still learing and could use a little help please. I searched the previous threads and cannot seem to figure out these several parts of Javascript for my PDF please: 1) I have the following code in the custom key stroke section: "if (event.change) event.rc = /^[a-z]+$/i.test(event.change);"It's working, but I would like to add a allert/nag pop-up, when someone types a numeric character, please. I can't seem to get that part to work. 2) I have a section with 5 checkbox choices. I need them to start all as required, but once, one of any of the 5 choices is selected, the required and red outline goes away for the other 4 remaining choices please. 3) Not sure if this part can be done. If they select specific options in a dropdown, it adds new pages/forms to the bottom of the PDF that have to be completed.Sorry to be a PITA. Thank you in advance and please stay safe and healthy.
I have a section with 5 checkbox choices. I need them to start all as required, but once, one of any of the 5 choices is selected, the required and red outline goes away for the other 4 remaining choices please. I am very confused how to use the .value option for a group of check boxes. I had thought just that alone, would un-red the remailing 4, once any of the others are selected. It should be noted, even though, I want the required red outline to go away, I still want the other 4 boxes to be able to be selected please. I am also having a hard time with a simpler one. I have a text box, that if anything is entered, I need a word endered into another text box please. Thank you in advance.
I have form that assigns analyzers when the mouse up action occurs on the form. User will enter the serial number of the analyzers and the appropriate forms are spawned. I had to add a feature to allow the user to change the serial Number in case they make a mistake or the Analyzer fails in the field. I opted to delete the spawned pages and recall them again using the new variable value to add the serial number on the newly spawned forms. Everything works as should and no errors are logged in the debugger except the the old serial number is added to the newly spawned forms. The portion of code to assign the new value to the variable is highlighted in red. I have tried everything I could think of and have serched online for countless hours. Any help would be greatly appreiated. The code I wrote as follows:// If button is Clicked and the hidden check box is not checked - the Analyzer1 check-off pages will be spawned;var cb2 = this.getField("CB2").value;var b1 = this.getField("
I created a set of dynamic stamps to be used at deposition hearings. One is to be used for Plaintiff, Defendant, Claimant, etc. I want to be able to select ONE stamp and place it on a document. These stickers each have a fill in field where I can place a number or a letter in to identify the document as Exhibit A, B, 1, 2 etc. I am using app.response in each of the stickers to fill it in. The issue that I am having is that when I try to bring up, for example, the Defendant's sticker it will ask me what letter/number I want to assign to it. It does this four times (there are four stickers in the file) before it allows me to place the sticker. It seems to be running the app.response for each and every sticker. This is the code that I have in my sticker - event.value = app.response("Exhibit Number:"); How do I tell the program that I am only interested in labeling ONE sticker?
I am looking to insert the same block of text to selected pages of a PDF. I need it to say "end of report" on multiple pages within a PDF, and I need to place it there as I am going through the PDF. Sometimes I have thousands of pages in my document, so a footer isn't a great option because I only really know what page I need it on when I am selected on that page, and sometimes pages before or after it may be removed. Ideally, I would like to be able to use a keyboard shortcut or a toolbar button. I would like it to automatically go centered and at the bottom of my page, but could also do at the cursor. I would like this to be text, not a stamp, because of our internal process using stamps as a commenting tool.
I'm trying to work on a fillable PDF, but I'm new to JavaScript and have only don the bare minimum, I have been asked to do this on the PDF and I can't figure it out: Youth Registration Fees: equals number put in text box(# of paid youth) x ($5.50 x the number of months chosen in #18). UNLESS Box 15 or 17 are checked. If Box 15 is checked the formula changes to the number put in the text box(# of paid youth) x ($2.50 the number of months chosen in #18). If Box 17 is chosen, the formula changes to number put in text box(# of paid youth) x ($3.50 x the number of months chosen in #18)
I am currently working on a form that spawns pages and adds the serial number to each page and changes the Button name to the serial number the technician types in. It works the way I expected, but changing the buttonSetCaption command using a variable also generates an error. This was liveable but the technicians have requested that we add a way to change the serial number within the document instead of having to create a whole new form. This has become problematic and I can not find a solution online or in any of the forums - any help/insight would be greatly appreciated. Here is the code I have so far:// If button is Clicked and the hidden check box is not checked - the Analyzer1 check-off pages will be spawned;var cb2 = this.getField("CB2").value;// Assign Templates to be spawned a variable so they may be recalled;var a1a = this.getTemplate("Analyzer1A");var a1b = this.getTemplate("Analyzer1B");var a1c = this.getTemplate("Analyzer1C");var a1d = this.getTemplate("Analyze
I've got a form that I'm trying to create a form that can used for survey work. I need to be able to select the Feature, then have the Type populated based on the Feature. Then be able to select the Type and have the Material list populate based on the Type. I can't get the test code to work and don't know why. Any help?Link to Test File Thanks in advance.
Hi all I have a multi-page (22pages) form with a "Save Form" button on each page. When I export the file from InDesign into Acrobat I'm currently using "Prepare Form", then selecting multiple instances of the button on each page, then applying the "Execute Menu Item" across all buttons. However, is there a way to do this using a script? Just trying to speed up my workflow. Thanks M
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.