Unlock the power of Acrobat SDK through our community.
Actividad reciente
Hi,I have a signed PDF-Form "file1" that I need to mergend into another PDF "file2" that is also going to be signed later in the process. I don't need the real signatures of file1 in file2 (that doesn't work either because merging a signed PDF deletes the signatures), it suffices to preserve the signatures as textobjects in file2 (The result I'd like to have is exactly the result I get when I print file1 as a PDF (e.g. with printer "Adobe PDF"). Hereby the signatures will be obtained as texts in the printed PDF.).So I claim to have to adjust file1 before merging to file2. Because I need this for about 100x a month, it should work with a javascript-button (folder level). For adjusting file1 I had two approaches, both don't work: Approach 1: Print as PDF via javascriptI found out that there is no way to print as PDF via Javascript. Is that true? Somehow like the printparams.filename does not work with a printer that opens a save dialog on its own. Is there any other possibility
I never used Javascript before.I want to create two drop-down lists. The second list choices are depending on the choice made in the first list. Was would be the script for this use ?List 1 : Item1, Item2 and Item3List 2 : If item 1 or 2 is selected, choices must be ChoiceA and ChoiceBIf item 3 is selected, choices muts be ChoiceC and Choice DCan someone help me with a script please ?
Hi,I am trying to split a number (with 2 decimalsplace ) and separate them in before decimal and after decimal.Example: . Text1 : I have number say 25.68 , now i want it to split into two fields so,Text2 : it should show 25 Text3 : it should show 68 ,everything is working fine.. until when the number after decimal is 00 then it doesnot show correct value; below is my scriptfor Text2 calculation script :var mins = this.getField("Text1").valueAsString;event.value = mins.split(".")[0] for Text3var mins = this.getField("Text1").valueAsString;event.value = mins.split(".")[1] is there any other method to split the number where when the number has 00 in its decimal capture the 0 in Text3 .
I would like to find a way to post mutiple data in fields. I would like the fields to be "Name", "Date of Birth" and "Student#". I would also like a button to press to save this data on the PDF form. Then I would like the Name to appear in the "Name" dropdown box and when I select the name from the dropdown menu, two other fields for "Date of Birth" and another field "Student#" would auto populate based upon the data that was orginally inputted. I have been playing around and I cannot get it to work.
So, the title of my thread is very straight forward and that's what I am after... a piece of JS code that ensures me that the document IS in Reader.The reason is because I have a set of PDF documents stuffed with a lot of JS and that just get stuck when the user's browser opens it in a tab instead to download it.I kind of worked it around by adding the HTML5 property 'download' at my links declaration to force the download, however I know that not all browser versions recognizes it so once in a while I still will have someone staring to a broken document into a browser tab.I would appreciate immensely if someone could tell me if it does exist such JS code that may help me with this detection.Thanks!
Hi, I used the following script:Math.ceil(N / 5) * 5; But it's not quite giving me what I want. For instance "5" returns "10", but I need it to return "5"I need it to look like the following:0.01 - 5.00 = 55.01 - 10.00 = 1010.01 - 15.00 = 1515.01 - 20.00 = 20
Here's a stumper for you. I have been trying to create a form which can have certain fields resize to handle additional input. There are 3 different fields that can be resized by the user and then the form spawns or deletes pages to show the fields at the sizes the people have chosen. In all, there are 27 different field combinations. In order to accomodate this, I have been trying to use nested if statements. The options are simply "Small Size", "Medium Size", and "Large Size" for each field. The problem I'm running into is that the beginning option when the form loads is "Small Size" and the page shows the appropriate size field. When I choose "Medium" though, "Small" stays. Then when I choose "Large", "Medium" shows up. Then when I choose "Small" or "Medium", "Large" will show all with the proper accompanying pages. The form is showing the fields and pages of the last option that was chosen when you click the next option. Gosh this sounds insane and I hope it's not too co
The below statment will not check my checkbox3 once checkbox1 && checkbox2 are checked it will only work with the || (or) statement, what am I doing wroung? Document Level Control function cbControl() {// Get a reference to each check boxvar f1 = getField("checkbox1");var f2 = getField("checkbox2");var f3 = getField("checkbox3"); // Check cb3 if cb1 and cb2 was selectedif (event.target === f1 && event.target === f2){ f3.value = "Yes"; return; }} Mouse Up Event on each checkboxcbControl();
Sorry, I know this may be a weird question: I know how to loop through sequentially to hide all buttons. This is what I've used:for (var i = 1; i < 54; i++) { getField("Button" + i).display = display.hidden; } and that works fine for me. Where I'm stuck is I'd like to use an if statement to cycle through a random list of the buttons to check if they are visible or not visible. I know you can declare array variables, but I have no idea how to implement all of this. I know I could type it all in, but I'd like to reuse this with maybe different button numbers at some point, so i'd just like to change the array. Say for sake of argument I'd like the if statement to check if Button2, Button3, Button5,Button9, Button18 and Button 46 are visible and that all the other buttons up to 53 are hidden. Is this possible without doing the following and having to type it for every button:if(this.getField("Button1").display=display.hidden && this.getField("Butto
Hi all, I would like to have a check on the script for my checklist. It has 16 categories and for each category there are 4 options: 0 , 1 , 2 , 3 (for all the options the value is alike, so 0 =value 0, 1 =value 1, etc.) at the bottom of each option there's a field: subtotal now I've added the following code to those fields: event.value=(this.getField("Top_0").value+this.getField("Vest_0").value +this.getField("Broek_0").value +this.getField("Panty_0").value +this.getField("Schoenen_0").value +this.getField("Haar_0").value +this.getField("Makeup_0").value +this.getField("Bril_0").value +this.getField("Oorbellen_0").value +this.getField("Ketting_0").value +this.getField("Sjaal_0").value +this.getField("Armbanden_0").value +this.getField("Ringen_0").value +this.getField("Nagellak_0").value +this.getField("Riem_0").value +this.getField("Tas_0").value) event.value=(this.getField("Top_1").value+this.getField("Vest_1").value +this.getField("Broek_1").value +thi
I've got this Javascript attached to a buttonfunction 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 1").state==!true && FindOCG("Layer 2").state==!true && FindOCG("Layer 3").state==!true && FindOCG("Layer 4").state==!true && FindOCG("Layer 5").state==!true && FindOCG("Layer 6").state==!true && FindOCG("Layer 7").state==!true && FindOCG("Layer 8").state==!true && FindOCG("Layer 9").state==!true && FindOCG("Layer 10").state==!true && FindOCG("Layer 11").state==true && FindOCG("Layer 12").state==!true && FindOCG("Layer 13").state==!true && FindOCG("Layer 14").state==true && FindOCG("Layer 15").state==!true && FindOCG("Layer 16").state==!true && FindOCG("Layer 17").state==!true && FindOCG("Laye
Hello, all you wonderful people who know far more than I do about scripting and everything else. Completely upront, I know nothing about computer language or Javascript, but I can follow directions and figure some things out. At work, I get a single pdf with about 500 pages of information. Each page needs to be extracted and then renamed based on the content of the file in two locations on the page, which I am currently doing manually. These two locations, the position number field and the employee name field are in a consistent location across all the pages. I was hoping that someone might have a script that I could use to automate this process, being it's so time consuming and tediuous. I tried to get the Evermap Auto-Split plug-in approved for use, but requisitions for new software won't be open until June of next year. If anyone can help me, I'd be eternally grateful. I'm sure it's not a difficult script, I just do not speak the language, and after trying a few times to f
I have created several types of buttons that launch a javascript that will place a certain type of comment on the PDF. Rectangle, Circle etc.However, I have not been able to find a reference for the Text Call out drawing object My script for basic rectangle//Add a Comment/Squarevar annot = this.addAnnot({page: this.pageNum, type: "FreeText", rect:[487, 668, 87, 243], strokeColor: color.red});What should the Type be for a Text call out and how many coordinates should it have?Thanks
Hello All, I have created a Wholesale Pricelist that has all of my SKUs listed, dealer cost, MSRP, QTY that you want to buy, then I have a column for the total per item, that will later add up to an expected grand total. What I need your help with is how do I multiply the fixed dealer cost field (position is column 6 for each line) by the variable QTY field (column 😎 to get a total (column 10) for each line? Thanks in advance!!
I'm running the following code and my for loop is aborting at * n=42 *Can anyone see why? var f = this.getField("cbEdit");var n = 0for (var n=16;i<=112;n++){app.alert(n);if(n<70 || n>71){{s=n+"";if(f.isBoxChecked(0)){this.getField("CBR"+s).display = display.visible;this.getField("CBV"+s).display = display.visible;this.getField("CBM"+s).display = display.visible;this.getField("Post"+s).display = display.visible;}else {this.getField("CBR"+s).display = display.hidden;this.getField("CBV"+s).display = display.hidden;this.getField("CBM"+s).display = display.hidden;this.getField("Post"+s).display = display.hidden;}}}}
I have a PDF form that has 5 lines. 4 of those 5 lines are hidden. If the user wants to add a line, I would like them to click on the button that says "add line". When the user clicks on the button, a new form controls is visable. Right now I have the 5 form controls in the form and 4 of them are hidden. I'm just not sure what the javascript is to allow 1 button to be clicked multiple times to do the same action. Can someone help me with this please?
Is there no option to create action to split PDF by top level bookmark and use bookmark names for file names? It's just button clicks on a built in feature in acrobat. nothing fancy.
Have a form that I use for signing up contractors for a yearly program. While the yearly signup begins 3/31/xxxx, I may sign them up during the year and it is a prorated fee based off the difference of what date they signup before that 3/31/xxxx date. Also we deduct one extra month from the time period and that is their fee. Example:3/31/2021 - 9/10/2020 = 6 months - 1 month = 5 monthsBoth dates have a place on the form along with the final 5 months which shows as a number. Looking for the code to do the math on my form. Tried some Java Code i know and it isn't working out.Thank you for looking at this and any help you can contribute.
Hi all and thank you for looking. I'm experiencing a peculiar issue with a custom validation script where anytime event.rc is set to false upon validation failure, the page switches to the first page in the document. Background:5 page document, relatively field heavy on all pages except the first one (intro, instructions, etc).There are a series of date fields each of the subsequest pages. Each one has the exact same generic validation function (event is passed into it). Upon failure of date validation and when the function sets event.rc to false, the document returns to the first page (always). Oddly enough, this only happens from the second page in the document. When the same validation script sets rc to false on pages 3, 4, and 5, the document stays put on that page. I've removed any calls to functions from custom validation and simply set "event.rc = false". Sure enough, when this is done on page 2, the document scrolls up t
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&colon;// 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
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
¿Ya tiene cuenta? Iniciar sesión
¿Aún no tienes una cuenta? Crea una cuenta
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.