Unlock the power of Acrobat SDK through our community.
Recently active
Hi, I'm using the below javascript in adobe form. now I want to use the same code with the LiveCycle designer form but I don't know how to modify this code for LiveCycle. can you pls help me to do it? thanks. var v1 = Number(this.getField("undefined_2").value);if (v1==0) event.value = "";else event.value = 100 - v1;
Hi everyoneI am a graphic designer, Java Script is not my best friend.I am trying to create a form where the check boxes hide / show text fields.I have very simple code (in a Java Script document, not under the checkbox) that doesn't work ... Why ?! Please help me. Thank you in advance! check2 is the name of the check boxtext2 is the name of the text field.---------------------------------------------var aaa = this.getField("check2");if (aaa.value == "Yes"){this.getField("text2").display = display.hidden;}if (aaa.value == "Off"){this.getField("text2").display = display.visible;--------------------------------------------------------------- BestMaciek
Hi, I found a piece of code on the internet, I'm trying to add a custom stamp on pdf with VBA.It's working, I mean almost. Changing the property for Rect,Contents,Author or Name I can see the effect on my pdf. The only thing is, it always uses the Draft Stamp, nothing else whatever i pass in the AP property. Any idea what i'm doing wrong? Dim gApp As Acrobat.CAcroApp Dim gPDDoc As Acrobat.CAcroPDDoc Dim jso As Object Dim stampRect(3) As Integer Dim pageRect As Object Dim annot As Object Dim props As Object Dim page As Object Set gApp = CreateObject("AcroExch.App") Set gPDDoc = CreateObject("AcroExch.PDDoc") If gPDDoc.Open("whatever.pdf") Then Set jso = gPDDoc.GetJSObject Set page = gPDDoc.AcquirePage(0) Set pageRect = page.GetSize stampRect(0) = 100 stampRect(1) = 500 stampRect(2) = 400 stampRect(3) = 500 Set annot = jso.AddAnnot Set props = anno
With a PC with the latest Intel i7, 20 cores! 128 gb ram! SSD drives!... Acrobat SDK runs like garbage.Compared to Acrobat's first release 30 years ago which ran fairly smooth and nice. WOW. What an accomplish. It's a simple text editor for crying out loud. I grew up with Amiga's late 80s 60 fps. This is a disgrace. Don't bother to reply with your... give us your specs and window version. Please. Goodbye Adobe Acrobat.
when I'm installing the adobe messages say it wil l" takes a few minute to install" and takes hours and no install
I added the demo script below to my site with my client ID and it pulls in the pdf sample file as expected (URL in red). I then added my own pfd URL and it fails to work. I get a "File preview not available, please reload to try again" error. Here's the pdf I was trying to display: https://medpower.com/s/himycasstatesubmissionfilecreation.pdfDo I have to save the source PDF files in a special way or on a special website before I can pull them in using the PDF Embed API? I don't understand why the demo URL works, but mine does not. Any help you can provide is greatly apprecaited! <div id="adobe-dc-view" style="width: 800px;"></div><p><script src="https://documentservices.adobe.com/view-sdk/viewer.js"></script><script type="text/javascript">document.addEventListener("adobe_dc_view_sdk.ready", function(){var adobeDCView = new AdobeDC.View({clientId: "XXXXXXXXXXXXXX", divId: "adobe-dc-view"});adobeDCView.previ
After an inordinate amount of research here, I thought everything was working well until... (que ominous music)... I actually used it. Not terribly surprising to y'all but hey, I'm trying. 😉Anyway, I have a number of different "Yes/No" radio buttons where, ideally, they will display/hide additional fields AND their respective text label overlays. While it "appeared" to work intially, I did not notice that the specific "Yes/No" radio buttons were turning all other overlays on or off irrespective of the varying overlay names. After attempting to research and tinker, I am now unable to get any of the overlays to turn on/off via JS only the fields leading me one again to the forum Subject Matter Experts (SMEs) offering advice and their expertise. So, once again, here I am. In my attempt to employ the KISS principle and keep the JS as clean and neat as many of the examples provided here, I have clearly missed something -- or a whole lot of everything.&nb
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.
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.