Unlock the power of Acrobat SDK through our community.
Als letztes aktiv
Good MorningI would like to have a script where a query of the file name makes. It does not occur with every PDF, but. If so, this would also have to be cut off as in variant 1.Thank you in advance for your help.Variante 1var mm = 2.83465;this.addWatermarkFromText({cText: "Philips Bern, " + this.documentFileName.split("-")[0], cFont: "Arial", nFontSize: 14, aColor: color.red, nHorizAlign: app.constants.align.left, nVertAlign: app.constants.align.bottom, nHorizValue: mm*10, nVertValue: mm*1.5});Variante 2var mm = 2.83465;this.addWatermarkFromText({cText: "Philips Bern, " + this.documentFileName.replace(".pdf", "", split("-")[0]), cFont: "Arial", nFontSize: 14, aColor: color.red, nHorizAlign: app.constants.align.left, nVertAlign: app.constants.align.bottom, nHorizValue: mm*10, nVertValue: mm*1.5});
I have a form with a drop down list...-optionA-optionB-optionC...each option in the list has it's own email address-optionA@email.com-optionB@email.com-optionC@email.comBased on the choice a user selects from the drop-down list, when they submit the form I'd like for corresponding email address to be selected/listed within the email client so the user just has to hit "send" to fire off the email with their attached. What javascript code would I use for configuring my submit button to accomplish this?Thanks for any help you can provide.Muneer Al Balushi
I have a 12-page PDF calendar (1 page for each month). How do I use javascript inside the PDF file to auto-select the current month page to display based on the user system date (month). I am trying to display the current month of our club calendar that is launched from our webpage when the user selects "Calendar".Presently, the PDF always displays the first page of the PDF file (January), and users must scroll down to select the current month.
I was trying to mess around with maximum values within the fields of my Adobe Form document.I learned how to do this through the validation tab in the text field properties, but I was trying to set it so that the maximum value for that field would be based on the value of another field and the checking of a check box.So for instance...Field1 is titled LvlField2 is titled StrCheckbox is titled KeyAttribute1Str would have a maximum value of Lvl+2, and if a value higher than that would be entered text would appear that would say "Strength cannot be higher than your level + 2". Alternatively, if KeyAttribute1 were selected it would change the maximum value and the text would change to be Lvl+5, rather than Lvl+2. I have read things that show me this is possible, but I cant seem to figure out how to make it work. My best guess is something along these lines...var direction;if(get.thisField("Str").value>get.thisField("Lvl").value + 2)else ("Strength cannot be higher than your
II a person enters a date, that is less than 3 years from today. The message would open and when they close the message the form would also. The field is currently a date field m/dd/yy format. No other validation or calculations currently set on the field. The field they would be entering the date in is called APPOINTMENTDATE. Any help would be greatly appreciated. Thank you in advance.
So, I've found a few suggestions in the forum on how to do this, but I can't make it work, and my situation is much simpler than all the other conversations that I can find.I have a Drop Down menu ("Banked Weeks") that contains two options: "No" and "Yes".No is the default selection and remains there at all times, but the user can switch it to Yes.I then have a text box ("How Many") that I want to autofill with "None" when "No" is selected and be fillable - and become required - when "Yes" is selected.Any help would be appreciated.
I have a form with 3 drop-down columns. If have a value assigned to each option on each drop-down. I want to compile the sum of all the drop-down columns in another column. However, right now, I can't get my JavaScript to even work on the first column. I've got the script below entered into the Custom calculation box and its not working at all. Can anyone tell me what I've done wrong?Also, assuming I a formula to work for the first column can I then just add a "+" to the end of the formula and then repeat the process for my next two columns. Everything I know about JavaScript, I read on-line this morning so I'm worse than a novice. Appreciate anyone's help.var a=this.getField("Dropdowna").value;if(a=="High Impact/ High Probability"){event.value=5;}else if(a=="High impact/ Low probability"){event.value=4;}else if(a=="Low impact/ High probability"){event.value=3;}else if(a=="Low impact/ Low probability"){event.value=2;}else if(a=="Conflict of Int
Hello everybodyI have 2 check boxes and a text box. The first checkbox is "ohne MwSt." and the second checkbox is "mit MwSt."In the text field is the value of the VAT (3.7%) calculated from the field "Mietzins".If the checkbox "ohne MwSt." is activated, then the other checkboxes must be hidden. This works, with the following code:if (this.getField("ohne_mwst").value == "ohne") {this.getField("summe_mwst").display = display.hidden;this.getField("mit_mwst").display = display.hidden;} else {this.getField("summe_mwst").display = display.visible;this.getField("mit_mwst").display = display.visible;}the second part is:If you activate the checkbox "mit MwSt. 3.7%" then the amount in the field "Mietzins" has to be added.In the field "Total Miete pro Monat" the total amount has to be calculated.Here is an example with "mit MwSt. 3.7%: Here is an example with "ohne MwSt.:Can someone help me?
HelloHopefully I can explain this issue well enough I have a multi layered form that feeds data to various sections depending on the kind of trading error someone had made. One of the layers is a "notification" layer to alert the order execution desk to correct an erroneous market trade. I have an "error" table and a "correction" table so it is clear what the operators have to execute and what they need to fix. When completing the "error" table, the user will BUY or SELL from a dropdown. I have the export values in this dropdown set as the opposing action, so the "correction" table will automatically show (for example) a SELL if a BUY is selected from the dropdown. This is all fine, but I now need to show the raw values in the body of an email (upon submit via javascript) for the order execution team so they do not need to waste time opening this massive PDF for a small part of a process - and also a time sensitive one. Everything is coming across fine, as
I have a form with two fields and based on the answer in those fields will determine what shows up in the 3rd fields. That is why I'm wanting to use an "IF" statement. If field1 is "shirt" and field2 is "dress" then field3 is "$200.00".
Hello experienced JSers.I'm starting to get to grips with a bit of Javascript knowledge, from being a total fresher a couple of weeks ago. Now that my eyes have been opened to to what is possible, I want to be able to utilise what I've learnt as much as I can.I have a fillable form, created with Acrobat Pro DC and it contains a lot of fields for customer info (first name, last name, three address fields, telephone number, and email address, etc). One of them is simply called "Company", and is for the company name that the customer works for.I have set up a dropdown list/combo box for Company, and I've got it linked to a tab delimited .txt file, using a folder-level script as follows:var Trusted_importAddress = app.trustedFunction(importAddress);function importAddress(){ app.beginPriv(); var cCoNoforImport = this.getField("Company").value; this.importTextData("/**FULLFILEPATH**/**FILENAME**.txt", cCoNoforImport); app.endPriv();}The s
Hi there,Having read Thom Parker's nice article on formatting text fields Im using the code below to check for user input.If the input is not a number then reject it.if(!event.willCommit) event.rc = !isNaN(event.change);What I've been trying to do is take this one step further. If a number has been set on a particular field then set the focus to the next field in the sequence.I've been using the code below to set the focus:getField("theNextField").setFocus(); What I haven't been able to do yet is combine the 2. So, check if the user input is a number. If it is, move to the next field.Please can someone point me in the right direction.Thank you in advance.
How do I Automatically Send a PDF for Shared Review?In PDF, there is an option called "Send for Shared Review" .Can we have "Send for Shared Review" functionality inside the asp.net web page.I have uploaded a pdf file to server using asp.net web, in Addition to that, i need to share that pdf file to multi user for commenting.Is there any sdk available to add these functionality in asp.net ?
Hi,I'm new to Javascript and am trying to learn as I go but I was hoping someone could help me out with some script and implementation tips for the following scenario:As part of a form, I have four text boxes and a check box. If the user enters anything into any one of the text boxes I want the check box to automatically be ticked. If the user unticks the check box, I want the four textboxes to be cleared.So far I have got the checkbox ticking automatically by adding the below custom calculation script to the text boxes (name altered for simplicity sake).if (event.value==""){this.getField("textbox1").value="Off"}else{this.getField(textbox1").value="Yes"}This code causes an issue though, in that because there is text in the textbox, I cannot untick the checkbox.Can anyone offer any help please? Thanks in advance.G.
¿Cómo puedo coger (seleccionar) los campos de un formulario PDF y copiarlos luego en otro PDF distinto ?muchas gracias
Using the Object Inspector on the object of interest to me, it is reported as "Stroked Path: Constant"Object Inspector:The object is a simple red line (indicated by orange arrow above) which overlays several images on each page of the PDF document. It can be selected using Edit Object tool and moved around the page.Is it possible to reference these graphic objects of type "path" via Javascript. I would like to delete them on all pages.The "graphic objects" of which I am referring do not seem to be those created by the Comment annotations as no annotations are listed for the document.
Hello,I have a simple form with several text boxes. on of the textboxes has the name "IndFullName"this.getfield("IndFullName").valueundefinedTypeError: this.getfield is not a function1:Console:ExecundefinedMy result is first of all "undefined". When watching a little video that introduced javascript, the person got the value of the textbox object. Second, I get the error "this.getfield is not a function. I am confused.What am I doing wrong? Your help is appreciated.Thanks, Steve
Could someone help with converting the below hard coded servlet for dynamic drop down. I want to remove the hard coding in thisimport java.io.IOException;import java.util.ArrayList;import java.util.Enumeration;import java.util.HashMap;import java.util.List;import java.util.Map;import javax.jcr.NoSuchWorkspaceException;import javax.jcr.Node;import javax.jcr.NodeIterator;import javax.jcr.RepositoryException;import javax.jcr.Session;import javax.servlet.Servlet;import javax.servlet.ServletException;import org.apache.sling.api.SlingHttpServletRequest;import org.apache.sling.api.SlingHttpServletResponse;import org.apache.sling.api.resource.Resource;import org.apache.sling.api.resource.ResourceMetadata;import org.apache.sling.api.resource.ResourceResolver;import org.apache.sling.api.resource.ResourceResolverFactory;import org.apache.sling.api.resource.ValueMap;import org.apache.sling.api.servlets.HttpConstants;import org.apache.sling.api.servlets.SlingAllMethodsServlet;import org.osgi.framew
Quick syntax question: If I have a radio button group called "Answer" with the options "Yes", "No", and "Maybe", how can I use Javascript to select one of those options?
I have a dropdown box that contains 12 options. When it is in its open state on the form, it on;y displays the first nine lines, and the last three are in an "overflow:scroll" kind of state, and unfortunately—and I don't know if this is platform- or system-specific—the only way to scroll them is to physically click on the scroll bars at the side of the dropdown box, and drag them downwards. It's not possible to use a two-finger scroll gesture as I usually can.It's a first-world problem, I realise, but it does interrupt the user interface flow, and I wonder if there is a javascript way of specifying more lines of text should be displayed before it needs to add scroll bars.(I've checked the preferences and drawn a blank, but if there is one that I've missed, that would be a perfectly acceptable answer too!)Many thanks for your time,NathanG
Hi,I'm trying to build my app and want to generate apk file for android.But It's showing rendering from last 6 hours. Neither showing error nor generating file.I'm able to generate 'appx' file within 2 minutes.Thanks!
Hallo,schwierig zu beschreiben aber vielleicht kennt jemand die Problematik zu nachstehenden vermeintlichen Rechenfehler in javascript das in einem PDF Formular eingesetzt wird.Hier eine beispielhafte Rechnung:1,15 - (1,15 * 0,05)ergibt per Hand gerechnet eigentlich1,0925gebe ich diese Formel jedoch wie folgt als Berechnung in Acrobat einevent.value = 1.15-(1.15*0.05)ergibt diese Rechnung1.0924999999999998Frage: Wieso werden hier Nachkommastellen eingefügt? Wo ist hier mein Denkfehler?Mein Problem ist, das sich dadurch Rundungsfehler im weiteren Verlauf der Berechnungen ergeben.
I have a rather intense PDF form we are creating as a Purchase Request. I need an if then statement for the Line Item Adjustments total. I need it to NOT calculate anything unless there has been an actual change.Columns are as follows:QTY OrderedUnit CostTotal CostQTY ChangeActual Unit CostLine Item AdjustmentI have a calculation for the of the Total costs of the initial order. What I need now is to calculate the adjusted costs.If QTY Change is blank, then return no resultIf QTY Change has a number in it, then return total of the Line Adjustments minus the Original Amount
I have a document that allows for someone to add a headshot next to a description using the built-in "add image button" but in some cases, they may not have a headshot to add. We have added a save button that flattens the PDF and removes said button but would also like it to remove the add image icon if there is no image. This is not an issue in Acrobat Pro as I guess it understands what that icon is and removes it if no image has been added but in Reader where this is meant to be used the icon stays on the page once flattened.My "Save Document" button is set up as such.on Mouse Down:- Hide Save Document Button- Run Flatten Javascript (see below)- Execute Menu item... File>Save asThe Javascript:flattenFields()function flattenFields(){ if (app.viewerType=="Reader"){ for (var i=0 ; i<this.numFields ; i++) { var f = this.getField(this.getNthFieldName(i)) ; &nb
I have a simple ratio calculation to perform as seen below:if (this.getField("HiBrach").value==""){event.value="";}else{event.value=this.getField("HiAnk").value / this.getField("HiBrach").value;}"HiBrach" is derived from multiple (3) fields with a maximum value calculation performed before the ratio operation.This works no problem.However, how does the script change if "HiAnk" is also made up multiple fields with a Maximum value calculation.I haven't been able to solve this!?
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.