Questions
Recently active
I have a form with several drop downs and many text fields built in the latest version of Acrobat DC.I have added a submit button that tests for required fields before submission.It tests text fields OK, but if the drop down has ANY value including the default "Please select" it considers that as a valid answer, despite a script added to ensure the drop down is always set as a required field if the value = "Please select".I have added this script to the custom format section, and tried it in Actions, Validation and Calculate sections, but it always has the same result. The submit button ignores that the drop down setting as "required".I have scoured the web for hours, there are many suggestions but look a bit complex and beyond my novice JavaScript skills.How do I get the submit button to check if a drop down that has the default value, and to treat it as an empty field like a text field? Appreciate any advice.
I'm trying to convert PDFs to single-page tiff using the Adobe SDK using C#, but I'm confused on several points. I've searched this forum but still have questions.- Do I need to have Adobe Acrobat Reader installed on my computer to accomplish this? Or can I accomplish this WITHOUT having to drive the Acrobat Reader's GUI app? In other words, I don't want to open the Adobe user interface and start driving the GUI app that way. I just want to have my C# program open a PDF fileand export it to tiff, with nothing visible on the screen.- Which of the SDKs should I use? - Acrobat DC SDK - Acrobat XI SDK - Acrobat X SDKI downloaded sample probjects for each but they have a project reference to "acrobat" which isn't a dll presentin the samples directory. Is that because I'm supposed to have the Acrobat Reader installed on mymachine, and the project is referencing a Registry based COM dll?&nbs
from another field if another field is zero. This would go after the code: event.value=Number(this.getField("EE Net Prem").valueAsString)/ Number(this.getField("multiplier").valueAsString);
goodI would like to know if there is any way to pass an image (jpeg, png, etc) to pdf with the acrobat sdk library from c ++
Hi,I am looking for a sample code to Edit the PDF using C#. I have analysed "Acrobat DC SDK Documentation", in that there is not such context is available. But in the "Modifying text elements" section there is one code snippet, I converted into C# its not working.Need help on this.Thanks.[Question moved to the Acrobat SDK forum. -Mod.]
How do you create a button action that makes the button follow the user as they scroll through the PDF and when clicked it takes them to a specific page? For example, a button on the side of the document would follow the user as they scroll so that at any point they can click the button to return to the table of contents. I believe there is some type of javascript involved, but I don't know what it would be. Does anyone know? Thanks for any help!
I am creating an interactive form in Acrobat Pro and I would like to use Drop down menu entries to change relevant check boxes automatically please? So which ever drop down selection is made will trigger the relevant check box to be ticked on the form. How do you do that with Javascript please?
Hi there,Please can some one help me.I've been playing around with custom keystroke scripts and all has gone ok so far apart from this variation.I have a text field that has a RegEx test to allow only character 0-9, a-z & A-Z.Here's the code:var r = new RegExp("^[0-9a-zA-Z]*$");var result = r.test(event.change);if (result == true) {console.println("Here - stage 1 true")} else {console.println("Here - stage 1 false")};if ( result != true ){ event.change = ""; console.println("Here - stage 2 false");} else { event.change.toUpperCase(); console.println("Here - stage 2 true");}What I'm trying to do with this one is allow the user to enter characters 0-9, a-z & A-Z.However, if the user enters any lowercase letter I'm trying to change it toUpperCase().So far I've not succeeded with this
The custom calculation script shown below is working for some users and then not for others. When it's wrong, it's REALLY wrong (like 11 months off) and the font doesn't even appear correctly. So far the 2 users who reported the issue use a Microsoft Surface. Could this be the problem or is it something else? Thanks for your time.var f = this.getField("Today");f.value = util.printd("dddd, mmmm d, yyyy.", new Date());Rachelle
Hello,I am trying to find OCG from PDEElement using PDEElementGetOCMD but it always returns OCMD as NULL though I have all objects in some layer.Please help. I am finding this really tricky now.ThanksRegards,Jaydeep
I am trying to get OCG from PDEElement using PDEElementGetOCMD and PDOCMDGetOCGs however, I am finding return value of PDEElementGetOCMD always NULL though all objects in PDF are layered.Please helpJaydeep
New to writing JavaScript.ContractRateBook will have a 3-digit number coming form my database.Read somewhere that I need to use event.value but not sure how.Came up with this but not working.Theft is the name of my Checkboxvar x = this.getfield("ContractRateBook").value;if (x == 103){event.value = 0;getField("Theft").checkThisBox(0,true);}Thanks.Pat
For context, i created a dynamic stamp with some javascript that allows you to input text on a stamp before its place (I.e a name or a date). An issue I've run into while using the stamp is that when you save the PDF you're stamping in, the text you input into the stamp cannot be undone. I've deleted the stamp from the drawings and tried applying it again but the previous text I entered keeps reappearing, no javascript prompt asking me to change it. Is this something that can be fixed within the document? The only way I can get around it is to start over with a PDF that hasn't been saved with a dynamic stamp attached to it. The only issue is that sometimes a backup isn't a available - As I said, just wondering if there's a work around to fix this in the original PDF document.Thanks,Paul
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
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.