Unlock the power of Acrobat SDK through our community.
Recently active
I am using a calculation script to calculate age from a DOB field. It works just fine for the calculation and I can manipulate it to calc either in months or years. The problem is I want to have any ages < 1 year old to show the age in months and ages > 1 year old to show the age in years. Hopefully that makes sense. I have been searching through the existing threads and can't seem to find anything to help this specific need. If there a way to do this - maybe an additional IF clause? Here is my current calculation script.event.value = "";var dobValue = getField("Kid.DOB").value;if (dobValue!="") {var dob = util.scand("mm/dd/yyyy", dobValue);var today = new Date();// compute age in millisecondsvar age = today.getTime() - dob.getTime();// convert age to years ( millsec in sec * sec in min * min in hrs * hrs in day * days in year)// truncate to whole years and adjust for binary floating point errorevent.value = Math.floor( age / (1000 * 60 * 60 * 24 * 365.2425) - 0.005); }If I want
Hi there,I'm having trouble with passing the information returned from a app.browseForDoc within a custom dialog. The app.browseForDoc is assigned to a button, which triggers ok, however I'm encountering 'undefined' when I try to get the filename or file path of the file selected.I think it's the way I'm initialising the variable used to store and return the info from the app.browseForDoc. I've tried initialising 'baseFile' in a few different ways but I'm still having problems.Please can someone help me.Thanks in advance. Here's my code so far: var oDlg = { strName: "", initialize: function(dialog) { dialog.load({"usnm":this.strName}, this.baseFile = ""); }, commit: function(dialog) { var data = dialog.store(); this.strName = data[ "usnm"]; var baseFile = dialog.store(); this.baseFile = data[ "baseFile"]; }, butn: app.trustedFunction(function(dialog) { app.beginPriv(); var base
Hi there,Please can someone help me with this query.Can app.browseForDoc() and a text input field be used together on the same custom dialog?I can do each of the two as separate parts of a process, I just wondered if they could be combined.Thanks in advance.
Hi there,I have a problem when exporting pdfs from Indesign. In Acrobat, the documents appear with visbile frame blocks around certain objects, whether images or text. How can I make those frame blocks disappear?Thanks for any help!
Hi, Is there a script I can use in batch processing to convert about 1500 word documents into pdf? I know it's possible to convert multiple files into one pdf, but this is no good to me. Doing these conversions one by one is going to take forever! I've tried selecting a few documents at a time and then selecting "convert to pdf" from the right-click menu, but each one requires that you tell it where to save, and then opens the file when it is done. I need to convert Word files on a regular basis for work, and could really use a batch process for this with so many to do! I have Acrobat 7 Pro (version 7.1.0) on XP Pro SP 2 at work, and Acrobat 8 Pro (Version 8.1.2) on XP Pro SP 3 at home. If there is anyway it's possible to do this via a batch process I would really appreciate knowing how!! Apologies if this has been covered in another thread, I searched but couldn't find anything. Thanks in advance :)
Hello. I have a pdf file that is digitally signed using a certificate and timestamp.And I want to verify this document in plugin's sigValidate( ) function and display the valid, invalid, etc.The DocSign sample programs appear to be comparing only digest hash values in the sigValidate function.Is it sufficient to verify the digest hash value here?Or do I need to verify other parts (such as certificate or timestamp verification)? Thanks.
Hello,I have a form with 5 fields that are drop down boxes. There are 4 choices: Blank (default), Y, N, N/A. I have two fields that produce a calculation. One returns '# of #' and the other produces a % of Y's.In the default state of blank, the calculations are '0 of 0' and '0%'. The problem is that, unfortunately, some providers will want a printed hardcopy to fill out and the fields have these zero's in them.How can I make the field so blank? I have tried several variations to no avail.1st script '0 of 0':var totalY = 0; var total = 0; for (var i=1; i<=5; i++) { var f = this.getField("JJCRDropdown"+i); if (f.valueAsString=="Y") { totalY++; total++; } else if (f.valueAsString=="N") { total++; } } if (total==0) event
Hi All, I see the option after the signed form, a script can be run. So I would like Adobe auto-generate an order number in a sequence when the form is signed But I am very new to this. Can someone help with this? Thank you in advance Best regards Thanh Le
Hi There,I need to add a JS on adbole fillable form on submit button. when Checkbox1 is not ticked give a warning an desable submit button, when check box is ticked submit button enables to email the form.appreciate your help. Dee
Dear Community,I've a Listbox in adobe acrobat pro with following words: Telephone, Computer, Mobile, Notebook, if i select one or more words from the Listbox, the selected word should in a new Texflied for example :1. Telephone2. Mobile3. NotebookMany thanks for your answer/ help. Best RegardsNoel
I want to turn on/off protected mode when adobe reader is opening. It there API for that. But I don't want to restart acrobat reader again.
Hi, We have integrated View SDK into our application.But I want to know, SDK provides automated form filling feature. can you please confirm SDK supports create fillable forms and fill forms functionality ? Thank youRakesh Sorathiya.
I am using Acrobat DC SDK and Acrobat Reader DC. I want to know if I can turn off protected mode, but I need to use sandbox and broker.exe
I want to save opened file by myself, there is AVAppSaveDialogSEL API. But I want to save file without dialog. Any API can be used.
I want to highlight or color a field when it's empty, how do you do it?I've been trying out this formula but I think it's not correct because there's a Syntax Error:var a1 = this.getField("FirstN");if (a1.value == null){a1.style.backgroundColor = "yellow";}
After initiating the tool, placing/ clicking the cursor, typing the text, no text is written. There is a small rectangle with tiny grip squares as expected, but the rectangle cannot be pulled or stretched either. In fact, it cannot be deleted. It is behaving just as if it were locked but before I am able to type anything into the rectangle.
I read this statement in 1 of the Adobe DC SDK guidelines - "OLE or ActiveX server plug-ins must be implemented using the ActiveX Template Library." Could anyone please clarify if it means that we cannot instantiate COM object for a COM server other than ATL (C++). We are instantiating COM object of C# generated tlb in plugin code and are facing issue when protected mode is ON.Thanks
Hello All, I've been trying to figure out a way to render multiple PDFs within a WinForm using Visual CS and Visual Studio 2019. Namely I'm looking to provide a solution to search through PDFs and display locations of these search patterns side-by-side. I've currently been able to display PDFs through a WebBrowser object, which isn't directly supported by Acrobat based on the 1st URL below. This is when I stumbled across mention about the SDK and started reading into the documentation, which is the 2nd URL below.https://helpx.adobe.com/acrobat/kb/using-acropdf-dll-within-microsoft.htmlhttps://help.adobe.com/en_US/acrobat/acrobat_dc_sdk/2015/HTMLHelp/ Currently, I haven't been able to find any documentation explaining the DLLs I need to reference within my solution. I've stumbled arcoss this 'AcroPDFLib' file found in the 'C:\Program Files (x86)\Common Files\Adobe\Acrobat\ActiveX' folder, but it doesn't seem to to have all the method calls explained in the IAC section of
I am using Acrobat Reader DC SDK to develope a *.api. Currently I need to get file path and file name. Is there an API like AVDocOpenFromFile to get file path and file name which is Acrobat Reader open file? thanks,tony
I am using Acrobat SDK for developing *.api. When I use command line to open pdf file as follows:AcroRd32.exe 0001.pdf aaa bbb ccc.If *.api can get the parameter - aaa bbb ccc?
I'm creating a form in Acrobat DC. I have a checkbox named AN_PA_CB; its export value is "Proximate Analysis" (this cannot be changed because of other code in my form). I have three text fields named AN_PA_CP_TB, AN_PA_CF_TB, and AN_PA_A_TB. I need checkbox AN_PA_CB to check if text is entered in one or more of the three text fields AN_PA_CP_TB, AN_PA_CF_TB, and AN_PA_A_TB. I also need the checkbox to uncheck if text is deleted from all three text fields; however, the checkbox must stay checked if text remains in one or more of the fields. I tried entering the code below in the custom format of each textbox:this.getField("AN_PA_CB").checkThisBox(0,!/^\s*$/.test(event.value));This checks/unchecks the checkbox successfully when text is added/deleted from a text field; however, this code considers each text field individually and unchecks the checkbox whenever text is deleted from any text field, even if the other two still contain text. Is there a way for checkbox AN_PA_CB to c
Dear All, I used Visual Studio 2013 for developing plugin from Adobe Reader DC SDK in the development computer. I built the sampe code - SampleExtn. Put the *.api into Acrobat Reader DC's plug_ins directory. Open Acrobat Reader and it can work. Show the "Acrobat SDK" in menu bar. But when I installed the same Acrobat Reader DC in the another computer - testing computer. Copy the same *.api into Acrobat Reader's plug_ins directory. Open the Acrobat Reader and cannot show "Acrobat SDK" menu. The two computers have the windows 10 OS and Acrobat Reader DC is 2020.013.20066. Thanks,Tony
Dear All, I cannot open file by using AVDocOpenFromFile, if the file is under C:/user/localadmin. But it can open file if I added "Everyone" into the security of directory - localadmin. Anyone has the idea about it? Thanks and best regards,Tony
Dear All,I need static library build, but acrobat SDK sample project only DLL /MD build. I have changed it from Multi-threaded DLL (/MD) to Multi-threaded (/MT). It has the following error:"mismatch detected for 'RuntimeLibrary'".anyone has the idea about it?thanks,tony
Hello. I want to display the validation appearance mark (valid, Invalid, unknown) on a signature image by using plugin.But, my signed signature data is on layer 0 and 2 data. (There is no layer 1 or 3 data.) Can I set up the Plugin to call the GetAPLabel(), GetLogo() functions to display the verification image? Or is there another better way?
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.