Unlock the power of Acrobat SDK through our community.
Recently active
Hey!I am trying to add a custom validation script to a textfield via the UI, i.e. clicking "Properties > Validation > execute custom validation script > edit" (I am translating from a non-english Acrobat version). So, clicking "edit" opens the JavaScript editor and I can write my code but on "Ok" the code is not saved. The code actually shows up for a split second but the radio button jumps back immediately to "Field value won’t be validated" – w/o any further feedback from Acrobat. Weirdly on some of my textfields I actually can add code and it sticks but I can not figure out any pattern why that is. Is this a bug or are there limitiations on when it is possible to add a custom validation script on a textfield? (I am setting up my textfields in InDesign if that is of relevance.)
There is a dropdown menu with the following values: - "-"- value 1- Value 2- Value 3" - " is a default value and is always displayed first(comparatively with zero) However, a warning should appear as soon as you have not changed the value " - " to "Value 1, 2 or 3" when you save or exit the PDF. But you are not forced to change the value this is only a warning. As a warning should appear: "Please choose a valid value (- is not a valid value)". Thank you very much for the help!
Hello Community,I am looking for ways: how to get the checkbox Lock Document After Signing checked by default instead of selected by user manually.I am using Acrobat Reader DC latest version. Any of your helps would be very appreciated!Huong
Hey there!I have a PDF with a signature field (created in InDesign) and custom Java Script field validation added in Acrobat. After adding the js validation code Acrobat won’t trigger the signing process when clicking the signature field, alerting me the document can’t be signed in its current form and suggests to save, re-open and sign again – which does not work. This is my code – altered for demo purpose: function test () { app.alert("Test function got called.") event.rc = true } var myFormField = this.getField("myFormField") myFormField.setAction("Validate", "test()") Removing the script let’s me sign as expected.Am I missing some additonal steps to allow siganture fields and custom field validation to work together?
Hi,I'm working TOC page in acrobat pdf, I'm using PDWordfinder from getting words using wordenumerator only. Actually I need to create links, I'm able to create links but some documents not creating in between lines. i used:pConfig.ignoreCharGaps = true;//falsepConfig.ignoreLineGaps = false;//true I'm attaching screen shots, Please refer created and not created screen shoots.
Hello All,I am new user of Adobe Acrobat. today I create a form on which I am facing a issue aboe mention. I also checked the old rolsution here but I could not understand it. so here I am expalining my issue in details.Actually I have 4 calculated fields with names Amt3, plt1,Amt4 and Amt15Amt3 = Amt1 + Amt2Amt4 = Amt3/plt1*100 (to caluclate percentage)Amt15 = Amt3 - Amt4 I am also attaching the image. Please someone help me on this. thanks
Hi Team, I'm working on Toc pages in Acrobat pdf. Here I need to identify levels of font properies. Any suggestions! [Moved to the Acrobat SDK forum]
Hi all, I've created a custom stamp and used this.selectedAnnots[0].AP to identify the stamp name but the dynamic stamp javascript window pops up when hovering over stamps. The code is as follows:var cAsk1 = "Enter status of check: "; var cMsg1 = app.response(cAsk1); var cAsk2 = "Enter any comments:"; var cMsg2 = app.response(cAsk2); if(event.source.forReal && (event.source.stampName == "#6WPNYFVTC7VYpeOsBS5RmA")) { AFDate_FormatEx("h:MM tt, mmm dd, yyyy"); event.value = event.source.source.documentFileName + (new Date()).toString() + "CHECKED BY: " + ((!identity.name || identity.loginName != (event.source.source || this).Collab.user) ? (event.source.source || this).Collab.user : identity.name) + " AT " + event.value + "\n" + "CHECK STATUS: " + cMsg1 + "\n" + "COMMENT: " + cMsg2; } Any suggestions are welcome
Jacob
Hello, Our team has developed a pkcs11 library to work with Adobe for digital signing. However, we are facing some issues when loading into the module. As we couldn't find any developer guide or resources from Adobe to that topic, any insight of how to debug or collect logs would be helpful.P.S: We validated our pkcs11 calls with OpenSC pkcs11-tool and already tried using a signed .dll without success.Thanks, Matheus
I have developed a document DWH script to define the efficiency of the Domestic Water Heater (DWH) and set whether or not it is co-vented along with other combustion equipment. The latter two properties are dependent on DWH energy source and DWH type used.Following one of your published examples, I managed to output the correct DWH efficiency for each pair of DWH energy source and DWH type; however, I was unable to get the correct output for the co-vented field. This should be either "Yes" or "No". I am sure I am making a very amateurish mistake, but I cannot figure out what.Could you help?Thank you
I have the following script in a form, but I haven't dealt with JavaScript in a LONG time, and I'm stuck! The process I want to happen is for the user to enter their birth date, and then the form displays a message indicating their age, then the field is validated and they move to the next field. I want the field to accept only "mm/dd/yyyy", but the user is allowed to enter just about anything they want, and the field accepts the entry. There is a simple error in the script causing the field not to catch incorrectly formatted field entries. What am I missing?//Document Level Script:function getAge(birthDate) { var today = new Date(); var age = today.getFullYear() - birthDate.getFullYear(); var m = today.getMonth() - birthDate.getMonth(); if (m < 0 || (m === 0 && today.getDate() < birthDate.getDate())) { age--; }
HiI have a relatively complicated form that is using buttons to show/hide multiple layers.Everything is working well, but I am trying to find a way for the layer visibility state to be saved when the file is saved, so that when the PDF is next opened the layers are still in the same state.Is this possible?
Hi,I'm currently doing some coding task to export pdf files to doc ones. I tried to use batch sequence but Acrobat will eventually pop up error messages or just exist itself for some files. To get the things under control, I tried to use AIC (for excel VBA) to export them one by one, but met barrier for using jso.I tested the basic AIC function by using the following code and it was working correctly :Sub test() Dim AcroApp As Acrobat.CAcroApp Dim theDocument As Acrobat.CAcroPDDoc Dim bm As Acrobat.AcroPDBookmark Dim thePath As String thePath = "C:\temp\test.pdf"' Set AcroApp = CreateObject("AcroExch.App") Set theDocument = CreateObject("AcroExch.PDDoc") theDocument.Open (thePath) MsgBox "Number of pages: " & theDocument.GetNumPages theDocument.Close' AcroApp.Exit Set A
Hi All,This is my first attempt at using Javascript...I am attempting to create a Save As button on a form that will:Create a file name based on fields;Save to a specific folder (And if it doesn't exist then create folder);Bring up the "Save As" box for confirmation (as opposed to a silent save);Bring up a warning IF Adobe is going to save over an existing pdf (aka has the exact same name);Close Adobe after all of the above is executed.So far I have been fairly successful. I have been able to do a silent save, saving to a specific location and saving the file name based on fields. I need help building the rest of the functionality into the code if possible.Thanks in advanced!-------------------------------------------------------------------------------------------------------------------------The code I have so far is:Trusted Level Function saved in Notepad under the Adobe / Javascript foldermySaveAs = app.trustPropagatorFunction(function(doc,path) {app.beginPriv();doc.saveAs(path);ap
Hello,I am trying to poplulate a textbox with the export values from multiple selections from a Dropdown List Box. For example, my dropdown list box may have: Item Value/Export Value:Posting Journal Entries to General Ledger/F_GL_POSTBudget Adjustment Entry/F_BD_ENTRYetc. I want the user to pick from the descriptive terms (the Item Value in the Dropdown list), but have the more technical description (the Export Value) poplulate in the text box. The user picks as many Item Values as they need one at a time. If they pick one they don't need, they pick it again and it is removed from their selections. I found a DOCUMENT LEVEL script online that works for this EXCEPT that it provides the Item Values rather than the Export Values. I need the Export Values in the text box, not the Item Values. Here is the script:function fillRoles(doc, fieldName, newValue) { var ar = []; // Get the value(s) currently stored in the dropdown value and // convert them to an array
Hi, Am wondering if there is a script that would allow for a single page of field entries a user has made, to be cleared in entirety, likely using the function; this.resetForm() Ideally looking to achieve this with script that doesn't require naming each field individually (lots of fields!) like the example shown below, but perhaps just allows the reset of the page itself?. this.resetForm(["Field1", "Field2", "Field5"]); The standard reset form function in DC Pro is somewhat annoying in as much as if you then add more fields later on after setting which specific fields you have ticked earlier on in making the form, it seems to add those new fields as well, which is frustrating as quite often you might want to adapt and create more fields etc. later on.
I am looking at the SDK plugin sample SelectionServer and I am not seeing how to change the default folder icon to something custom. I tried "AVToolBarSetIcon" but that didn't seem to affect the icon that is displayed on the Tools page.
When the user changes the size of text in their window display options the custom icons of the sample plugin get really small. The native icons resize appropriately. Is there anyway to get the custom icons to behave like the native icons? 1920 x 1080 with text size at 100% 1920 x 1080 with text size at 175%
I've created a collection of customized dynamic stamps with a touch of javascript functionality, and am trying to find a way to share the whole collection throughout my workspace. The best I've worked up so far is them creating a number of "blank slate" stamps, and by-hand copying over the form fields I've made in the set to their own blank slates. This isn't quite as elegant a solution as I was hoping for, but creating a new collection and replacing the Acobat-made custom stamp file with my own doesn't lead to the creation of new stamps, and simply selecting one of the custom stamps from the file as a new stamp replaces all of the dynamic aspects/functionality that's built into them.Does anyone have recommendations on sharing the PDF containing my stamps with others?Thanks!
Buenas tardesCon que tiempo de anterioridad se debe cancelar la suscripción antes de que esta sea renovada automaticamente .
I have mailed to commercial Adobe, but no reply in more than a week. So I'm trying to ask here.I have used the PDF Service API to generate PDF from DOC, but I wonder if there is (as a payment SDK or so) a package that I can install on local server, without external connection, to generate PDF in the same way?I need to setup a project for a Government organization, and I must avoid any external connection, API, or microservice.
I would like to know what script to use to have a value assigned (value of 1) to a checked box (named 1-1) only when checked.
Hi,How to get this container Path coordinates from PDF File.
Hi, I am creating a PDF form with numerous fields including dropboxes and complimenting text fields, I can work out the export value for most of the options, but I also have the option for people to enter custome text but cant figure out how to make the export option to be blank to corresponding text box. I have attached some screenshots for explanation. I want the blank field to export nothing to the text box. I am sure its probably easy to do but for the life of me I cant seem to work it out
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.