Unlock the power of Acrobat SDK through our community.
Recently active
/*** Get the ISO week date week number */Date.prototype.getWeek = function () { // Create a copy of this date object; var target = new Date(this.valueOf()); //var target = new Date(this.getField("WeekBegin").value); // ISO week date weeks start on Monday; // so correct the day number; var dayNr = (this.getDay() + 6) % 7; // ISO 8601 states that week 1 is the week; // with the first Thursday of that year.; // Set the target date to the Thursday in the target week; target.setDate(target.getDate() - dayNr + 3); // Store the millisecond value of the target date; var firstThursday = target.valueOf(); // Set the target to the first Thursday of the year; // First set the target to January first target.se
We wrote a 32 bit application that uses a WPF webbrowser control to view html pages. In some of the html pages, we have links to pdfs that launch in a separate internet explorer window. We recently switched to a new version of Adobe Reader DC as the default pdf viewer and noticed issues loading pdfs. The IE window launches from the application, but it shows a blank screen and an error eventually pops up. If you use internet explorer instead of the app to view the html page and select the pdf link, a new window showing the pdf is displayed correctly.The problem can be avoided if I turn off protected mode in Adobe Reader. But, circumventing the security sandbox doesn't seem like a good long term solution. Also, the problem seems inconsistent. It works fine on some PCs with protection mode on and not on others. All PCs were tested with different versions of Windows 10 ranging from 1607 to the latest.I've spent days trying to find a solution.
I add a link to Page by JS:l = addLink(p, [r2[4], r2[5], r2[2], r2[3]]);l.borderColor = color.red;l.borderWidth = 1;l.setAction("this.pageNum = " + dctPageName[iPageGoto] );Type of Action is: Run a Javascript:How can set type of Action is [Go to a page in docment]?
I have a PDF form, where I selected a specific font that must be used (i.e. Avenir LT Com). The font is legally installed on the machine and the PDF form is used only on that machine.The font works in a form, except all accented characters are not in Avenir, but Arial, like the font doesn't have them - but it has.I have used this workflow before and it worked for different non-standard font no problem, but for this and several others it doesn't work. Why it works for some, and why not for others? And why why why it works half-way, without accented characters?I have Acrobat DC (CC subscriber) and Windows 7. Tried another machine with the same problem.Thank you very much
Hello. i have varv1 and varv2. and i want varv2<=varv1 if not it wrongI START LIKE THIS// Get field values as numbers var v1 = +getField("Textfield66").value; var v2 = +getField("Textfield67").value;how can i end it?Thanks
I have a form with 10 fields (type: number). The first field is Income. The remaining input fields are other payroll related numbers in which User would type a number or select from options that return a number. There are also ten other read-only fields that run calculations based on the input fields as user updates them. Because of "Order of Calculation", if User completes any number of input fields, and then wishes to test a different amount in Income in that first field, the calculable read-only fields are unaffected (in other words, the calculations remain related to the original Income input, not the updated Income input). My current solution is to have the entire form reset to zeros upon mouse-down in Income. This is an unsatisfactory semi-solution, because User must go through and re-type or select the remaining 9 fields again. I would rather have all the read-only fields simply recalculate upon mouse exit from Income. If you know of a way to do this - especially without writing
Hi I create an interactive PDF files up to 2M, when I fill in data and saves the filethe file grows. In the current case file grows from 1.9M to 11MWhy did the file grow? How can I prevent such a large change in a file?I have Acroat Reader DC ThanksRonen
Hi Is there something (script or so) to create a reading bar on top of a PDF document,that is moveable up and down and sticks to the document as you scroll the document itself?
Hi,Wanted to check if the below activity is possible using the javascript if yes any help ?As a part of my process i have to save all the processing related document in to a folder, and at the end of the day have to create a single PDF file for each folder which will include all the files in that folder (PDF as well as JPG)so just wanted to check if this entire activity is possible using jave script, where i will gv path to the master folder and it will create the pdf's for each subfolder.Thanks
I have tried every SUMIF formula on these forums. But none of them worked for me. So I really need your help to complete my formula.W 20,00 G 80,00 W 23,00 G 40,00 W 0,05 G 2,00 W 5,00 G 10,00 W 70,00 G 45,00 What I am trying to do is get the total of all the amounts behind "W" and behind "G". So in this case it would be W= € 118,05 and G= € 177(These outcomres will come in "Text1.1" And in Text1.2".The row (from top to
I have a PDF with check boxes, where I want clicking a certain check box to link to a specific page of the document and print that page. I found this forum which is pretty much exactly what I would like done printing checked items from a form in acrobat reader but I am not knowledgeable in javascript. I don't even know where to put the code in that they reference in this forum.Thanks!
Do we need Acrobat Pro DC tool for using Acrobat DC SDK?
Hallo Zusammen,habe ein Formular mit Zwei Seiten erstellt.Die erste Seite wird ausgedruckt Die Zweite Seite wir entnommen und wir per E-Mail versendet.Jetzt möchte ich dies meinen Anwendern zur Verfügung stellen.Diese haben aber nur den Reader DC im Einsatz und dort geht es nicht.Kann mir jemand helfen?Hier der Javaskriptcode:// Variable und Leerenvar Kunde = "";var Projekt = "";var Mailing = "";var Loeschung = "";var Versand = "";var OutEMail = "";var OutText = "";var OutBetr = "";var Datenloeschung ="";// Variable Füllenvar Kunde = this.getField("NameKunden").value;var Projekt = this.getField("ProjektNr").value;var Versand = this.getField ("AuflieferungMailing").value;var Mailing = this.getField("NameMailings").value;var Loeschung = this.getField ("DatumLoeschung").value;var OutBetr = "Die Post ging ab! Löschung am " + Loeschung;var OutEMail = getField("EMail").value;var OutText = "Sehr geehrte Damen und Herren,"+"\n"+"\n"+"als Anhang übersenden wir Ihnen die Information zur Datenlös
Hey everyone,Could someone explain the below (console) behavior for me? ( Nb. f1. is a text field that is gray.)f1.fillColor==color.grayfalsef1.fillColorG,0.5color.grayG,0.5I'd like to use the background color for booleans , but because the top comparison fails I'm at a loss.For this particular instance I have a workaround but for my overall understanding I'd be happy to know why this works this way
I would like to use an AcroDialog window for updating a field in a PDF form and I need to populate an "edit text" with the value of the field "Text1" existing in the form. How the following script must be modified to do so ?Probably very simple... but I stumble on the solution.Many thanks in advance for your advices////////////////////////////////////////////////////////////////// Acrobat JavaScript Dialog//var oJSDlg = { strEdt1:null, initialize:function(dialog){ }, validate:function(dialog){ var bRtn = true; var oRslt = dialog.store(); return bRtn; }, commit:function(dialog){ var oRslt = dialog.store(); this.strEdt1 = oRslt.Edt1; }, description:{ name:"Dialog Box", elements:[{type:"view",width:634,height:405,elements:[ { type:"static_text", item_id:"Sta2", name:"Veuillez saisir le texte du message :", }, { type:"edit_text", item_id:"Edt1", wi
I developed form in AEM Forms Designer with radio button that show/hide Flowed Subform. That give me to hide subform without blank space. Now I try to develope form in Acrobat DC and would like to do same in Acrobat. If that is possible. How to do that? I will appreciate for detail explanation.Thanks.
Hi,Is it possible to get the data from one textfield to another textfield. The values should exactly match as it is for example: ("1.00245" or "1,000.02542" or "1" or "100.00" or "100.20") the result should be the same ("1.00245", 1,000.02542" or "1" or "100.00" or "100.20") and also if it is negative value we should replace as parentheses.
Dim iTotalPage = gPdDoc.GetNumPages For iPage = 0 To iTotalPage - 1 Dim formApp As AFORMAUTLib.AFormApp formApp = CreateObject("AFormAut.App") Dim fields As AFORMAUTLib.Fields fields = formApp.Fields Dim strScript As String Dim tmp = "var p=" & iPage & ";" & vbNewLine strScript = tmp & System.IO.File.ReadAllText("Script.txt") ' call the method to execute JavaScript fields.ExecuteThisJavascript(strScript) Next[Script.txt] process add link to target page.After call process of Page=0, it d
I have a text field that I need users to enter a specific number format in. The field format must look like A99999. The first character must be upper case character. I will appreciate for detail explanation how to do it in Acrobar DC?
I have a text field that I need users to enter a specific number format in. The field format must look like 9-999-999-9. I have experience to farmat field in LiveCycle but I have problem to set format field in Acrobat DC. I will appreciate for detail explanation how to do it in Acrobar DC?Thanks
I had an issue today where I couldn't send a PDF form I had been working on to a coworker, and found out that the form was being flagged by our server as a virus (MAL/PdfEx-C). I traced back through the changes I made (a previous version had no problems posting) and was finally able to track it down to a function I had added to a field's Custom Format event. In that event, I needed to sort an array of checkboxes to keep them in the proper order and concatenate their values. I added a function to do the sorting, and this was what was being flagged by our server. I moved the sort function out of the Custom Format event into a standard JavaScript code module, and had no problems then emailing the file. This is the function:// Custom sort order for checkbox field arrayfunction customSort(a,b) { return( a.name.toString() < b.name.toString());}Can anyone say why the email server would flag a file for having a function defined within the field's events? I usually don't do
I basically need a formula involving two fields, let's name them Field1 and Field2.So if Field1 is less than or equal to 2000 then Field2=150.However, if Field1>2000 then Field2=Field1 multiplied by .075.Any ideas what the script would look like??Thank you!!
I am working on a pdf file and have gotten to work with hover states (mouse enter, mouse out) and mouse up/downThe one issue I'm running into is when I keep the state on (showing a layer) on click and making sure if I have any other layer I have previously selected is turned off.I did do this by going through each layer and turning it off on mouse up, but I have a lot of layers and that can be a lot to do for each button. Is there an easier way?I tried using on mouse up var docOCGs = this.getOCGs();for (var x=0; x < docOCGs.length; x++) { docOCGs.state = false;}---- and then another actionvar docOCGs = this.getOCGs();for (var x=0; x < docOCGs.length; x++){ if(docOCGs.name == "DBC: National") { docOCGs.state = !docOCGs.state; }}but it turned off all layers except DBC Natoinal. and there are some layers that I still want to show. I tried locking them,
HelloI work with hundreds of PDF files which I have to go through and set up the layout for each one manually. It would be great if I could set up something that when a file opens, it changes the layout for the file to Layout: Single Page and Magnification: Fit to page, then saves. Can anyone direct me to an idea how to do this? New to Adobe somewhat and this would save me a LOT of work.Thanks!
My question is, is there a script for one-sided printing of a PDF file? I have a pdf package with different single forms and need them simplex printed even if the printer driver is set to double-sided printing? Any ideas?Thank you for your Help!
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.