Questions
Recently active
Hello -I am hoping someone might be able to tell me why the below does not work? Basically, I am trying to hide a button; using another button. From the research I have found, it seems the below should work...but it doesn't...nothing happens? 😞Anyone have any ideas as to what may be preventing the below from working:Button name: Attachthis.getField("Attach").display = display.hidden;Thanks in advance for your time
We are using Adobe Acrobat Pro 2017 at our offices. I have a user that wants to create a stamp with just their initials and current date and time. That's it. No other comments or words. I wish the built-in stamps that already have the date and time code built in would just let you use that as a template and customize your own stamp.Can anyone assist me with this?
(Acrobat XI Pro): This problem comes and goes with various Acrobat updates, and mutates to different symptoms, but essentially, Acrobat insists on embedding common fonts in documents, and then not giving any means to remove them, resulting in excessive document size. The problem fonts can be seen in document properties, and preflight, but are NOT shown in 'optimize pdf'. I have tried printing the document with all fonts on my system selected as 'never embed', and the 'rely on system fonts' check box in the print properties dialog checked or unchecked. Both of these worked at various Acrobat updates, but since the latest (11.0.18), NOTHING will remove these fonts (Arial is embedding i the document prompting this question, but different documents 'lose' different fonts)Does anybody know how to get rid of these things?
Hoping someone can help with this.I have a form with several rows of fields as follows (only showing row 1 below)..."Unit_1" (dropdown), "Unit_1_Fee" (textbox, currency), "Unit_1_Var" (textbox, numeric), "Unit_1_Actual_Fee" (textbox, currency).When a unit is selected in "Unit_1", the associated fee is shown in "Unit_1_Fee" which is a value retrieved from a Document JavaScript.If "Unit_1_Var" is empty, the value in "Unit_1_Fee" is also displayed in "Unit_1_Actual_Fee".If a "1" is entered into "Unit_1_Var", the value in "Unit_1_Actual_Fee" is "120" (an override value).The following script is attached to the "Unit_1_Actual_Fee" field to achieve this...if (this.getField("Unit_1").valueAsString!=this.getField("Unit_1").defaultValue) { var altValue = Number(this.getField("Unit_1_Var").value) * 120; event.value = altValue>0 ? altValue : (Number(this.getField("Unit_1_Fee").value);} else event.value = "";What I'm hoping to do is to modify this to use a checkbox instead of t
Greetings – I am looking for a way to delete files added to a form using the below script I obtained from a forum. Wish I could remember which forum so I could give proper kudos; as the below works perfectly allowing me to attach any type of file to the form.What I need now is a way to delete these files? Have been unable to locate anything on how to delete a file, attached in the manner below. Anyone have any ideas?Thanks in advance for your time. Any assistance will be greatly appreciated.Script to attach file(s) - (works great!):******into form actions Java Script********if (app.viewerVersion < 11) { import_pre_11();} else { import_11();}******into document java script; Import_File (create/add new)******// Initialize attachment numberattachment_num = 1; // Initial location of file attachment icon// The x value is incremented belowvar oFAP = {x_init: -72, x: -72, y: -72}; // Below lower-left corner of the pagefunction imp
I'm working with fillable form PDFs on Mac. I'm able to open the form and fill it all out as expected, but now I'm simply trying to "print to PDF" or save or whatever...just some way to turn this into a clean PDF with the data filled in and not the form fields still there.In Windows, I simply go to File -> Print, I choose PDF from the printers, save it, and it gives me exactly what I need, which I can then deliver to whoever I'm sending it to.On Mac this is apparently impossible..?? I used to be able to do it in the past, but now the info I'm getting from Adobe live chat is that this is simply not compatible on Mac and cannot be done. This essentially renders Adobe forms useless in Mac in my opinion, and frankly I'm having a hard time believing there isn't a way to do what I'm trying to do.On Mac, when I go to File -> Print, Adobe PDF doesn't even show up in the printer list. The only way to get to to the option is to click on "Printer" settings, which ope
I have 3 text boxes all numerical values only, EXPRESS TOTAL, ECONOMY TOTAL & SP SVC, I would like at least one of these text boxes to be completed with a value greater than 0. If one box has information then the other 2 textboxes are not required to be completedI started with the below as a custom calculation script for each of the text boxes but am unsure if i am doing this correctlyAlso should the form when opened have all these text boxes as required ticked at source and only when one of these 3 text boxes is completed with a value greater than 0 the required state for the other 2 textboxes will be removedvar aF = ["ECONOMY TOTAL", "SP SVC"]; var sf = this.getField("EXPRESS TOTAL"); for (var i = 0; i < aF.length; i++) { var v = this.getField(aF).value; if (v !== "") { this.getField("last 4 digits").required break; &n
i am using the acrobat SDK in c# and i wanna get the indexes of the pages that the user selected to be printed
Can someone tell me an easy, in general, way to find the stamp folder on a Windows based PC? On the Mac it's very easy but I don't know how to find the folder on a PC. I remember seeing something regarding that very thing but I cannot find it again. I know, I should have bookmarked it.
I have some validation code (below) that validates fields before a user can submit the form. The code works great, with one exception; Each time it catches one of the below, the code returns to the form and designated field, as should; but also clears all fields on the the entire form?Anyone have any ideas as to why, upon returning to the form and designated field, the form clears all data from all fields; almost as if it is resetting the form?Here is what I am working with?if (this.getField("Date of Loss").valueAsString==""){app.alert("You must enter the Accident Date in the Date of Loss field.");getField("Date of Loss").setFocus();} else if (this.getField("Time of Loss").valueAsString=="") {app.alert("You must enter the Time the accident occurred in the Time of Loss field.");getField("Time of Loss").setFocus();}else if (this.getField("Employee Drivers Name").valueAsString=="") {app.alert("You must enter the Employee Drivers Name in the Employee Drivers Name field.");getField("Employe
This is about Adobe Reader DC run from WIndows computer.A pdf is on the user desktop, and user open it with his Adobe Reader DCIn the File Print dialog, there is as "Save Toner" checkbox.When it is selected, the pdf document events WillSave and DidSave are triggeredThis never happens when it is not selectedMoreover, it seems that this causes some reloading because the global var are reset to the original values.Steps to reproduce the problemAdd a javascript document with the codevar testvar = 0;Add a print button with the codetestvar = 1;console.println("in print button: "+testvar.toString());this.print(true); //show the ui print dialogconsole.println("out print button: "+testvar.toString());Add a WillSave event with the codeconsole.println("unexpected call to will save: "+testvar.toString())Add a DidSave event with the codeconsole.println("unexpected call to did save: "+testvar.toString())Add a WIllPrint event with the codeconsole.println("in will print: "+testvar.toString())Add
I've created a few stamps using Acrobat Pro 10. What I'd like to know is, is it possible to use the same stamps I've created on my Mac to use them on a PC. At this point I don't know what version of Acrobat will be on the PC. Will I have to create the stamp all over again on the PC? Thanks.
var aF = ["ECONOMY TOTAL", "SP SVC"]; var sf = this.getField("EXPRESS TOTAL");for (var i = 0; i < aF.length; i++) { var v = this.getField(aF).value; if (v !== "") { this.getField("last 4 digits").required break; }}I have 3 text boxes all numerical values only, EXPRESS TOTAL, ECONOMY TOTAL & SP SVC, I would like at least one of these text boxes to be completed with a value greater than 0. If one box has information then the other 2 textboxes are not required to be completedI started with the above as a custom calculation script for each of the text boxes but am unsure if i am doing this correctlyAlso should the form when opened have these text boxes as required ticked at source and only when one of these 3 text boxes is completed with a value greater than 0 the required state for the other 2 textboxes will be removed
Hi, How to find out that how many colors used in pdf file. And also need to find out spot colors. How to find out in PDF file?
Hello guys, I am really rookie with Javascript but I'd like to know what is wrong with this code? I get alerted but not exactly on the numbers. I have two TOTAL values that I compare and I want to be alerted if they're the same or different. Can anyone take a look and perfect this code, will be appreciated.var V1=Number(this.getField("A").value);var V2=Number(this.getField("B").value);if(V1==V2) {app.alert("EQUAL");}else if (V1 >> V2){app.alert("First value is bigger");}else {app.alert("First value is smaller");}
this.getField("AMULAT MECHES").display = (this.getField("Group19").valueAsString == "Choice1") ? display.visible : display.hidden;
I've created a form in Adobe Acrobat Pro DC which will require a user to fill in the following fields: name, business name, phone number, email address, verify email address, & account #. All these fields must be filled out and what's entered must be validated. In the Validate tab for each field I see that I can enter a custom validation script. I have no knowledge of Javascript.How can I find the correct custom validation scripts to use for each field?Thanks.
I have a form and on that form I have a custom button to spawn a new page -var template = this.getTemplate("1");template.spawn(this.numPages, true, false);this.pageNum = this.numPages-1;When I add a few pages everything is works properly, fields are renamed etc. Once I delete a page say page 4 of 5 pages the page deletes fine. Page is deleted via a custom button that is on the spawned page -var response = app.alert("Are you sure you want to DELETE page" + (this.pageNum+1) + " ?", 2, 2);if(nResponse == 4) { this.deletePages(this.pageNum,this.pageNum); this.pageNum = 0;}Now when I spawn a new page after deleting a page it appears to duplicate the last page I spawned. It does not rename the fields so it populates the fields with data from the last spawned page, any ideas?
I am working to update a form that has open-ended fields, but the ability to write anything is causing a problem with tracking. Is it possible to have Drop Down Menu 2 only display certain answers based on the selection of Drop Down Menu 1? I will also need to add a 3rd and 4th level to this so scaling would be ideal.
I am using this scriptthis.getField("cust Tel No").required = !event.target.isBoxChecked(0);and it works but when i try and add extra text boxes it doesnt, where am i going wrongthis.getField("cust Tel No").required = !event.target.isBoxChecked(0); &&this.getField("cust Tel Ar").required = !event.target.isBoxChecked(0);
Hi all,I have made a form with dropdowns in Acrobat Pro and it works fine.But when a customer filled in the form and mail it back, something stange occur:The vallue of a dropdown field is correct, till it scrolls out the page in Reader.Then when scrolling up again, the vallue is reset to the standard value of tha specific product.Do anybody have an idea how it comes and most of all: how to solve this issue?I searched a lot on the internet, but couldn't find any solution.Thanks in advance!
I am trying to copy a fields contents so that I can have one set of fields be changed, and another set be read-only. I added a custom calculation script to one of the fields and everything seems to work - except... I have have a 23 character long field that starts to mess up after 16 characters of data. After 16 it starts being inaccurate. I'm guessing that this is due to the data type that the field has allocated. Stranger still - after it gets passed 20 digits or so, it starts displaying in scientific notation. Does anyone know how to fix this? Should I go about doing this a different way?
Hi My fields are "Legal Rent" & "Pref Rent"I want my new field "Rent Amount" to take the minimum value of the two above fieldsHowever, if the field "Pref Rent" is blank as is the case many times I only want the new field to populate the value in "Legal Rent" and not to take the minimum in that case which is "0"I am not so familiar with Java and I have tried pasting calculations I have found but have not been able to get anything to work for this one
Hello,I am new to javascript in PDF's. What I am trying to do is have every pair of odd and even pages have the same page number. I have written the script below but, it just returns undefined. What am I overlooking?function addPageNumbers(){var sheet=1;var x=2;for (var i = 0; i < this.numPages; i++) {if (x%2==0){this.setPageLabels(i, ["D", "Back ", sheet]);}else{this.setPageLabels(i, ["D", "Front ", sheet]);sheet++;}x++;}}
I do not know Javascript and need emergency help with this calculation please. I would be so grateful if anyone with knowledge could assist. I need to create several percentage calculations in Acrobat Pro DC. I know where to put it just need to code. It looks something like this:AP to 30 (expressed as $) / % of TotalAP 31-60 (expressed as $) / % of TotalAP 61-90 (expressed as $) / % of TotalAP Over 90 (expressed as $) $ / % of TotalTOTAL (of AP above)I need to know how to calculate to totals. There will be 4 separate scripts.Thanks for any help!!!
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.