Unlock the power of Acrobat SDK through our community.
Als letztes aktiv
I set up my doc with layers to hide/show all active fields, etc. from anyone not using Adobe Reader DC or Acrobat. I use the script below with .hidden or .visible to control the fields and other script to hide/show text on different layers. I have the script located in a doc level script so that it runs every time the doc is opened. I also have app.runtimeHighlight = true; to highlight the fields automatically.It works, but when the document is initially opened some of the highlighted fields on the first page do not display at all on the screen while others further down the same page display with no issues. If one scrolls to the very next page and then scrolls back to the first page, all the highlighted fields are then displayed correctly. It seems like a "redraw" or "refresh" type issue, maybe?Any suggestions?for (var i = 0; i < numFields; i++) { var f = getField(getNthFieldName(i)); this.getField(f.name).display = display.hidden; }
Is there a way to save data from an attachment when it's opened from Reader?I created a JavaScript enriched PDF form and attached it to a digital flyer. The flyer opens the attachment using the Doc.exportDataObject() method. Everything works great in Acrobat, but not so much in Reader.When opened in Reader, the buttons on the flyer open the attachment in a new tab properly.The form attachment, however, says data can't be saved. When I click submit, it also says the data won't be emailed.Here's what I tried—none of which work:Extending usage rights to Reader in the form that's attachedExtending usage rights to Reader in the flyerExtending usage rights to Reader in both
Pretty much it.Tried restarting computerUninstalling and reinstalling chromeHave no option to delete cookies, check settings and disable extensions since every screen is grey screen.
I have a form where my end user checks boxes next to a list of items wherby selecting each item they would like to include as extras in their new home. Each Item has a different price and some may have more than 1 quantity. At last there is an Amount column. At the bottom, the individual amounts are calculated as a Total of Extras to add to the Homebuyers Purchase. It is currently set up in an excel spreadsheet and is formulated to calculate the amount (Price X Quanity =Amount) based on the true value of the checkbox. And then of course to add all of the amounts to return a Total.Example:Item Price Quantity Checkbox  
Hello,I'm wondering how to revert a pdf file to last saved version via javascript.Any suggestions would be much appreciated.Thanks in advance, M.
Hello everybody,I'm getting some weird behavior when doing a custom calculation for a form field. Here is the Javascript I'm inputting:event.value=(this.getField("Purchase price").value-this.getField("Loan amount").value-this.getField("Additional loans").value-this.getField("Deposit").value-this.getField("Seller credits").value-this.getField("Agent credits").value+this.getField("Reserve req").value+this.getField("Closing costs").value)The problem is, the last field's value is appending to the calculated values above it. So everything calculates and display in the form field (except closing costs), and when Closing costs is filled in, the value gets appending rather than adding to the rest of the values like it should. Does anyone know how to fix this problem, or does anyone have any idea what is going on?Thank you!
why when i try and go to java script tools , it takes me to suscription page, try and buy again says i already have.
Hi Team,It is possible to get the all Non-Unicode characters from pdf text?, If possible which method should i use.Thanks,Maruthu
On my form I have several numerical fields that must be completed. I checked the "Required" property box, but I don't see any benefit. So I used a "On Blur" script type with the javascript below. This works but the function fires 3 times before the cursor is back in the field for correction. Below is my script.var oal = this.getField("OAL");if (oal.value == 0){app.alert('Must complete Over-All-Length field!');oal.setFocus();}
I want to create a script or find one someone else has written that searches a 30-40 page pdf for specific text, and links to a specific page of another document. For example, the script would search for this text: "CF, pp NNN" (where CF refers to the other document, and NNN refers to the page number in the other document), then the script would add a hyperlink to that specific page number in that other document. Obviously, this can be done without a script by adding separate links, but that can be extremely time-consuming when there's hundreds of links to add. Any thoughts on how to accomplish this?
I have a PDF form set up that when someone opens it, the cursor is set in a specific field. My form has to be signed four times so it's passed around. I'm trying to set it up where each time a part of the form is completed and passed on to the next person, they open the form and the cursor is set up in their part. Here's what I have right now set up in Page Properties Action tab but it's not working:if this.getField("Sig One").value = "";{getField("Date").setFocus();} else if (this.getField("Sig One").value != "" && this.getField("Sig Two") = "";{getField("Sup Name").setFocus();and so on. What am I doing wrong?
I have created a Form with a submit button that sends to different locations based on the result of 1 drop down menu created using Adobe Acrobat Pro DC. The problem I have is that those who will be using this form only have Adobe Reader XI, and when sent to them the submit button fails to work. I have java scripted the button so not sure whether this is where the problem lies. Please assist.
I have a signature field on a form with the name "Signature of Employer or Authorized Person".For some reason, nothing happens when I run the script like this:var f = this.getField("Signature of Employer or Authorized Person);I think it's due to the spaces in between the field name. I can't change the field name through Form Edit mode since I do not own the form.Is there a way to have this field name changed or replaced with a simpler name like "signature1" via JavaScript?
I'm attempting to automate a timely monthly task that involves taking many pdfs (A, B, C, etc), combining into one document, and then sorting the pages. It is the same order every month, but there is no method for how the pages are sorted.For example, the combined document is in the order1: A pg12: A pg 23: A pg 34: A45: B16: B27: B38: C19: D110: D2I need the order to be1: A12: A23: D24: B15: B26: A47: B38: C19: A310: D1The only idea I have is this.movePage(9,2); and so on...but that is rather clumsy and would require a pretty intense set up for the 160 pg document...I'm new to JavaScript and Acrobat, so any advice is greatly appreciated!
FIrst I apologize if Java is not what i need to be doing in this situation. But I own a wheelchair service and we want to go paperless for the drivers. So i created a pdf file ( by the help of google and youtube), and so far its gone well. But now I'm stuck. I have realized there is alot that goes on in PDFs that requires Java Coding. What I am trying to do is this: I have a dropdown box that list our local facilities. Under that i have text boxes for address, city, state, zip. What i would like to do is make it where when they click a facility name that the other info auto populates. But I cant find anything on how to do this or even if its possible. Again I apologize if this is not a Java task but any help Id greatlly appreciate. ThanksTravis
Hi Folks, I know nothing about scripts, but am trying to show a % in a field based on a total in 1 field minus a figure in a 2nd field = the % in the 3rd field. Anybody know if this is achievable?
I want to populate a richtext form field with a formatted string compiled by a vb.net app.Dim pdDoc As New Acrobat.AcroPDDocpdDoc.Open("my.PDF")Dim jso = pdDoc.GetJSObjectDim myFld = jso.getField("MyFld")Dim mySpans = myFld.richValueAssuming that myField.value is "This is MY field", with "MY" in bold, I get back 5 spans: "This is"," ","MY"," ","field", the fontWeight on all is 400 except for "MY" which is 700I change mySpans(2).text from "MY" to "YOUR", and write the spans back:myFld.richVale = mySpansexpecting to see "This is YOUR field", but I don'tAm I missing something here, or can I just not do it this way?Had lots of experience setting value, font and sizes on fields - which I managed to decipher from "JavaScript for Acrobat API Reference", but not this...The examples I've found all refer to Java - nothing for VB (or even C#, which might have helped).Any help much appreciated.ThanksDave
Hi, I have created a dropdown list in a form and i would like to asssociate each item of the list to a specific value that has to be displayed in an other field.Many thanks.
I am getting linker error while building acrobat plugin , do i need to add some lib in input.I already have Headers in include directory and Acrobat DC in installed? Severity Code Description Project File Line Suppression StateError LNK2019 unresolved external symbol "public: static int __cdecl TTC_GLOBAL_UTILS::GetBookmarkPageNum(struct _t_PDDoc *,struct OPAQUE_64_BITS)" (?GetBookmarkPageNum@TTC_GLOBAL_UTILS@@SAHPAU_t_PDDoc@@UOPAQUE_64_BITS@@@Z) referenced in function "void __cdecl DelOldBookmarks(struct OPAQUE_64_BITS,int,struct OPAQUE_64_BITS)" (?DelOldBookmarks@@YAXUOPAQUE_64_BITS@@H0@Z) TTC Plug-In E:\TTC\AddBookmarks.obj 1
What's the AVCommand's name for Optimize Scanned Pages "Scan:OPT" action? I want to call AVCommandNew, but the name for this action is not documented in the SDK. Is there a way how to call it from the plugin? Thanks.
I've detected mistake, or at least I think so, in JavaScript™ for Acrobat® API Reference latest version,page 258 - Doc properties - templates - ExampleList all templates in the document.var t = this.templates for ( var i=0; i < t.length; i++) {var state = (t.hidden) ? "visible" : "hidden" console.println("Template: \"" + t.name + "\", current state: " + state); }" var state = (t.hidden) ? "visible" : "hidden" " here "visible" and "hidden" are mixed up.not much a mistake, but I really got confused.
Hi,I need my total value amount in my form to display two decimal places. At the moment it shows as .00 no matter what numbers I put in.The script I am using is this:(function () { // Get the field values, as numbers var v1 = +getField("ccc").value; var v2 = +getField("ddd").value; if (v1 !== 0) { event.value = v1 * v2 * 220; } else { event.value = ""; } })();Please help! Thanks in advance.
Do you know an instrument which measure the number of symbols into file?
Hello,I'm wondering how to set preferences for saving a Pdf file to Tiff (Eg.: resolution, color mode, etc.)Any suggestions would be much appreciated.Thanks in advance, M.
I have a fillable form that is submitted via email. When I test the received form the submit button is still active in the file that was attached to the email. Is there a script I can add to the submit button that will deactivate the submit button on the file that is emailed? Where would it be placed in the script before var cToAddr = ?Thank you!Kristen
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Sie haben bereits einen Account? Anmelden
Noch kein Konto? Konto erstellen
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.