Questions
Recently active
Hi again,I'm learning, slowly but surely...I'm awfully stuck again.so I have this// Place all prepopulation data into a single data structurevar weapondata = { Scythe:{ ST: "2", RN: "ML", Special: "Savage, Cumbersome, No shield WIU", glorycost: "25", WeaponAB: [ {text: "Savage: ", fontWeight: 700}, {text: "On a successful ST roll, every 2 Success Stages you achieve does +1 Damage, instead of every 3 Success Stages \n",}, {text
I've written a simple script, but cannot seems to figure out why am I experiencing a delay in the toggle of the message.I have a textbox that sum's up values selected on 3 drop down lists. All have been formatted as numbers. The sum works just fine.I have another textbox that stores the above total and I have added a script to display a message if the value if greater than 100 or less than 100.The message displays after a lag. For example, if the total selected is greater than 100 and i use the dropdown to select that now makes the value less than 100, the message does not switch unless i make a second change on the drop down.here is the code:if (this.getField("Text2").value < 100) {this.getField("message1").display = display.visible;this.getField("message2").display = display.hidden; }if (this.getField("Text2").value > 100) {this.getField("message2").display = display.visible;this.getField("message1").display = display.hidden; }I guess i am missing some kind of event trigger whe
Is there a way with Javascript to invoke this.exportAsXFDF({cPath:(\C\Test\Test.XFDF), bAnnotations:true}); just after a measurement is finished? So the info is added to the file at that moment. For document-level script (would rather have it as file-level script but that is not possible).if (condition) { this.exportAsXFDF({cPath:(\C\Test\Test.XFDF), bAnnotations:true}); }
Asking anyone for a little guidance using Acrobat XI Pro Form with a Javascript issue.My situation involves one pdf form which includes several fixed size templates. I want an option to show or hide these templates from a checkbox field so I began to use the javascript code:Checkbox2 (Spawns Template2): if(event.target.value == "Off") this.deletePages(2);else{ var a = this.getTemplate("Template2"); a.spawn(2,false,false);} Checkbox3 (Spawns Template3): if(event.target.value == "Off") this.deletePages(3);else{ var a = this.getTemplate("Template3"); a.spawn(3,false,false);} This works fine except the templates are actually 14 pages and 50 pages… so I modified started to test with only two pages of each template; below is an example mode for one checkbox:if(event.target.value == "Off") this.deletePages(1,2);else{ var pn2 = this.getTemplate("PN2");
I am trying to make a PDF for school fees automatically calculate when the user enters the number of children in each department (P, H or N). I thought I had the code figured out, but I am getting an error message stating "missing ; before statement 3: at line 4" and it highlights the line I made red. I tried adding a ; at the beginning of that statement, but the error message did not change. Any help would be greatly appreciated.var c2 = 1950; var c3 = 2150; var c4 = 2350; var c5 = 2550;var children = this.getField("P").value + this.getField("H").value + this.getField("N").value;var full = this.getField("P Calc").value + this.getField("H Calc").value + this.getField("N Calc").value);if (children > 4) {event.value = Math.min(full,c5);} else if (children > 3) {event.value = Math.min(full,c4);} else if (children > 2) {event.value = Math.min(full,c3);} else if (children > 1) {event.value = Math.min(full,c2);} else {full;}
I have a field in which I need to sum the numbers in 2 other fields and the results of an optional radio button list. It worked fine when I used Acrobat's built in Value is the option to sum the 3. However, I want the filed to remain blank instead of displaying zero when the form is blank (so Luddites can print it and complete it by hand), so I switched to custom calculation. I got a result of "600off" when no radio button was checked. I tried the below script to substitute zero for "off" when no radio button is checked, but am getting a syntax error at the zero. I tried putting the zero in quotes to no avail. This form is my first foray into javascript and I clearly only know enough to be dangerous. Thanks in advance for any input.event.value = this.getField("Total Fees").value + this.getField("Other Amnt").value + if(this.getField("Donation").value = ”off” {0;} else {this.getField("Donation").value;}if (event.value == 0) {event.value = "";}
I want to allow users to enter the time in whatever form they want (as long as it's at least 3 digits {e.g. 0800, 800, 8:00, 0925}) and have the time displayed using the h:MM format when they finish. I've not been able to find an example of an OR statement that will allow something like this. Any help is appreciated.
Is there a program out there that will allow me to track shared PDFs for review without having to open individual programs? If so, which are best?
Here's whats being populated, And its in the document level javascript.// Place all prepopulation data into a single data structurevar Carddata = { Jarl:{ AP: "3", SP: "5", MA: "3", RA: "2", DF: "3", RS: "1",  
Hello guys,I want to export PDF file into powerpoint. I know this is possible manually using the Export option from File. There must be a way to do it via javascript as well. I need some documentation that can help in the scripting of PDF using documentation. I would like to try first myself but the documentation link is needed.ThanksCharu
Good day. I have several documents that i process on a daily basis. I have some documents that have 6 pages and others have 7. I need to ensure all documents have 7 pages. Basically i need to ensure all even docs are made odd
I converted an excel sheet to a Form but I need help with Formatting and Calculating with JavaScript.Need javascript for calculating two fields of a Special Arbitrary Format to a Number field.[Text1] "004+00" - [Text2] "010+50" = [Text3] "650"
I have pieced together Javascript to validate that required forms are filled, if filled, prompt a save as with new name suggestion, and then email submission. It functions properly on Mac Adobe Acrobat Pro DC, but on Windows 10 Adobe Reader 2017, I received on the Javascript debugger "TypeError: f is null 7:Field:Mouse Down"I have it set on a submit button, Mouse Down, run a JavaScript. It may look pretty messy as I am very novice to this!Any idea why this would be happening from the script below?var emptyFields = [];for (var i=0; i<this.numFields; i++) { var f= this.getField(this.getNthFieldName(i)); if (f.type!="button" && f.required && f.display==display.visible) { if ((f.type=="text" && f.value=="" && f.value !== 0) || (f.type=="checkbox" && f.value=="Off")) emptyFields.push(f.name); }} if (emptyFi
I have a form that has 2 date inputs representing the start and end date of a trip.I have a 3rd date input that requests the company credit card expiration date. I want to show/hide a message that says something along the lines of "card will expire during trip" if the expiration date of the credit card is before the end date.In summary.Input start date, input end date, input cc expiration date. If cc expiration date is before end date, show a message, if not, message is hidden.Thanks in advance.JT
Hallo,ich habe ein drop-down menu (M1) mit z.B. Optionen 1 und 2. Bei Auswahl 1 soll textfeld n1, bei Auswahl 2 textfeld n2 bzw. visible werden.Aktuell jedoch muss ich nach der auswahl erneut das drop-down menu anklicken damit die Programm Abfolge abläuft und die Textfelder entsprechend der Auswahl angezeigt warden. Es ware schön, wenn sofort mit Auswahl der Option die Textfelder nach Programm (javascript) angezeigt warden.Maus taste loslassen oder drücken ändert nichts oder last sich nicht ändern.Vielleicht kann mit jemand weiterhelfen?Hier der code (unter Aktionen E2):var M1=this.getField("M1").valueif(M1==1){this.getField("n1").display = display.visible;this.getField("n2").display = display.hidden;}else{if (M1==2){this.getField("n2").display = display.visible;this.getField("n1).display = display.hidden;}}Beste Grüße und Danke
Here's the English version of what I'm trying (and failing) to do:The plain English version of the calculation I’m trying to make for each of the “Total” fields.Allow value from “c1_w_1”, IF field “camp_1” = “Dougy”+Allow value from “c1_w_2”, IF field “camp_2” = “Dougy”+Allow value from “c1_w_3”, IF field “camp_3” = “Dougy”and so on...It feels as though it needs to be a doc sript and not a field properties script. Below is a graphic to illustrate the functionality I'm trying to recreate in this PDF form.Any feedback would be greatly appreciated!!!
Hello all. I have a 3 page doc that I'd like to show/hide and reset certain fields only once. Once, at the time of opening the doc. I'm trying to have a fresh page every time I open the doc. Not, when navigating to the next page and then going back to the opening first page. I've searched a bit trying to find an example of javascript that will do the job without any luck. Can someone point me in the right direction to accomplishing this? Thank you for the help.
Hello World,I'm still a Newbie to Acrobat and JavaScript.I've been combing through the forums, Pubs and Manuals to create this code and cannot seem to get it to give me my answer.I mean it doesn't display the result in my "StopTime" Text-field (Time - h:MM tt) and because I cannot figure out how to view my results line by line.I don't know if it's because of prior code.Could someone please advise what I'm doing wrong.Here is the code I've created;// get the start time and added timevar sStart = this.getField('StartTime').value;var sWork = this.getField('Work').value;var sTravel = this.getField('Travel').value;//Convert Time to secondsvar vStart = Time2Num(sStart.FormattedValue, "h:MM tt");var vWork = (sWork * 3600000);var vTravel = (sTravel * 3600000);If(HasValue('StartTime')){ If(HasValue('Work') & HasValue('Travel')) { // Add Time var vTo
I work as an intern for an attorney's office and have been tasked with using Adobe Acrobat's Bates numbering feature to organize documents for a case a lawyer is currently working on. Unfortunately, I made a mistake and included an incorrect post script after the Bates numbers and need to remove the Bates numbering from upwards of 1,000 documents. Looking through the Acrobat manual, it appears I should simply be able to use Tools>Pages>Bates Numbering>Remove and then a dialog box should appear allowing me to clear multiple files at once of Bates numbering, however, instead of doing this, the Bates Numbering is just removed from the document that I have open, forcing me to have to open each document individually and delete its Bates Numbering. How would I fix this, as this project is on a strict time schedule?
I need this to do some automation for Excel to PDF. What product is this file in or where can I get it?
Is there a way to delete specific templates without any reference to pages?Currently on my set up i have options to spawn templates with no preferred order (as intended) and this results in the templates possibly spawning on different pages, depending on the user. (current code is a simple a.spawn({nPage: this.numPages, bRename: true, bOverlay: false}); on all my checkboxes)However, i also want to give the user an option to remove the template as well. My current knowledge of deleting templates only consists of this.deletePages(). To the best of my knowledge, this deletes specific pages, not templates, which is what i want. Is there a code snippet that target specific templates instead of pages?
I keep getting an error ... The value entered does not match the format of the field [Ten Pay]. The simplified field notation I am using is (BalDue / #Mo) + Disc$. Can someone help correct this error?
As the title suggests, I need to know if it's possible to CC the sender of an email once a Submit button is clicked. I know how to grab the email from a box, and how to hardcode an email to send a message to. Now I'm trying to get the user that is sending the email, to be CC'ed automatically. Of course, this CC will change depending on who submits the email. Currently, i have it all going through JavaScript. Is this possible?
I have an image of a scanned form. I know that Acrobat PRO can find the form fields on this image and put fillable fields on top of this document (https://acrobat.adobe.com/us/en/acrobat/how-to/create-fillable-pdf-forms-creator.html). I wonder if this service is available in Acrobat SDK or any other product?
Hello,I'm developing plug-in for Acrobat/Reader(C++) and with recent 19.012.20034 update I start receiving different pointer to PDDoc on PDDocDidSave and PDDocDidClose events which was fork fine until update to latest version.To clarify: I'm using a map to store PDDoc pointers on PDDocDidOpen and then I use it to determine which document opened through my procedure.Should I use PDDocAcquire or it is a bug?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.