Unlock the power of Acrobat SDK through our community.
Recently active
HiI'm trying to extract single and multiple pages based on pre-defined page label names. Probably as an action.I understand the basics of extracting pages and page labels but can't tie it all together. Any pointers?Thanks
I have a text field ("Weeks") that I do not want to allow users to input 'Points', 'Pts', or 'pts' and I want it to clear the text when it falls into these parameters.I borrowed another code that I used to ensure a number was always negative and it worked - cleared the field when the word was input and everything:event.rc = (event.value != "Points");event.rc = true;if (event.value == "Points") { app.alert("This field must be a week number or Float"); event.rc = false;}Then, in my searchings, I tried to incorporate additional statements to make the code work for all three instances:event.rc = (event.value != "Points" && event.value != "Pts" && event.value != "pts");event.rc = true;if (event.value == "Points" && event.value == "Pts" && event.value == "pts") { app.alert("This field must be a week number or Float"); event.rc = false;}But this did NOT work. Stopped clearing the fiel
I have a drop down menu in a PDF called "selectedReg" that changes a text field.I have the following in the Custom calculation script for the text field:if (selectedReg=="1") event.value = "Text for option 1";else if (selectedReg=="2") event.value = "Text for option 2";else if (selectedReg=="3") event.value = "Text for option 3"; After the text is displayed, I need to add some additional text to it. But when I click out of the text field it will keep reverting to the default value.Any easy way that I can make changes to the text field and make them stay?Thanks!
Hello,my software is written in ANSI C (CVI Labwindows enviroment) and I like to display a pdf for production help.I like to overlay information over the pdf for a production step.I need to remove the information and may display another. (for another production step)I need to find an exact position, where the info appears. (not by counting pixels)I did not find examples for ANSI C, no .lib or .dllIs there any way with the SDK?Best regards,Daniel
Guten MorgenIch möchte gerne im Wasserzeichen den Dateinamen ohne .pdf geschrieben haben. Ebenso gibt es manchmal, dass nach einem Bindestrich - eine oder zwei Zahlen im Dateinamen sind. diese sollten ebenfalls abgeschnitten werden. Ist nicht immer der Fall.Die Farbe müsste rot sein, Schriftgrösse 14 und 1,5mm vom uneren Rand, vom linken Rand 10mmEin Beispiel: Philips_1005_2_1_1-1.pdf Neu: Philips_1005_2_1_1Ich danke im Voraus herzlich für eine Hilfe.Liebe Grüsse
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
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.