Unlock the power of Acrobat SDK through our community.
Recently active
I need a script to calculate the nth day of the year. I would like to input a date on a form, and then have a script in a different field that takes that date and tells me the nth day of the year for the date I input in the other field. Example: I would like to input May 31, 2019 in a date field and the in another field put on the script which would using that date and show the number 151 in this case. I have searched the net and found some discussion but nothing that works in adobe. (they go on and on about time zones and leap year etc.) I just need something simple that works in adobe.
I have a plug-in I am porting back over from PDFLibrary to Acrobat.The plug-in modifies the color of every object on the page that has a color attribute: vector, gradients, images, etc.It works great in PDLibrary and has for many yeas now. In Acrobat, the same process never updates the window until I save the document.The pattern I use iterates through pages like this: PDPage page = PDDocAcquirePage(pdDoc,i); ModifyObjects... PDPageNotifyContentsDidChange(page); PDPageRelease(page);At the end I call:AVPageView pageView = AVDocGetPageView (avDoc); AVPageViewInvalidateRect (pageView,NULL); &nb
Is there a way to add a javascript that merge the data from the file and save to a specified file upon signature?
Hello,I am having an issue with a section of my code which I have tried nearly EVERYTHING I can think of to correct. I have a form which is being used as a Vacation request form. On it I have two date pickers which matter:Start Date --> Date_5End Date--> Date_6I am trying to calculate the difference in days between these two dates factoring out Holidays (which are stored in an array) & working weekends (also stored in an array) and Weekends (which I have set in an Array of two values "SAT" & "SUN"). For right now my employer does not have a need for working weekends but it has been discussed (time in lieu etc) so it was important that it is there as an option. When I get my start date and end dates captured (code block 1 below) and have them run through the function (getDateArray) something VERY odd happens. The formatting I want is perfect BUT the start date gets bumped "up" one day and thus all of the calculations are wrong.EX:I select May 27, 2019 as my start date. I t
How would I write the formula in adobe?Message was edited by: Malcolm Thomson
How to create date-picker using JavaScript in Acrobat DC Pro?The date-picker should be in this format: dd.MM.yyyyKind regards
Is there a way to display the cExpr (JavaScript function has been assigned to all of them) of all of the bookmarks?I am printing all my bookmarks in the panel which looks like this...for (var i = 0; i < this.bookmarkRoot.children.length; i++) {console.println(this.bookmarkRoot.children.name);var bk = this.bookmarkRoot.children;for (var j = 0; j < bk.children.length; j++) { console.println(bk.children.name);}}So how can I display the JavaScript that is assigned to each bookmark?
Is there a java script I can use to insert an attachment into pdf. I am working with thousand of files and I have to manually insert all the attachment on each of them. Thanks in advance
Hello, I am trying to deactivate series of fields on a form when a box is checked no. I'm a novice with Javascript and have been successful with coding formulas for calculations but I can't seem to figure this out. Are you able to help? Thanks! Christy
Is there a way for me to create an Excel spreadsheet and use it to fill in information on a pdf form and have it linked so that the template updates if the spreadsheet is updated?For instance I want to be able to select a lot and block from a community and have it fill in the FEMA community name, the FIRM panel, index date, revised date, flood zone, and 100 year flood plain. Then later if the index date or revised date of a panel change be able to change them in the spreadsheet and have the template reflect that change but I don't want any of the files that were created before the change to update. Perhaps auto mail merge would work?
HiI am having a pdf form that includes three cells:start Timeend TimeDurationThe user will enter the start time and end time in HH:MM and the file will calculate the duration In HH:MMI want your help in building a JavaScript code because I need the file but my skills are basic in JavaScrip. Name of the cells are same as mentioned on the top.Thanks in advance.
I have the following script. This script concatenation the first and last name into one field. When i run the application the first and last name are filled in. The new field shows up blanks. After opening the calculated function and closing it the data appears in the new field. I need the calculated field to appear when I run the application.var s1 = this.getField("insured.fields.first_name").valueAsString;var s2 = this.getField("insured.fields.last_name").valueAsString;event.value = s1 + " " + s2;Message was edited by: Malcolm Thomson, updating title.
I'm attempting to create a custom calculation script with an if statement, a check box, and other fields to be added.My current code is below below: var cTX_CHKBOX = this.getField("TX_CHKBOX").value;var nTOTAL_PREMIUM = this.getField("TOTAL_PREMIUM").value;var nOUR_PREMIUM = this.getField("OUR_PREMIUM").value;var nTOTAL_PREMIUM_UCC = this.getField("TOTAL_PREMIUM_UCC").value;var nOUR_PREMIUM_UCC = this.getField("OUR_PREMIUM_UCC").value;var nESCROW_FEE = this.getField("ESCROW_FEE").value;var nCPL_FEE = this.getField("CPL_FEE").value;var nFEDEX_FEE = this.getField("FEDEX_FEE").value;var nSEARCH_FEE = this.getField("SEARCH_FEE").value;var nRECD_FEE = this.getField("RECD_FEE").value;var nTRANSFER_TAX = this.getField("TRANSFER_TAX").value;var nTIEFF_FEE = this.getField("TIEFF_FEE").value;var nMISC_CHARGE_FEE_I = this.getField("MISC_CHARGE_FEE_I").value;var nMISC_CHARGE_FEE_II = this.getField("MISC_CHARGE_FEE_II").value;var nADDL_FEE = this.getField("ADDL_FEE").value;if ( cTX_CHKBOX ==
I am exploring SDK samples, where I have found a sample code to extract image info using PDDocEnumResources API which is calling callback procedure with Cos obj, as per sample code it is easy to extract image info of XObject as mentioned in this screenshot but how to extract this Image Stream from CosObj ?
Hey. I'm quite illiterate when it comes to Adobe Acrobat, but now I have to create a form. First obstacle, how can I use a checkbox (i.e. tick checkbox action) to show text? (actually both just text but also text and form). Is there a way to do this? is it dynamic enough to do this or shall I just give up. Objective is to have one form for different audiences, and some information should be visible to those who tick the checkbox, for those who don't should only see limited text and forms. Maybe there is a really good tutorial for this, or video?I have figured out how to create forms and that was easy enough. I also found some javascripts that may work?:var f = this.getField("chk2");if(f.isBoxChecked(0)){ this.getField("teamset2").display = display.visible; this.getField("member2").display = display.visible; }else { this.getField("teamset2").display = display.hidden; this.getField("member2").display = display.hidden;}BUT - i don't even kn
Bought Acrobat XI a few weeks ago for my wife (it is the version she needed). Did a clean install on a new machine and activated properly, no problem. It has worked exactly as it should.Tonight she did something really horrible, she accepted to do an update. At the end it failed, unable to reach the Adobe server to activate. Troubleshooting, it seems that it cannot reach the Adobe server. I tried on my machine and I couldn't reach it either; it is refusing connections.Was this intentional, a way of killing older versions of Acrobat? She can't use the newest one, it must be XI pro. Does the server still exist?Does anyone know a workaround which will restore Acrobat XI on her machine? Should I delete it all and reinstall from the original CD? And tell her to NEVER EVER accept "updates"?
anybody have javascript code to simply add keywords to the open document from within an action? this.info.keywords adds all delimited words as a single string, so I'm looking for code to set the XMP property dc:subject with a list of words. thanks!
Boa tarde pessoal.Tenho a necessidade de interromper, via javascript, o evento do documento "O Documento será Salvo", mas não sei fazer esse processo.Alguém pode me ajudar?Desde já agradeço.Abração,Paulo
I am making a very complicated form where the user has the option to add new users and make selections based off of selections on the static (non-spawning) pages. The first three pages are static, and the last two can be spawned (in order) unlimited times. The selections made on the first three pages can impact what is shown on the spawned pages (when new users are being added). I am currently struggling to create a script where the fields updated on the new pages (as the name of the field has changed) to reflect any change (on the first three pages) that may be made after the page has been spawned. The form is able to use the logic on the dynamic pages as the field name has been updated, but it does not work when the fields on the new page need to be based off of the static (non-spawned) pages. Any help here would be greatly appreciated.
I have the following code:var jp = {};jp.flowState = 'ST_PendingPDFupload';jp.pressedButton = 'S_Submit1';jp.F_Value1 = this.getField("F_Value1").value.toString();var UID = this.getField("UID").value.toString();var urla = 'https://domain/forms-basic/secure/org/data/ba48a093-5a1d-40ef-87f6-bb196b95fa9f/F_NewForm1/';var urlb = '?freedomIdentifyKey=55';var url = (urla + UID + urlb);var http = new HttpClientRequest(url);http.header["Cookie"] = "freedomIdentifyKey=55";http.header["Content-Type"] = "application/json; charset=utf-8";http.header["Accept"] = "application/json; charset=utf-8";http.body = JSON.stringify(jp);http.method = "PUT";http.connect();http.execute();http.dispose();http.disconnect(); I am getting an error in Acrobat of: ReferenceError: HttpClientRequest is not defined. I believe I need to add something like: loadLibrary("nms:amcIntegration.js");But I am not sure what the library is.
I have used the following code to change the colour of a text field in a PDF form depending on the value entered into that field.var v = +event.value; {if (v>=1 && v<=5) event.target.fillColor = ["RGB",0.537,0.776,0]; } Can anyone suggest how I can modify this code to change the colour of another field?I want to change the colour of field "Text453" depending on the number entered into field "RISK"(I have posted this question on another forum.)
Hello , Im using c++ sdk , I've created function to create the 3d annotation with embedded data ( my embedded data is GLTF file 😞ASBool EmbedDataTo3dAnnot(PDPage pdPage, PDAnnot theAnnot, // 3D annot ASPathName GLTFPathName, // ASPathName to the U3D file ASPathName* asPosterPathName, // ASPathName to the poster file const char* strJsFileName) // Path to the JavaScript file{ CosObj cosAnnot = PDAnnotGetCosObj(theAnnot); CosDoc cosDoc = CosObjGetDoc(cosAnnot); ASPathName jsPathName = NULL; ASBool bRet = true;DURING // *** Create the required 3D stream dictionary // Open data file ASFile asGLTFFile = NULL; ASInt32 iRet = ASFileSysOpenFile(ASGetDefaultUnicodeFileSys(), GLTFPathName, ASFILE_READ, &asGLTFFile); if ((iRet != 0) || (asGLTFFile == NULL)) { AVAlertNote("error opening 3D data file."); E_RETURN (false); }&nbs
I am having issues setting my submit button to send a Flattened copy emial. I tried some javascripts codes and none seem to work. can someone help me please?
Hi all!I figured out the crossed-off issue (field calculation order), but still have one I'd like to tackle. Once I designate my "1" on my calendar, all the numbers fill in beautifully, but I need it to stop on a certain number without filling in extra spaces (i.e., August ends on the 31st, so I'd need the numbers to stop at 31).Any help you can give is greatly appreciated! Keep in mind, I'm 100% new to this! It's all Greek to me.Thank you for your time!LeahI found what I thought to be the solution I needed in a thread from years ago. I have a blank calendar template that I'd like to push out onto my iPad without having to manually fill it in each year (I'm a teacher and hate purchasing calendar/planners each year as well as the legwork I've been doing by manually filling in my own digital ones). The issue I'm having is that the following script works for the first two numbers, then the string stops. I checked to make sure everything was named correctly and that the custom calculation
Hello Forum,I was assigned a task, and although I can think of other ways to do this, it is the preference of my employer. Basically, I need to write code that will add a menu option for printing. The user will tab to the menu, select "Print Signature" and the code will save the document as a jpg and then save the jpg as a pdf. This is to make the signature more natural looking.The question I have is this: Can JavaScript code be made persistent? That is to say, when my employer opens the document, will the menu item be there every time, or will he have to reinstall the JavaScript every time? Is JavaScript something that IT will have to deploy, or can my employer click a button and add the menu item?Also, can this task be accomplished with JavaScript, or will I have to cozy up to some C++ tutorials?Thanks in advance. I am excited to learn more about Adobe.Best,Justin Lawrence
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.