Unlock the power of Acrobat SDK through our community.
Recently active
I have three simple javascript add-ins that I have used successfully for years. I would like to add custom icons to them, but am having problems. When I use this code, I get an error saying "this.importIcon is not a function". I am a cut-and-paste Javascripter so likely I'm making a simple mistake. Could anyone tell me what it is and how to fix it? Thank you! this.importIcon("myIconCW", "/D/J/CAD Standards/Stamps/Acrobat tools/clockwise.jpg", 0);this.importIcon("myIconCCW", "/D/J/CAD Standards/Stamps/Acrobat tools/counterclockwise.jpg", 0);this.importIcon("myIconFlat", "/D/J/CAD Standards/Stamps/Acrobat tools/flatten.jpg", 0);var cwIcon = util.iconStreamFromIcon(this.getIcon("myIconCW"));var ccwIcon = util.iconStreamFromIcon(this.getIcon("myIconCCW"));var flatIcon = util.iconStreamFromIcon(this.getIcon("myIconFlat"));app.addToolButton({cName: "MyFlattenButton",cLabel: "Flatten",oIcon: flatIcon,cEnable: "event.rc = (app.doc != null);",cExec: "flattenPages();"});app.addToolButton({c
Hello, I am trying to combine three different forms we have at work into one. The only difference is some addresses and phone number information. It differs between each of our locations. I want to combine them into one, where a customer can select the location in a drop down, and text fields will appear based on their selection, which would be the correct shipping and contact information on the form. I have went through a couple different threads and tried different codes but can't seem to either make it work correctly, or I am doing the wrong thing. Thank you for any help.
I have converted a TIF Image to Text PDF document. Now I want to highlight the a specific coordinate of the TIF Image in the PDF Document because my client is using the Text PDF document for View and Text copy requirement. So please suggest if there is any feature or through which a PDF document can be highlighted similar to a TIF image (GDI+). Note: I am using a paid PDF component (patagames.pdf) in my C# .Net Application.
I need to call a REST service from my plugin. What would be the best practice to do so? I have tried to find a suitable function for this in the SDK, but I dont think there is such. Therefore I was thinking of using wininet under windows (and something similar for Mac). Is there a better way to do this?
I am trying to create a pdf form that hides default values on print, but will print entered values. Is there a way to do this through javascript?
I am wanting to automate the process of converting several web pages into pdf and then combining those PDFs into one large PDF file. Now, i think my searching skills have failed me here, because i have not been able to find any resources on how to approach this. All i have found are some really old and really vague posts about 'Acrobat SDK'. Is this something that is possible to automate in any way? I tried using the Action Wizard, however, these web pages are embedded in subdirectories and of course are filled with other files (css, js, png, etc) that make just dropping it into action wizard impossible. So, i want to approach it using python (or something similar) to interface with acrobat and automate this tedious task. Is it possible to script Acrobat in this way? Or am i stuck doing all 300 of them individually by hand? Thanks!
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--; }
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.