Unlock the power of Acrobat SDK through our community.
Recently active
Hello,I am putting together a multi-page pdf that has navigable buttons on the top and bottom of every page.On the cover, I would like to explain my readers about the functions of those buttons. Is there any way to have a nice colourful instructions box with round corners that would appear when they click on the instructions button but disappear as the reader clicked anywhere outside that box.Thank you in advance.Jo
I've been fighting an issue with creating a dynamic stamp. I can't seem to get popup menus (list boxes) in dialog boxes working. The popup menu is displayed properly in the dialog box, but there is no content in the dropdown, although it is defined. The javascript is in two locations.The global (document) javascript:var builder = { // These map to Text Fields in the Stamp textBoxes : [ { field:"Name", description:"Name:", default:function() { return ""; } }, { field:"Company Name", description:"Company Name:", default:function() { return ""; } }, ], // This maps to a Popup Group in the PDF named 'Project' popupGroup: "Plan Section", listItems : [ &nbs
I am working on an itemized expense form and need to track mileage. I am trying to enter a formula that will add each of the columns for miles and then multiply that total by the .545 standard mileage rate. Any help would be appreciated. Below is a portion of the document I am working on. I only need assistance with the totals for the Mileage. Thank you!Dates: TOTALS:Breakfast($15.00 max)Lunch($20.00 max)Dinner($30.00 max)Registration Airfare Hotel/Lodging Rental Car Transportation Parking Mileage (# of miles x standard IRS rate)Other(Explain below) Explanation of other charges: _______________________________________________________________________ Funding Acct Number: _____________________________________________________ Total expenses:
The purpose of the form i am making is to have blank fields as NOT readonly and fields that are filled in as readonly. If the filled in fields need to be modifed, i have an edit button that turns all fields that are readonly as false and once ONE field is edited it disables editing unless you click the edit button again. The PDF is working fine if i go to each field and paste the script below into is custom calculation script{var f = this.getField(event.target.name);if (f.value == "")f.readonly = false;elsef.readonly = true;}However since i have many fields and files where i need to apply this to, I need a way that allows me to apply this script to all fields in the PDF.What i tried doing was selecting all my fields BUT when I opened the properties tab it does not give the calculate tab to enter a custom calculation script (see below):It does give the option to add a javascript action so I added the javascript with a mouse up trigger. I used the same code {var f = this.getField(event.t
is there way to automatically bring in file name in the one of the text box in the adobe form?sorry in advance for dump question.example for my question. assume file name is: "john doe (XXXX) 07.26.2018.pdf"take the john doe (name of the file) and automatically input in to one of the text box in the form. text box name is "name"Please let me know and thank you for your help. THANK YOU!
For ages, I have produced my "transparencies" by editing PDF files. I remove parts step by step in order to show those pages in reverse order, presenting my stuff paragraph by paragraph (or even line by line).In the new version of Acrobat Pro, editing (often) influences other parts of the slide, even other paragraphs that should not be effected, ruining my presentation. How can I make sure that nothing but the edited parts are effected, just like the good old touch up tool did? If that is not possible, I have to return to an old version.
Is it possible to write a calculation formula that isn't based on numbers? I am creating a risk assessment worksheet. There are 2 categories to score-severity and probability. The available options for severity are I, II, III, IV, and N/A. The available options for probability are A, B, C, D, and N/A. Depending on the combination of the 2 options (i.e. I-A, IV-C, etc), the result could be EH, H, M, or L. Is there a way to calculate the result based on the 2 inputs? I hope that makes sense.
I'm experiencing crashes and random misbehaviour of Acrobat (both on the latest DC Pro and even back on 8.3) as when launching an embedded PDF from an IBM (Lotus) Notes document AcroAXApp is giving me an AVDoc instance that hasn't finished drawing, so making calls against it (and its associated PDDoc) upsets Acrobat.I'm basically trying to script extracting OLE Embedded PDFs from an IBM (Lotus) Notes database. When I make COM call to Lotus Notes to activate an embedded PDF it loads the PDF in Acrobat and I get back an AcroAXApp object which has a Document method which returns an instance of AcroAVDoc. From that AVDoc I can get the PDDoc and call Save against it and then Close.The problem I'm running into is that when I call AcroAXApp.Document it seems it will return the AVDoc before it's finished drawing it on screen, so depending on the timing of my code I can get all sorts of odd errors and total crashes calling methods against AVDoc and its associated PDDoc (sometimes on Save, somet
I have a time field that enters the current time when I enter the field (acroform).I was able to do this successfully with the code below. However, I would like to copy this field multiple times (T1.0, T1.1, etc..) and not have to enter and change the javascript in each field. Any wildcard to replace "T1.0" with the reference to the same field? I'm sure this is a very elementary question but I haven't been able to figure this out or find it.var f = this.getField("T1.0") //target field to copy overif (f.value != null && f.value != ""){} else { f.value = util.printd("HH:MM", new Date());}
Please suggest how to add Highlight annotation to selected text in PDF using javascript
I have a PDF checklist with 12 checkboxes named Pass1.0, Pass1.1 and so on up to Pass1.11. There's a Visible text field called CompletePrompt at the top of the page on top of a Hidden signature field. There is a Sign Checklist button at the bottom of the page. When clicked, the following js runs: this.getField("CompletePrompt").display = display.hidden;this.getField("ReviewerSignature").display = display.visible;this.getField("ReviewerSignature").setFocus();this.getField("ReviewerSignature").strokeColor = color.red; I want this to happen if and only if every one of the 12 checkboxes is checked. If even one box is blank, I want the script to end and trigger an app.alert without toggling the visibility of the other fields.My current effort ended in: var f = this.getField("Pass1");if (f.valueAsString == "Off") { app.alert({cMsg:"Check all Checkboxes to Sign"}); } else if (f.valueAsString == "Yes") { this.getField("CompletePrompt").display =
//This is my code now.var th = ['', 'thousand', 'million', 'billion', 'trillion'];var dg = ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine'];var tn = ['ten', 'eleven', 'twelve', 'thirteen', 'fourteen', 'fifteen', 'sixteen', 'seventeen', 'eighteen', 'nineteen'];var tw = ['twenty', 'thirty', 'forty', 'fifty', 'sixty', 'seventy', 'eighty', 'ninety'];function toWords(s) { s = s.toString(); s = s.replace(/[\, ]/g, ''); if (s != parseFloat(s)) return 'not a number'; var x = s.indexOf('.'); if (x == -1) x = s.length; if (x > 15) return 'too big'; var n = s.split(''); var str = ''; var sk = 0; for (var i = 0; i < x; i++) { if ((x - i) % 3 == 2) { if (n == '1') { &
Would like to put some javascript code into the form open event.Cant find where to insert the code?
Good afternoon!The code below compiles just fine and I have no missing references, but when I reach the For Each block, there are no FormField items to process (and the loop is not entered).Here are the references:I'm using Adobe Acrobat Standard DC, 2015 Release (Classic) | Version 2015.006.30434. Do I need the Professional version for this code to work?I've spent the better part of the day trying to figure out what I thought would be a pretty simple task. What I want to do is loop through a list of several hundred PDF files, open them, find a specific text string, modify it, slightly expand the width of the text box that contains it, then save/close.I've found code to find and select the string (AVDoc.FindText), but nothing that allows me to change it (e.g. A300-000A-T-1 to A300-000A-T-101).There are some relatively cryptic (cryptic to me anyway) posts out there regarding JSO, but I'm not having much luck with that so far. Most of them talk about adding items to the form, not changin
I reinstalled Adobe Acrobat 8 Professional on a new laptop after the old PC crashed. Following successful installation I tried to "Activate" the software and received the following error:"Registration connection error" "We were unable to connect to Adobe to Register your product."How can I resolve the issue and activate the software? I tried exiting the software and registering again, but received the same error. I had previously activated the software back in 2006 on an old PC (which is now defunct.)
Calculate dob and print as Year, month and date Like (29 years 8 months 24 days). and is there any way to vadidate normal text box as mm/dd/yyyy ?
The JSOFindWordVB sample app finds a word in a pdf, works great, but will not find a date. I copy the date from the pdf, so I know it's the same, paste in the query field and it does not find it? Why?
I don't know if this is possible, but is there a way to set a drop down box to move to a certain item when you start to type that item in the box?I have a drop down box that will need over 300 different items to choose from and the user is wanting it so that if you start typing a certain item, it will automatically scroll to that item so you don't have to scroll through all 300 different items.Is this even possible? I have Adobe Acrobat 8 Professional and Adobe LiveCycle Designer ES4 that I can use.Any help is appreciatedThanks
Hi, MastersI created one html page which can open the pdf and go to the target destination, under the guidance of your masters here.Now, I need to detect the name of the current selected destination,because some of the JS within that document need to know the current selected destination in order to shown some guidance information to the user.Is there any way that I can detect the current selected destination with JS? Or could there be any other way to let me know where I am in the current document?Thanks.
Hello everyone, I need to make sure that a digital signature field was signed by a particular trusted provider. I'm getting the properties of the signature through var f = this.getField ("sign_professional"); var Info = f.signatureInfo (); but I can not get any data referring to the provider of that firm, (I'm not talking about the person who makes the signature, I'm talking about the trusted provider through which the signature was obtained), thank you very much!
Hey everyone,I hope you guys are able to help.For work I would like to create a map where a bike follows a route. The bike is supposed to follow the distance of 260 miles and every time some one IRL cycles x amount of miles I want to be able to add information and the bike moves. I would also like for no one to see while I'm putting in new data. It will all be projected and I would like them to only see the bike moving.Is there anyone who can help?Thanks,
I have set up a pdf form that includes a large number of fields with the required property turned on. I activated the required property by adding a "submit" button with a mailto: action. Is there another action that I could use in case the form users don't want to genterate an email or another way to activate the required field property?Thanks for the help!Ken K.
Hi i need help on how to run a java script that puts a stamp/text on the first page of every bookmark. does anyone know how to do this?
Hello, Links in newly created PDFs from Word now try to open in my browser instead of their native program. That is, if I have a link to a PDF or Word document in a Word document and PDF it using the Acrobat tab and selecting "Create PDF", when I click on a link in the newly created PDF, it tries to open it in my browser and not Acrobat or Word and when I hover the Hand cursor over the link (see Screenshot #1 below), it now shows a "W" in the hand, which means "Open a web link", whereas links in documents that I created previously the same way have no "W" over the hand (see Screenshot #2 below) when I hold my cursor over a link in a PDF and they open into the correct program (Acrobat or Word) when I click on them.Screenshot #1:Screenshot #2:Somehow, PDFMaker (used from inside Word 2013) is now coding the resulting links in the PDFs as "Open a web link" (see Screenshot #3 below) instead of "Open a file":Screenshot #3:The files that used to be created (prior to 06/29/2016) have the Link
This can be done, but is a bit complex. Let's assume you have one dropdown and a text field named "Text1", then do the following:Create a document level script using the following script:function UpdateTextField(doc, fieldName, newValue) { var ar = []; // Get the values currently stored in the text field and // convert them to an array var v = doc.getField(fieldName).value; if (v.length > 0) { var ar = v.split(","); } // Do we already have newValue in the array? var foundIt = -1; for (var i=0; i<ar.length; i++) { if (ar[i] == newValue) { foundIt = i; break; } } if (foundIt != -1) { // remove the item ar.splice(i, 1); } else { // add the item at the end ar.push(newValue); } // If we have more than four elements, // remove the oldest one while (ar.length > 4) { ar.shift(); } // conver the array to a string this.getField(fieldName).value = ar.join(); }In your dropdown control, go to the Options tab and make sure that "commit selected values immediately" is selected, then go to
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.