Questions
Recently active
I'm running Acrobat Pro DC. I have a text field ("CC.CardNumber") with an Action/OnBlur event that runs the following script that produces this error. I've researched this for hours and can't see where my code is incorrect.var fld = this.getField("CC.CardNumber");var first = fld.value.substring(0,1);fld.value = first;TypeError: fld.value.substring is not a function3:AcroForm:CC.CardNumber:Annot1:OnBlur:Action1Exception in line 1051 of function AFSimple_Calculate, script byteCodeTool
hi All,I have no experience in creating calculation scripts in Adobe Acrobat, but now having made a transition to a paperless office, I need to create some new documents that have java calculation scripts within.Initially the documents were in excel format and had Sum calculations at the bottom of each range.i.e.A1:A5 have single numbers from 1 thru 5A6 was a sum of A1:A5 but with a twist!The sum only rounded up if the sum was greater than .6 (point 6)and rounded down if the sum was less than .6 (point 6)My original excel calculation is shown below if it helps=IFERROR(IF(MOD(AVERAGE(A1:A5),1)>0.5,ROUNDUP(AVERAGE(A1:A5),0),ROUNDDOWN(AVERAGE(A1:A5),0)),0)I assume this will use the Adobe text box names a references to calculate a sum, rather than a cell reference, but I am a little lost.Can anyone assist in creating a java calculation to achieve the same result?Product is Adobe Acrobat Student Teacher Edition 2017, but this is only installed on a few systems, Adobe Reader DC is the mai
Salve,esiste un javascipt che prevede un' auto population di testo ed immagini di una web page (url ) all'interno di un file PDF? Tramite field o mappaggio?In sostanza il testo della web page cambia spesso e vorrei creare un file pdf che prevede l'inserimento automatico del testo ed immagini da un sito.Grazie in anticipo per il supporto
I have Acrobat 9 Standard, and the corresponding SDK. I'm working on an older MS Access 2003 program using VBA. I want to programatically combine 3 PDFs into 1. I have gleaned examples and advice from various forums to create the code. The code compiles with no errors, but when it's run, I get that old error: "Error in loading DLL."The Reference is: Adobe Acrobat 9.0 Type LibraryThe path listed is: C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.dllAnd the file is there.When choosing the Reference, I check just plain "Acrobat", which Access switches to the above file. That file is not listed separately among the numerous Adobe and Acrobat DLL References available. I tried choosing other DLLs in place of "Acrobat", but they will not compile. So, Access recognizes that DLL, and finds the objects used in the code, compiling it without error.Dim pdfOrigDoc As ObjectDim pdfNewDoc As ObjectSet pdfOrigDoc = CreateObject("AcroExch.PDDoc")Set p
Hi,I would like to make a button that automatically fills out my form.Actually, I am trying to make a sort of a shopping cart, when I press the button the text attached to this button will appear in my form, text - in one colomn and a price in the other one. The prices sum up to get the total.Could anyone tell me if its possible to do with javascript, and if yes what code to use?You would really help me out, thanx in advance fot your answers
I have 2 printers. One is specially bought for shipping labels.All my shipping labels are generated pdf files with smaller dimensions (153,8 x 106,2 mm, let's say A6 format).As I use the other printer on the same machine (iMac) for all "normal" A4 pdf documents, I always have to be careful not to waste shipping labels, using Acrobat Reader DC taking into account the last chosen printer will be preselected in the print dialog box. This, of course, is the normal behavior of Acrobat Reader.My Acrobat Reader DC:Architecture: x86_64Build: 18.9.20050.254034AGM: 4.30.72CoolType: 5.14.5JP2K: 1.2.2.39492My iMac:OS X El Capitan version 10.11.6The next script normally should launch the print dialog box with the best printer preselected (in function of the paper size).the printers on my iMac are known as "DYMO LabelWriter 4XL" (for the shipping labels) and "Brother HL-L2360D series" (for A4 documents).from the moment the document has smaller dimensions (< 160 x 108 mm), the Dymo label printer m
I would like to retrieve specific pages from multiple multiple page PDF files. Can I add search TAG (like) information to each page for that purpose?
iam new in adobe component field.i have a drop down, with 4 item. where 1 item was a default item.i set "--select--" as default item.what i want is when i click on the drop down. item `--select--` was hidden or not show.but then i click on my custom button where it is a reset form. the drop down value back to pointing at `--select--`thanks
Hello Guys!i just want to ask who's an idea how to create javascript codes that the image field we can upload auto cropie or auto size image.by the way im using with this javascript code : event.target.buttonImportIcon();Guys please who's have an idea please comment below. i really needed!Noted: i need this similar to this https://scottcheng.github.io/cropit/ but for adobe acrobat javacodes!Thanks Alot!
Hello everybodyHow to hide the JS code from viewing? I saw the options when the code is stored in binary form, tried to make of EST, put it in the hostscript, but could not execute.
I recently used Thom Parker's "Changing another field with combo box (drop down) selection" article (Thanks Thom!) to make a form that has two text boxes and one drop down. Depending on what you select in the drop down, the two text boxes are populated with unique sentences. What I would like to do is have an additional drop down that contains a word or number selection that when chosen would place it into one of the sentences. For my form, I have a drop down that you select why you are advising someone, which populates the 'Reason for Advising' text field with a small explanation and also populates 'Plan of Action' with a short summary of what we intend to do. Right now I have created an underlined section in the sentence where the user can simply type additional information, but I would like to have a second drop down that they could choose from to populate that area of the sentence. So looking at Thom's original document script:// Place all pre-population data into a single data str
Hello,I am a visual designer with very limited js skills but am wondering if anyone could help me with an interactive PDF I've made in which I want to save whichever layer is open. The layers are set to display as radio buttons are clicked and there are 60 different layers. (I know.)I found one piece of code just googling on line, which appears to be saving which radio button was selected but not displaying the corresponding layer.function SetLayer() { // get the radio button status var layerName = this.getField("Layer").value; this.getField("LayerName").value = layerName; var ocgArray = this.getOCGs(); for (var i=0; i < ocgArray.length; i++) { if (layerName == ocgArray.name) ocgArray.state =
Hi, I am trying to tweak a timesheet that I have added a dropdown box that has dates entered into the <Options>, <Item List> as "1/6/2018" and every 14 days til the end of the year. Where I am stuck is trying to get the javascript that will take the chosen 'Pay Period Ending' date and add to the 14th date field. Then I am trying to get all the other fields to start from this date -1 so that each date of the two-week period is shown. This way, the dropdown date will automatically update the pay period dates. I made some progress following these instructions https://answers.acrobatusers.com/How-autofill-date-field-based-field-selection-q286091.aspx and got the end date to reflect my date but could not get subsequent fields to -1 from the other for the staggered dates I need. The only other issue was date format in that drop downs are MM/DD/YYYY but the 14 date fields for column hours tally are too small and need to be MM/DD. Thank you.
Hallo,Meine Frage wäre...wie kann ich Seitenumbrüche bei einer Konvertierung von einer HTML Datei in eine PDF Datei erzwingen? Die eingebundene CSS Datei mit dem page-break-Befehl wird nicht übernommen. Jedoch das Layout aus der CSS Datei wird übernommen. Kann mir jemand sagen, woran das liegt bzw. wie ich den Seitenumbruch erzwingen kann?
I wrote a function in a js file in the C:\Program Files (x86)\Adobe\Acrobat DC\Acrobat\Javascripts folder.mySaveAs = app.trustedFunction(function(myForm, path){ app.beginPriv(); var myForm = event.target; return rtn = myForm.saveAs(path); app.endPriv();});I added a button to the form which calls.mySaveAs(this, saveAsFile);The console showsNotAllowedError: Security settings prevent access to this property or method.App.beginPriv:15:Field Button1:Mouse UpIs there something I am missing or doing wrong?
Is there a java script I could add to a button in a file that would allow the user to save the file as a jpg?
I am using Acrobat Pro DC (version 2015.020.20039) and when running the Action Wizard to process certain items (usually 30 or more per) it runs the process but each time it asks me to save and to what location.Even though I set this up in the Action and it still asks me to save and to where.I want it to process and save automatically to the local folder I have it assigned to.I did follow these directions in the forum: Prompted to Save After Every File Being Processed via Action Wizard I need it to process all the way thru, including the saving to a local folder.Thank You.
Buonaseraho appena acquistato la versione Pro di Acrobat DC il mio problema è il seguente: nelle versioni precedenti ero solito aggiungere all'interno dei PDF dei pulsanti di navigazione per permettere all'utente di spostarsi rapidamente a delle pagine specifiche (una sorta di riferimento incrociato presente in word), adesso non riesco a trovare il controllo per aggiungere questi pulsanti, dove devo cercare?Grazie
I've created a dynamic stamp that has two fields for the user to enter data.The stamp and javascript code seem to be working correctly except that Iget prompted twice for the data entry, once when selecting the stamp andagain when placing the stamp. I found a work-around; if I enter the data onthe first prompt and then 'cancel' on the second prompt the stamp gets placedand the data shows correctly. This is the code I'm using for one of the fields:var cResponse = app.response({cQuestion: "Enter the Dates to appear in the stamp.",cTitle: "Dates",cLabel: "Dates"event.value = cResponse;I'm using the code from some examples I found. The other thing that wouldbe nice is to combine the two field prompts into one prompt for the data entry.Regards,Mike
I have series of parent checkboxes that trigger on child checkboxes - copying the value. But if the user changes the parent checkbox from "On" to "off" the child checkbox does not copy. This the script i founded was usingvar nhnw2 = getField("ClientHNW2").value; if (nhnw2 === "On"){ getField("ClientHNWSup2").value = "On"} else { getField("ClientHNWSup2").value = "Off";}JJ
As per the title:Is there a way for Adobe Acrobat (regardless of pro or not pro) to programmatically pull the password from the database rather than typing it manually during encryption?In addition, is there an API/function/library to trigger on-demand encryption?The initial answer is no, but is there any alternative way? If no, what are the alternatives, or how can I achieve this? I am open to any of Adobe products. To get more context of the questions, I've posted introductory questions in the PDFforum, basically what I want to achieve: How do I automate PDF encryption for multiple PDF files using Adobe Acrobat Pro?
I have no experience with java. Appreciate help in creating a custom calculation script please.The form is a checkbook register. I need to calculate the balance in each line/row of the register. Beginning balance + or - (check or deposit) = balance. Can someone please help get me started on the calculation script?Thank you!
I am currently working on a project where I have 6 different dropdown lists all with the same information that would auto populate the corresponding field next to them.I obviously am doing something wrong because I can not get each dropdown list and corresponding field to act on their own. What I end up with is being able to control only 1 at a time or all of them. If you look at my small sample code below maybe you can see what I am doing wrong. Any help would be greatly appreciated.var DepData={"Code Blue Elevator":{contact: "Your Department Chief"}, "Lab":{conatact: "Your Department Chief"}, };
// test AcroFields form = stamper.AcroFields; var fields = form.Fields; var fieldKeys = form.Fields.Keys; foreach (string fieldKey in fieldKeys) { if (fieldKey.Contains("timeholder")) { float[] fieldP
I have a series of data points in an Acrobat Form. I have two checkboxes, and if either one or both are selected, I need a value of 1. I am not good at Javascript, and I think I am missing the very simple way to do it.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.