Unlock the power of Acrobat SDK through our community.
Als letztes aktiv
Is it possible to extract the formatting property of a text field with a script?
The only way this field should populate a yes answer is the first If statement. Any other combination should return a No. What am I missing?Thanks for the help!var A = this.getField("QualifyingPercentage").value;var B = this.getField("CiscoSKU").value;event.value = "";if(A>.749000)&& B = Yes)event.value = "Yes";else if(A>.749000)&& B = No)event.value = "No";}
I am very new to Javascripting. I need to have a dropdown value be automatically selected when a radio button is selected. Is this possible? I haven't seen much on these forums about this and I don't know where to start.
Hello,I have this code and my goal is get file name with pagenumber, but with two digits ike pdfname 01 pdfname 02... pdfname 09 pdfname 10Thanks for your helpvar nazev = this.documentFileName.replace(/.pdf/,"") for (var p = 0; p < this.numPages; p++) { this.addWatermarkFromText({ cText: (nazev)+(p + 1 ), nHorizAlign: app.constants.align.center, nVertAlign: app.constants.align.bottom, nHorizValue: 10, nVertValue: 2, nFontSize: 10, nStart: p});}
Ok so the problem I'm having building a PDF where I have to use checked checkboxes to determine a specific total amount that is entered into a different field. The issue is that there's no way to calculate the amounts with the checkbox value alone because the math doesn't split evenly. The price is based on a step up of $50 for each additional box that's checked. Is there a way to show a specific total/text based on how many of the checkboxes is checked? Or is there an efficient way to give the 1st checked box and value and then add the additional $50 for each additional box checked?I need a script that shows a total based on three different scenarios:any 1 of 3 boxes checked = $375any 2 of 3 boxes checked = $425any 3 of 3 boxes checked = $475Normally I can tailor scripts to suit my needs, but this one has me stumped because I'm not even sure how to phrase my search. Please help!
Hi,I'm trying to make some of my fields calculate basic math like adding two fields together as a sum in a third field and making fields link to have the same number in them throughout the pdf document. Attached is the form I am trying to add the calculations to. Fields "Undefined 6 and Undefined 7" should be the sums of "undefined" + "undefined 2" and "undefined 4".Thank you for any and all help!!! I have banged my head on the desk about 111 times thus far.
Hi.Complete beginner here and I have been trying to find information on the forum pertaining to my dilemma but have thus far been unsuccessful sadly. Im trying to get a ListBox to add a value into a Text Field depending on what is chosen in the listbox. The ListBox contains choices which represent values in other calculated Text Fields fields. For example, I have choices Bananas, Oranges and Apples in the List Box. What I want to appear in the chosen Text Field is the amount of fruit of the chosen fruit. This information has been calculated in 3 otherText Fields on the page called either BananasAmount, OrangesAmount and ApplesAmount. Do I only need to script the Text Field where I want the information to be put or do I need to prep the ListBox or the other 3 text fields in anyway?My searches here have given me this which does not work but might be a beginning. I have entered this into the Calculate-> Custom Calculation Script:var v = getField("ListBox").value;if (v == Banana) event.
Hi - I'm struggling a bit with a simple field validation issue. Based off of one field (called "NUMBER") I would like the following to appear (and the rest to disappear if not applicable) within the following ranges:0-499,999 would trigger "Field 1"500,000-2,499,999 would trigger "Signature Block A"2,500,000-5,000,000 would trigger "Signature Block B"5,000,001+ would trigger "Field 2"I can also post the custom Java script if that helps but I have no luck with this custom code as of yet. Any help would be greatly appreciated. Thanks!
Hello,as the titel states i want to lock being able to add or alter additional attachments after the user has added an attachment.the trigger is not that important, even manually locking it would be fine.is there some way to realize this?
I'm just starting out trying to get my head wrapped around acrobat javascript to try and automate some things, and thought I should try and so some simple tests.So, I have the following function.function Alert () { console.println(doc.getField("PC").value);}And in the Validate tab for the "PC" field, I have set"Run a custom validation script:"Alert()Yet when I look in the console, the value it prints is the value BEFORE I make a change. For example, if the value in the PC box is "Bob" and I change it "Alice", then it will print "Bob" instead of "Alice".How can I get the new value for the field in the validate script?
So i'm making a PDF for a game i'm making. I make a drop down field that decides whether a gear used is armor or shield. If it's armor, then the Defense field I added will be added to the armor spot, and if its a shield, to the shield spot. How would I do that?Basically, if something is an armor, and it gives two defense, it shows +2 in the armor section. If its a shield and gives +2 armor, it shows + 2 in the shield section. I'm new to this program, and don't know any javascript.
Hello, I have been reading few answers in this forum but none is about my case. I'm trying to add an IF / ELSE statement to a quote form in PDF but is not working and obviously I'm writing a wrong code.I have a drop list called "STATE" and another text field called "FL_CALC". Now my question is how can I get a numerical result result in "FL_CALC" field depending the selection made in "STATE" field?All that I need is: that number "145" appear in "FL_CALC" field when you choose FL state in "STATE" field... if you choose any other state, then in "FL_CALC" appear 450. Is this possible?
We have a PowerBuilder application that generates pdf files by printing to the Adobe PDF printer, named automatically by setting a registry entry, then, once created are read into a PowerBuilder blob variable and saved in an Oracle database. All works fine until we run it on Windows 10. The file is created ok to the file system, named appropriately, but then the PB FileRead fails. It is almost as if Acrobat still has a lock on the file. Any ideas would be greatly appreciated! Thanks
I need to set the page labels in a document, but I don't want the label to include the sequence number.There doesn't seem to be a 'cStyle' parameter that corresponds to the 'None' option in the interface, is there a way to do this where I can just set the page label to a prefix without the numbering?
Is there an SDK option to programmatically export PDF to HTML Web Page using Adobe 2017?Using VB.Net within VS2012 and prefer using Adobe .dll's; Has anyone had success with .ExecCommand(?) or .execMenuItem(?)?Prefer to avoid using JavaScript, if possible.
var tot1 = this.getField("60Pg1Sum").valuevar date60 = this.getfield("60DaysReady").valueif (date60 == "") event.value="666";else event.value=tot1;Altered title to make it more readable - edited by: Malcolm Thomson
I have a field that would require selection from one or another dropdown depending on scenario.What I would like to do is make one dropdown or the other visible/active depending on a selection made in a different dropdown.Ie.;If Select "NO" in dropdown 1 > Then dropdown A is visible/active.If Select "YES" in dropdown 1 > Then dropdown B is visible/active.Alternatively it could be the same dropdown but with a different list of selections based on the selection made in dropdown 1I hope this is doable
Hi everybody,Please can someone help me out.I've a number of 'mandatory' text fields on a form.I've setup a 'Document Javascript' that sets the focus to the first mandatory field upon opening the pdf.Using an onBlur action I'm testing to see if the user has entered something in the first text field.If they haven't, e.g. they've just tabbed to the next field, they get a popup asking them to fill in the field and then the focus is set back on that field.If the user only enters a space, and then tabs onto the next field, the text field value is checked to see if that's the case. If it is, the user gets a popup and then the focus is set back to the text field.If the user enters something other than just spaces they are ok.The problem I've got is that the form gets stuck in a loop between the action of tabbing to the next field and the onBlur test.Here's my code.var fld = this.getField("TextBox1");var nxtFld = this.getField("TextBox2"); if (fld.value !== "") { //if field is not
The date will be formatted as mm dd yyyy. Thanks for your help and time.
We use JDA/DLX WMS along with Metapack DM to print shipping labels using Internet explorer 11 & Reader 11, we use a JavaScript file toprint then auto close the pdf print window. This all works fine on Windows 7 but the print window wont close using windows 10.I have tried many variations of the script file without success, the original script is below.printDocument=app.trustedFunction( function(vPrinterName) {app.beginPriv();var pp = this.getPrintParams();pp.pageHandling = pp.constants.handling.none;pp.interactive = pp.constants.interactionLevel.silent;pp.printerName = vPrinterName;this.print(pp);app.endPriv();});Any help would be much appreciated
I have an application which supports acrobat 8.0. I want it to support Acrobat DC via inter application communication using OLE and C++. Is there any documentation for this? I am stuck with multiple redefinition compiler errors. Please help.I have added a new class using acrobat.tlb and surrounded with compilation errors.
Ich möchte in Adobe Acrobat DC Formular per JavaScript eine Zahl bzw. Zahlenkette in Text umwandeln. Könnte mir jemand ein Beispiel Script posten[ title changed by moderator – info: duplicate thread ] --> [ Duplicate thread ] Zahl in Text umwandeln [Moderator: Thread locked because double posting. For further discussion please see thread in German forum[ Duplicate thread ] Zahl in Text umwandeln ]
Hi team,I am trying to create a program which can add password to PDF file.Can you guide me to to add password using SDK?regards, Rajat
using .net/acrobat.dll, how can i code the 'Export To' 'Html Web Page'
Hello,I am creating a flyer with form fields on it, that will ultimately be flattened to read only by submit button and saved as a PDF. One of the form fields is for the end user to enter a URL. I named it referralLinkIs it possible to pull the data from referralLink and program it to a hyperlink so that after the form and PDF is flattened and exported, the hyperlink will navigate to said URL.
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.