Unlock the power of Acrobat SDK through our community.
Nyligen aktiv
Hi,I need a script to print out page 1-6 three times and page 7 one time. I have made a button with the following script:this.print(true, 0, 6);this.print(true, 0, 5);this.print(true, 0, 5);How can I make this into one code to avoid the print window (ctrl + P) to appear three times?Jenny
Hi,I have a field called «ID.number» where the users fill inn a number. The number contains a birth date and five other digits and will always be in this format: "DDMMYY00000". I want to extract the birth date from the field and add it to a new field called «birth.date.» The output should be: dd.mm.yy (or dd.mm.yyyy) Can anyone help me with a script so I can extract the numbers and add punctuation marks between the digits? (I do not usually work with javascript)I have managed to get the first six digits in the new field, but I do not know how to add punctuation marks. Right now I only get «DDMMYY» instead of «DD.MM.YY». This is my current script:this.getField("birth.date").value = event.value.substr(0,1)this.getField("birth.date").value = event.value.substr(0,2)this.getField("birth.date").value = event.value.substr(0,3)this.getField("birth.date").value = event.value.substr(0,4)this.getField("birth.date").value = event.value.substr(0,5)this.getField("birth.date").value = event.value.su
Hai i have been converting a decimal number to english word using below script. Is anybody help me to convert the same to arabic word ?var th = ['', 'thousand', 'million', 'billion', 'trillion'];var dg = ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine'];var tn = ['ten', 'eleven', 'twelve', 'thirteen', 'fourteen', 'fifteen', 'sixteen', 'seventeen', 'eighteen', 'nineteen'];var tw = ['twenty', 'thirty', 'forty', 'fifty', 'sixty', 'seventy', 'eighty', 'ninety'];//-------------------------------------------------------function num2String(s1) { var num = s1.toString(); var s2 = num.split('.'); var decPoint = ''; var lang = ''; if (s2.length > 1) { if (s2[1].length == 1) s2[1] = s2[1] * 10; if (getField("ddlDebitCurrency").
HI,I want to use app.activeDocs to detect when there are no more active pdf's. I tried putting:if (dd.length == 0)if (dd.length == null)if (dd.length == false)if (dd.length <1)if (dd.length !=1)into the following code:{ app.beginPriv();var dd = app.activeDocsif (dd.length ==0){app.alert ("hi")} app.endPriv(); });Note I cannot use folder level scripts as I am unable to get permission to put on user's computers.Using Acrobat X Pro
Need help writing a custom calculation script. The script needs to be written so that if "Field1" = 80 and "Field2" = 10 then it returns John, but if "Field1" = 99 and "Field2" = 75, then it returns Jane.I tried using some other scripts that I found, but they wouldn't work. It would usually just always return the value of my first "if statement" regardless of whether it was true or not".Also this is for Acrobat Standard DC.Thanks!
Hi,I want to change the color of the highlight color and found this script, but the only colors I get to display are the ugly yellow, green, blue and white. What is the correct way of adding f.e. rgba(,244, 109, 45, 0.5) instead of yellow?app.runtimeHighlight = true;app.runtimeHighlightColor = color.yellow;
I would like to create a popup pdf form withing a pdf document. The popup will be visible when a user click form, after completing the popup form to submit via email. Any ideas? and what software will allow me to do thins. Thanks a bunch
I want to convert scanned pdf (images) to pdf files. Do we have any sdk / api for Adobe Document Cloud which I can use to call the 'Create PDF' service
Hi,I have a batch labeling action wizard which stores the starting document # in a global variable as "global.dnum". The default start value is 1 (e.g., document 1). I noticed if the user does not completely close Adobe Acrobat after labeling a batch of documents and then starts the action wizard again to label the next batch of documents, the action wizard skips the first document and instead labels the 2nd document with document 1 instead of document 2. My guess is this happens because the global variable needs to be reset. How can I force a reset/refresh of global.dnum so the user can label a set of say 10 documents and then label another set of 15 different documents, etc. without having to close Adobe Acrobat to ensure the right starting document number of 1 for each batch of documents?Using Acrobat Pro IX.Thx.Sue
I've created a numerous amount of check boxes to populate a sentance in one main text area. I have this basic code used under Custom Calculation Script: ------------------------------------------------------------------------var a =""if (this.getField("sample text").value =="Yes"){a=a + "R - sample text. "}event.value=a------------------------------------------------------------------------When i go to the main text area that contains that code and i click in it...i see the populated sentance i wanted, but what i want is to add more text to it....when i try to type in..it shows up fine, but when i click out of the text area, it disappears...i need it to stay.please help.
Hoping someone can help me...I have a adobe form with a text input field alongside a checkbox. I want my javascript to basically do the following: check the number inserted by the user into the text field and then spawn template pages (amount equal to that of the number inserted in the text field).This is the code I have so far however it is not working, can someone tell me what I am doing wrong? (by the way, the code is inserted as a mouse down action on the checkbox). The name of the text field is "buildingsNumber" and the template name is "buildings".var bAmount = document.getElementById("buildingsNumber").value;var t = this.getTemplate("buildings");for (var i = 1; i <= bAmount; i++)t.spawn(i, true, false, XO);
Hi,I've created a PDF form with yes/no questions. In the last field I want to see the summary of the amount of 'ja' (= yes) answers.The field ID's range from Tekstveld 1 (= Text Field) to Tekstveld 37, with no. 38 as the 'total' field.I've found a Java code and tried to edit it to my needs, but I'm not getting it...// Initialize counter variablevar sum = 0; // Loop through the fieldsfor (var i = 1; i < 37; i += 1) {// Add one if Teksveld is set to ja if (getField("Tekstveld" + i).value !== "ja") {sum += 1;}} // Set this field's value to the sumevent.value = sum;Can someone help me to get it right?Thanks!
I've created a button that uses JavaScript to add a template page to the end of our document. The button works, but it is greyed out. I titled the button "Additional Page", but the button is solid grey with no font. I've checked and the fill color is grey and the font color is black.I'm not sure what to do!! I'm not familiar with JavaScript - found the code online, so detail is appreciated.This is the code I'm using. var a = this.getTemplate("Page 5");a.spawn();In Prepare Form Edit mode, the text shows up, but it doesn't in Preview mode.
I have a field that a person enters a value into. The value has to be entered as a value of 0.5 or 0. For example:12.0012.5013.00Those values are acceptable. A value of 12.25 is not acceptable. Is there a way to basically not except a value that does not end with a .00 or a 0.50 and just leave the field blank if the operators enters something other then this?
Can someone tell me how to have a number format and a custom format script? I am using this script to put the feet hash mark when I enter a number. Like so,AFNumber_Format(0,0,0,0,"\'",false); The thing is I cannot set the number format so I can only enter a number if I use this script. If I don't use this script then I can set the number format but then I lose the feet hash mark. I can only use one or the other formats. Is there a way I can have both? At the moment I only have this script in the custom format script pane window. So then, I can enter text in the field. Not what I want to do. Can someone help? Thanks.
I'm sure there's an exceedingly simple answer I'm missing, but I can't seem to get this to work right. All I want to do is subtract 2 from the sum value if the radio button ABCs is marked "NA" but it seems that no matter what I do, it still displays 8. Name: ABCsRadio Button Choice: NAHere was my best shot:(function () { var sum = 8;if(ABCs.value == "NA"){sum = sum -2;}else {sum = sum;} event.value = sum;})();Thank you for your help!
Can someone tell me how to write a calculation script for this. Im adding my "Dental" field and "Health" to get the "Total", Then to the right, there are two fields for "6100" and "1150" (just accounting codes). Anyway, If the "Total" is $784.96 or something, how can i make the first $300 go in the "6100" field and the remaining balance go into the "1150 box? Thanks Guys!
I've used the following code in VBA for years since Acrobat 9. I had a new user of the application that had Acrobat 2017 Standard installed and it doesn't run the scan command.Set gpdfApp = CreateObject("AcroExch.App")gpdfApp.MenuItemExecute("Scan")I did some debugging and I could make the MenuItemExecute("Scan") work if I opened a document in Acrobat first but it doesn't seem to work right when Acrobat launches. Is there any code I could add/change to make this work for me?
I have created an Acrobat Plugin using Visual Studio 2013 and C++.In that plugin, I am doing the following:Create a new PDF documentUse AVConversionConvertToPDF and PDEElementCopy to create a PDEImage ( I repeat for 2 images: a 1-bit monochrome TIF and an 8-bit grayscale TIF) Use PDEContentAddElem to add the images to a new document.Save documentThe saved document has the 2 images with the proper values (bit depth, dimensions), except for 'Filters'. The 1-bit monochrome image shows JBIG2 as a filter, but I want to use CCITT.Can I change the compression for a PDEImage element before I save the PDF file?Note: I am not using PDEImageCreate because AVConversionConvertToPDF handles all types of image formats already. The resulting PDF file is fine, except for the image's compression.
Hi Expert,I am new to IAC development, I have written one c# utility which will take pdf and extract the annotation from it and save it to some local drive.Below is my code:______________________________________________________________________________________________________ String fileName = "D:/test.pdf"; Acrobat.CAcroPDDoc pdDoc; pdDoc = new AcroPDDoc(); if(pdDoc == null) throw new Exception("Failed to create Acrobat PDDoc object."); // Open the source PDF document &nb
Hello Everyone,I have two fields on a form that are used as a start and end date for a temporary duty which is normally 10 days. I have a script that automatically enters a date into the end date field which is 9 days after the start date field. I would like the user to be able to override and enter a different date if the temporary duty is going to be less than 10 days. Below is the script I entered into the End Date field:var date= util.scand("dd mmm yy", this.getField("PTDYStart").value;date.setDate(date.getDate()+9)if (this.getField("PTDYStart").value!=""){event.value=util.printd("dd mmm yy",date)}else{event.value=""}I welcome any and all assistance with this.
Hi. I am currently making a time sheet in Adobe Acrobat DC which requires a unique reference number everytime a new person fills it out and sends it in. I have tried several things and besides setting up a database the pdf can connect to and extract a new number from which wasnt used, this is what i came up with.I made a button you can click on "LøbenummerKnap" (sorry for the danish), when clicked it fills out my field with a new random number which is based on time. And it works.My problem is that i need it to be as short as possible but still guaranteeing the next number is unique to what have bin given earlier.This is my code on the button:var d = new Date();//Divide by 100 to get milisecondsthis.getField("Løbenummer").value = Math.floor(d / 100);So every milisecond a new number is assigned to my "Løbenummer" field if the button is pressed. The odds of anyone clicking the button at the same milisecond is very very unlikely, but my boss still wants the number to be shorter for furthe
I'm sending a POST to a server. I noticed, using fiddler, acrobat sends the request twice. Once without the authentication headers and one with the authentication headers. I have two servers, a test server, which sends back a realm with the 402, and a prod server that has no realm. Acrobat will send the request again with the proper auth headers for the test server (i think because there's a realm), but will not send another request to the prod server, I'm assuming because it lacks a realm.I can't find any other reason for this except to assume acrobat wants to know what realm the auth will be used in. I tested this in POSTMAN, it works for both servers, but the authentication header is sent right away (no need for two calls).
HelloJust updated to the 2016 Office 365 and in all modules, my "adobe pdf" add on's has dissapearedAny idea how to get these back? Tried a re install of Acrobat with no effectCheers
I currently have the following java script in a adobe pdf to perform calculations. One of the problems I am running into is the form is performing the calculations live. I do not want the calculations to be performed till values are entered. So currently the 3 text boxes are "Neck1", "Neck2" and "Neck3". Once values are entered into these boxes I would like to perform the average calculation. Any help would be appreciated. I am not experience with JavaScript so please be very detailed with answers. // Custom calculation script (function () {// Get the field values, as numbersvar v1 = +getField("Neck1").value;var v2 = +getField("Neck2").value;var v3 = +getField ("Neck3").value;var nTotal = (v1 + v2 + v3)var nAverage = (nTotal / 3)var nRounded = Math.round(nAverage / .5)*.5;event.value = nRounded; })();
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Har redan ett konto? Logga in
Har du inget konto än? Skapa ett konto
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.