Unlock the power of Acrobat SDK through our community.
Als letztes aktiv
Does anyone have any sample code demonstrating hostContainer.postMessage javascript function working with IE11 and Adobe Reader DC? I have spent the last several days trying about every combination of code I could think of and cannot get it to work. All I want to do is notify my program once the PDF has printed. I have the DIDPRINT routine firing but I cannot get my browser to recognize the postMessage command.Any help appreciated,Joe
Hi,I have two text boxes in a PDF form: "Month Ended" and "Due Date." The user is supposed to enter a month end date in the "Month Ended" text box. This is validated to be a "mm/dd/yyyy" format.When the user enters a date in "Month Ended" I want to auto-calculate the "Due Date" field. It should always be the last day of the next month and account for leap years. For example, if I put in 08/31/2016 (Month Ended text box) it should return 09/30/2016 (Due Date text box). Or if I put in 01/31/2016 it should return 02/29/2016 (since we have a leap year this year). Please note I also tried to account for the scenario where a user might not follow directions and enter a "month end" date (i.e. would instead enter the middle of the month, etc.).I thought Datejs would work but I can't seem to get it to work. Here is the script I have in "Custom Calculation script" field of the "Due Date" text box:var MonthEnded = thisgetField("Month Ended").value;MonthEnded.moveToLastDayOfMonth();MonthEnded.addM
I have a acrobat plugin which creates bookmarks based on some criteria. I'm facing an abnormal behavior in acrobat 10. bookmarks are created correctly but if ran the same code again and again the bookmark tree gets distorted. some of the newly created bookmarks show the Edit mode rectangle on them which goes away if I click here and there in the tree. is there any way to refresh the bookmark pane so that bookmarks can render correctly. I'm using the standard call to create bookmarks like PDBookmarkAddNewChild and PDBookmarkAddNewSibling.navigating in the tree with arrow keys or pressing the escape key removes the rectangle and the original heading shows up.
I'm trying to code a button that will check several mandatory fields and individually highlight them in red if they aren't completed. I do not want to use a submit button. I can get the code to work for my first field: if ( form1.pageonesubform.Topchunkpageone.agencyuseonlytable.Row3.typeofrequest.typeofrequestlist.isNull) { form1.pageonesubform.Topchunkpageone.agencyuseonlytable.Row3.typeofrequest.typeofrequestlist.border.fill.color.value = "255,0,0"; xfa.host.messageBox("Some fields are empty. Please scroll up and complete fields highlighted in red."); } else { form1.pageonesubform.Topchunkpageone.agencyuseonlytable.Row3.typeofrequest.typeofrequestlist.border.fill.color.value = "255,255,255"; }But where do I put code for the next if/else? When I set up the exact same code with the next field name under the above if/else code, nothing at all happens -- the first action doesn't even happen. But if I make it "or" w
Hello Team,We have a website where we search, download the documents and edit them. This document is saved with in a unique id in the local machine and we are internally setting a custom title in the code depending on the search criteria the user entered.So, when the document is opened in Acrobat Reader, it shows the title as the name given by us.We are using the below code for setting the title of the window.AVWindow window = AVDocGetAVWindow(doc);AVWindowSetTitle(window, text);But where as in DC, I'm not able to set the title using the above code. How do we set a custom title to each tab and to the window ?Can someone help me on this.Thanks in advance.
Running Win 10 Pro and I have numerous reports that I have created in an Access 2010 database and whenever I try to print a report to Acrobat XI I get an out of memory error. Specifically:"Microsoft Access couldn't print your object." (hit OK), then next dialog box:"There isn't enough free memory to update the display. Close unneeded programs and try again."I can print to Acrobat from any other application (even the other Office applications) but only have this issue when printing from a report generated in Access. I can also create a PDF by printing to a generic PDF creator, but not when I print to the Adobe Acrobat printer.Anybody have any ideas? Thank you.
Hi !I have a problem with a form that includes an addition of 3 fields, but that gives me a "wrong" answer because unlike the "displayed value" in each field (that is rounded to 2 decimals), the Total field does not take into account the rounded sums, and hence my total is "wong" by 1 cent.I know this is a typical problem, and yes, I have searched on MANY forums on javascript and adobe... and I have tried to paste or arrange some line of javascript, but since I don't know anything about it, I get "syntactical errors"...So, more specifically, here are the 3 fields that needs to add up:Regular priceSUBTOTALRegular priceTAX1Regular priceTAX2and the total field is:TOTAL REGULARTo give you the concrete example I have trouble with, here are the numbers:Regular priceSUBTOTAL = 99,50$Regular priceTAX1 = 4,98$ (rounded up from 4,975)Regular priceTAX2 = 9,93$ (rounded up from 9.925125)the total should be: 114,41, but it displays 114,40 (an obvious mistake)as the exact value is 114.400125So... wh
I am attempting to automatically check a checkbox when a hidden field has a certain description.Very new to JavaScript.My validation script is:if (+event.value=="Text") this.getField("Text1 Checkbox").checkThisBox(0, True);Would someone please explain why this doesn't work and what the correct script should be.Any help is greatly appreciated.
I have two fields .. field1 and field2 in which value will be entered and a 3rd field....... field3 which will be equal to field 1 + field 2 .I want the calculation to be performed when i click a action button say "button1"following was the script i used but it;s now working. I put this script in the Action button's "run a javascript"this.getField("field3").value = this.getField("field1").value + this.getField("field2").value;Plz help
Hello,I'm creating an interactive form where users fill out details and I am using various scripts which I found online. I'm not very proficient with JavaScript so I'm hoping someone can help me.One feature of the form is a summary section that populates with the answers the user has given earlier in the form. To facilitate this I am using the following script:var n1 = this.getField("Project name");var n2 = this.getField("Summary_Project name");n2.value = n1.value;So whatever is entered in the field "Project name" is automatically filled in in "Summary_Project name". This is activated by an On Blur action which works as the user is entering text into the parent field. The next tool I am using is Form Router Calendar tool which uses a whole bunch of JavaScript that I don't understand - but allows the user to pick a date from a calendar picker. This works by adding a button next to the "Date" field. The problem I face is because text is not directly entered in the "Date" field, the scrip
I use Acrobat Pro for editing documents, and in the DC version I keep having problems with one of the most elemental functions, copying and pasting comments. I am only able to copy and paste the text within graphic elements (rectangles, arrows, etc.), not the graphic element itself (with the accompanying text). Can someone advise me about this? Are others having this problem?
Hi everybody, hope someone can help with this one:I have made a search field integrated into the PDF pages and am currently using this bit of script on a button next to the search field: var textToSearch = this.getField("searchterm").valueAsString;if (textToSearch!="") search.query(textToSearch, "ActiveDoc");This results in the "Full search" in Acrobat coming up listing all found results within the document, which is great, BUT, it also finds the searched term on every page, because the search field is duplicated on all pages. I am thinking maybe one could pass the search term from the field into a (global?) variable and then clear the search field, so it wouldn't be found on all pages, but the search term would still be saved in the variable. Or maybe there is a way to specify that Acrobat should not search form fields?Any help would be greatly appreciated!: )erome
Greetings all,I am new to the JavaScript Adobe Acrobat Form and trying to create a form here with the images and a drop down box.I use button command to place an image in it where I would like to have my image to appear when one of the option from the drop down box is selected:When Option 1 is selected, image 1 (button) will be visible, image 2 & 3 are invisibleWhen Option 2 is selected, image 2 (button) will be visible, image 1 & 3 are invisibleWhen Option 3 is selected, image 3 (button) will be visible, image 1 & 2 are invisibleOtherwise all the images will be invisibleHow do I start or write a full JavaScript with the above condition as mention?Thank You.
How do I make layers in tree structure expanded by default?
HelloIs there a way to send all text object to foreground and make transparent on every page of a pdf file?Now I do this in Illustrator page by page, but I suspect in Acrobat the same could be done in a more straightforward way.
I have a MAC running Sierra 10.12 and I am using an HP Color Laserjet MFP M277DW to scan. When I try to create a PDF from Scanner Adobe does not recognize the device. I am using Acrobat XI version 11.0.18
I have this Code in a document level script. The problem I am encountering is that this question box shows up before the actual form loads. I need to ensure that the form is blank before this pops up and before any other script is run. I cant fiqure this out and can use some helpvar vButton = app.alert({ cMsg: "Do you want to advance the report number?", cTitle: "A message from Dan Sajdak", nIcon: 2, nType: 3 }); if ( vButton == 4 ){//Increase Reprt Numberthis.getField("REPORT NUMBER").value ++ ;this.getField("REPORT NUMBER").defaultValue = this.getField("REPORT NUMBER").value ;
Hello all -I am hoping someone could help me create javascript for a personal reimbursement for that I have created for my office.I would like for the employee id (six digit number) to auto populate in field B, when an employee enters their last name in field A. There is approx 50 or so employees in my office and I would like to capture all of them in these to fields.Thank you in advance for you help.
Is there an update of Acrobat XI planned by Adobe? We currently use V11.0.17.
I have an acrobat form with 10 questions that people can evaluate using one of 4 radios (0-1-2-3). I want to count how many of the questions score 2 or greater and put that in the 'TOTAL'.ie.1. 12. 23. 04. 35. 36. 37. 28. 19. 210. 3TOTAL = 7
I have been trying to ocr a pdf filed, but this pdf has a lot of languages - mainly German and English, but also Greek and Hebrew. You can i ocr the file in all this language? Because the fonction only allows one language. Thanks
Hi,I have already tried to get an answer in this thread last month: Help with javascript rounding I was asked to send the form and was supposed to get the form back with the javascript corrected.. but never got any reply (if someone else would like to take a look at my form I would really appreciate it).In any case, here is the problem:I have to add 3 Fields to get a TOTAL.SUBTOTAL + TAX1 + TAX2 = TOTALSo here is a real example :99,50 + 4,975 + 9.925125 = 114,400125 $The problem is that since the format of the Fields is set to "2 decimals", I get the following:99,50 + 4,98 + 9,93 = 114,40 $Evidently, the obvious result should be 114,41 $ (and not 114,40$).So what I need is the correct script that will correctly round TAX1 and TAX2 to 2 decimals, so that the total is 1 cent more...Any help is welcomed.Thanks!
How do I populate field 1 with the amount from field 2 based on the description of field 3? I am new to java script and so far I have placed in the calculate tab if (description == “Single Life”) this.getField(amount);Needless to say this does not work.Any help is appreciated.
What I'm looking to do is create a photo album where I can place my photos. I'm pretty sure there would be some javascript involved. The thing is I want a search option so I can type in the name of the photo and click to find it. Any suggestions?
i am not using LiveCycle any more and not sure how to get the form to auto tab. i have boxes that i have restricted to 1 character and want the form to auto tab to next box, which is also limited to 1 character. (accounting codes). tried using the Java Script i used before under actions, but is not working.thank you for your helpEC
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.