Unlock the power of Acrobat SDK through our community.
Recently active
Hi! I am looking for code that I can put in the "Custom Calculation Script" section of the Text Field Properties in Acrobat Pro DC. Part of the form I am creating has six fields:String 1 - No.String 2 - No.String 3 - No.Total StringsString 4 - No.String 5 - No.String 6 - No.Total Strings I need to know how many fields get used, not the sum total of what's in the fields. For instance, if the user types:String 1 - No. = 8String 2 - No. = 10String 3 - No.String 4 - No. = 12String 5 - No.String 6 - No.I need to know how many the first three strings are used (2) and how many from the second three strings are used (1).String 1 - No. = 8String 2 - No. = 10String 3 - No.Total Strings = 2String 4 - No. = 12String 5 - No.String 6 - No.Total Strings = 1
Hi all dear accessibility experts,I have footnotes on master page which contains cross reference links, I want it to be clickable, but not showing in tagged annotations-failed error, is it possible?(I have made the footnotes artifacts, but I want the link stays in the footnotes)I'm thinking maybe I can process PDF in acrobat preflight, but if I remove all links annotations it will also affect the index and TOC I created, so I can't...I have been doing research but can't find anything related to my question.Any help would be appreciated!!Thanks in advance!
I have sifted thru posts, but can't find a solution ...I want to execute a script from a button that will evaluate many image fields to determine if an image is assigned to the field. The purpose is to clear a hidden text field of the original path of the imported icon in each. I have tried:var isIcon = this.getField("Image17_af_image").value;which returns "null"var isIcon = this.getField("Image17_af_image").buttonGetIcon();which returns [object Icon]var isIcon = util.iconStreamFromIcon(this.getField("Image17_af_image").buttonGetIcon());which returns [object Stream]Is it possible to get a "Yes"/"No" response?
I'm using Java Script to convert Image to string and store in the field value. As we can see the below Javascript:// Getting the Object var oFile = this.getDataObjectContents("Test1"); //object into the string var cFile = util.stringFromStream(oFile, "utf-8"); // storing in the field this.getField("Text2").value = cFile;I'm reading all the field On the pdf and I'm able to get the field Value, but when I'm trying to write it, in the Server/Local machine I'm not able to write the image. I'm using the below code.byte[] br; // (cc.Value)// value of the fieldbr = Encoding.ASCII.GetBytes(cc.Value); //br= imgToByteArray byte[] pdfdata = Encoding.ASCII.GetBytes(cc.Value); Stream streamed = new MemoryStream(pdfdata); Stream InputStream = streamed; byte[] result; using (var streamReaderWE = new MemoryStream()) { InputStream.CopyTo(streamReaderWE); result = streamReaderWE.ToArray(); File.WriteAllBytes(fileNameEEEE, result); } Thanks
I have multiple text fields on each page of a document. The text fields can be populated through a generic script, from a list of predefined narratives (unique for each group of "x" fields >> i.e. the fields are in groups of three that share narratives) or can be edited in place. The document highlights the "active edit" text field by changing the background color for the user.Problem:When user leaves the page, the highlighted field is not visible. If the user selects from one of the narratives in the list for the (now) visible group, the event will overwrite the text in the last field selected.I want to "de-select" the field if the user scrolls away from it being visible.I understand that there are no page change events. Can a scroll event be used, and where? Looking for suggestions.THX!
I am using Adobe Acrobat Pro DC 2015.010.20059 on a PC running Windows 7 Professional. I have scanned documents on our work Xerox machine. I use the Enchance PDF tool to run OCR. This works perfectly fine. Afterward, I can search and find text in the document, so it is clear that the OCR process worked. Additionally, if I run Edit PDF, it will recognize text and allow me to type/edit text in the document. Again, clearly demonstrating that the program has recognized the scanned text. However, in about 70% of all cases, when I try to ensure the OCR has recognized text properly by using the "Correct Recognized Text" tool, I get the message "The document does not contain any suspects." I have files that have the exact same format and were produced the exact same way (paper documents scanned on a Xerox machine), but )one file will allow me to correct recognized text and the other won't. I've spent far too long with Adobe's less than robust support (Case 0187502999 and 0187491863). The answe
Hi, I looked through Acrobat JavaScript reference but couldn't find a way to set this option: Document Properties > Initial View > Show > Document Title So I'm asking just in case I missed it... Is anyone aware of a way to set it with JS? Thanks,Leo
We purchased Adobe acrobat for reporting purposes we used the month free trial and all went well. Since purchased this has not worked we had to produce our last monthly report using another system. I have since been in contact several times, shared my screen twice and have asked for a complaint to be raised. During sharing of screens there were loads of changes made to my PC. Now when I use Adobe the tab VIEW - TOOLS now has nothing in it I have to type in search to organise pages. I can no longer drag a page into my report I get a circle with a line through it, I now have to click insert from file which takes a little more time. Every time I open Adobe or go to insert the page I get a pop up asking for permission to allow Adobe to make changes. Part of my initial complaint was every time I went to do something I would get a not responding message and the screen would then freeze, Now it just freezes and does not move I have to check task manager to confirm what I already now that it i
Dear all:-) I never thought it could be so complicated to put an simple If/else statement in a pdf form 😉 Initial situation: - There are 3 columns in a table: target, actual and delta.- All associated fields are formatted as "numbers".- The user enters amounts in the target and actual fields, the delta is calculated automatically. Task: - Adding a column 4 called "Delta> 3%"- Whenever the (calculated) delta is> 3% of the target value, a "x" should be written in the column, otherwise do nothing (or rather overwrite an existing "x"). My considerations:Var A = this.getField("delta1").value;Var B = this.getField("Target1").value;Var C = this.getField("delta1").value / this.getField("Target1").value;If (C > 0.05) { this.getField("deltabigger5").value = "×";}else {this.getField("deltabigger5").value = "";} Unfortunately, when I enter that, nothing happens. The field remains empty, regardless of which values I enter in delta1 or Soll1. I also d
I have a circular PDF chart with text at many angles. I want to edit the text and need to know if Acrobat can do this. Or is there something else I could use? Here is a sample pic of what I'm talking about:
Trying to Document-Level JavaScript to get comma separated values shown in one text field to show as a list in another multiline text field. Example (csv): 1SZ,ATT,FHS,GU6Needed Result: 1SZATTFHSGU6 Current Document Level Javascript (no success): function StockOptions(){var stkOpt = this.getField("List_Options").valueAsString.split(",");var oldValue = this.getField("Factory_Options").valueAsString;this.getField("Factory_Options").setItems(stkOpt);if(stkOpt.indexof(oldValue)!=-1) this.getField("Factory_Options").value = oldValue;}
Hello Adobe Community. Long time reader, first time posting here. I have a List Box that I am using to change information in a large number of text fields via a function containing an array in a Document Script. These fields pertain to the spec values for different products (voltage, amperage, weight, etc), so whenever we stock a new product to the list, this has been extremely easy to add the info to the array and as an option in the List Box. Here's an abbreviated version of the script as an example:var modList = { LG420: { module: "LG LG420N2W-V5", wattage: "420", voc: "49.7", vmp: "42.1", isc: "10.63", imp: "9.98", ptc: "386.9", length: "79.7", width: "40.3", weight: "47.81", POmod: "505", MaxinDC: "17.5", MaxinV: "83", MaxoutA: "15", Maxoutv: "85" }, LG400: { module: "LG LG400N2T-J5", wattage: "400", voc: "49.7", vmp: "41.5", isc: "10.22", imp: "9.65", ptc: "366", length: "79.7", width: "40.3", weight: "47.81", POmod: "505", MaxinDC: "17.5", MaxinV: "83", MaxoutA:
Does anybody know a way to sign multiple pages on acrobat Xi forms at the same time, maybe with a javascript in the digital signature properties signed tab? Right now I am having to sign and save after I place my signature on each sheet in the form, and there has to be an easier way. Any ideas would be greatly appreciated, thank you.
I have a pdf in Adobe Acrobat XI that I want to change the background on a couple of the pages, just to make them stand out a bit. I have done everything I've been told through Adobe Help and on various websites and nothing works. Is there a setting in the program that I need to check. I've even tried extracting the pages in hopes of changing the background and slipping it back in the doc. Nothing is working. What am I doing wrong?
Hello, I have a dropdown field called Department with 10 or so options and a text field called Manager. I have defined the export value per option under Department field and added the Custom Calculation script as event.value = this.getField("Department").value; to autopopulate the respective Manager field. This is working fine but I want the user to be able to edit/overtype the autopopulated value in the Manager field and save the manually entered Manager name. Any suggestions with Acrobat DC Standard PDF form?
I am trying to script a dynamic stamp.While I am adding menu in Javascript , wherever I use alphaber -"H" it is converted to Hour. How can I resolve this. var DateDlg = { result: "cancel", DoDialog: function () { return app.execDialog(this); }, strDefFmt: "mm-dd-yyyy", strFmt: "SCHEDULED ", vDate: new Date, strDate: "",
I was going to try and send my PDF file to look at and see what I am doing wrong, but it won't let me.I have 1 4-page PDF form with several fields and there are 18 required fields on this 4-page form that must be filled out. Step 1 is just a text label that said, "Fill out form". On the last page at the bottom are 3 buttons. The "Step 2" button is visible and said, "Step 2 - Review your answers, then click here to submit form". This button has the following Actions: The first 2 Show/Hide a fields hides the Step 3 and Step 4 button. Then run the following javascript code if (oField.valueAsString == oField.defaultValue) { oField.strokeColor = color.red; emptyFields.push(oField.name); bProcess = false; } else oField.strokeColor = color.transparent; After the javascript code is ran, another Show/Hide for the "Step 3" button.The "Step 2 button doesn't seem to execute the javascript code. I was trying to follow this article. Either I missed something or of cour
I want to convert image to binary file/stream in adobe acrobat pro using Adobe Javacipt. I need to embed the uploaded image path as a binary file/stream and then add to 2D Bar code and fetch the image while reading from the bar code.
So I've got a "Game" I've made in Acrobat where the user clicks on certain buttons and a layer appears. I wanted to do a final "congratulations" thing at the end when they click on the finish button. Basically If "Layer 20" and "Layer 11" (and some others that I haven't done yet) are visible and the rest are not then I want the button "Complete" to appear. Otherwise I'd like it to reset the visibility of the layers to the default state. This is as far as I've got:function FindOCG(cName) { var aOCGs = this.getOCGs(); for(var i=0; aOCGs && i<aOCGs.length;i++) { if(aOCGs[i].name == cName) return aOCGs[i]; } return null; } if(FindOCG("Layer 20"&&"Layer 11").state=true) { this.getField("Complete").display=display.visible; } Else { this.getField("Complete").display=display.hidden; }If 20 and 11 are visible it appears okay, but if they're not visible and I click the Finish button then those layers appear and so does the finish b
I am using the latest version of Acrobat Pro DC with the latest version of MacOS Catalina. When I use the internal Javascript editor, wherever I click in the editor it leaves a colored mark. The marks accumulate, i.e., they don't disappear when you click in a new location. The more you click the more marks there are. I find nothing to do with this in Acrobat preferences. Since I don't know what these marks are called my searches in the help menu are fruitless. How do you turn this feature off?
The below is in the custom validation script box of a field (model4) on page 3 of my document and if absolutely any content is added to that field, a message appears on page 1. - on the document as a standalone, the first part works well, but if the content is removed from the model4 field, the message on page 1 doesn't revert to hidden- if the document is used through an automated system, it merges with content in the field model4, but the message on page 1 doesn't appear.Have I missed something or made a mistake?if (event.value.length == 0) {this.getField("Cont onto Sch22").display = display.hidden;} else {this.getField("Cont onto Sch22").display = display.visible;}
I use Acrobat Standart DC for making pdf documents. I applied checkboxs with JavaScript there. If I test it on computers, it works perfectly. But if I activate it on mobil telephone , it does not work . My mobil have OS Android and I used Acrobat Reader there. Can you tell me, what can I do to make it work? Where is problem?
How we can access this add image properties using Java script.
Hi all, I would like some help with a Javascript. I am trying to create drop down menus that when a category is selected from the first drop down menu, the second drop down menu will auto-populate with options relating to that category. For example:I would like my first drop down menu to have 2 options, first one being 'Material Classifications' and the second being 'Machine Classifications'When 'Material Classifications' is selected from the first drop down menu, I would like the second drop down menu to auto populate with the following:Fuel - DieselFuel - ULPLubrication - FluidLubrication - GreaseLubrication - OilCoolantSurface Coating - AcidSurface Coating - PaintSurface Coating - SolventGases - AcetyleneGases - ArgonGases - NitrogenGases - OxygenGases - RefrigerantGases - Argoshield (Ar, O, Co2)Electrodes - E308Electrodes - E410Electrodes - E7018Electrodes - E71TElectrodes - ENi-CLElectrodes - ER5154Electrodes - ER70SElectrodes - Paste/PowderNo CategoryWhen 'Machine Classifications
Hi, First time poster! I've got a lot of experience in VBA but naff all in javascript. Is it possible to toggle the visibility of a button on the click? I've tried event.target.display = display.hidden which works fine to hide it but I can't unhide it. I've tried: if(event.target.display = display.hidden){event.target.display = display.visible} else {event.target.display = display.hidden} but it doesn't work. I'm assuming this is possibly because the user can't actually click the button when it's hidden? Is there any work around for this? For example, instead of the button being hidden, it could go to a transparent background when the file is open and then when it is clicked it reverts back to it's original state? When it is clicked again it goes back to being transparent? Any help greatfully received!
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.