『アドビコミュニティフォーラム』に質問/トピックを投稿する方法
Unlock the power of Acrobat SDK through our community.
新着順
I have a loop to iterate through all of the fields and copy them from a target pdf to the current pdf. This currently works well with manually calling the fields, and with console.log within the loop. But as soon as the field.value is updated with the field.value of the other pdf the software crashes (infinite loop?). It even crashes if the field.value is manually set for all fields. I must be missing something simple..Here is my code: thisDoc = this;var docName = app.browseForDoc();app.openDoc(docName.cPath);var d = app.activeDocs;var thatDoc = d[d.length-1];var i = 0;while (i<thatDoc.numFields){var oldName = thatDoc.getNthFieldName(i);var old = thatDoc.getField(oldName);if(old.type == "text"){ if (thisDoc.getField(oldName) != null){ var cur = thisDoc.getField(oldName)cur.value = old.valueAsString; }} i++;}thatDoc.closeDoc();Any help would be appreciated.
I need to create a BUTTON in a form, that toggle between showing and hiding a set of extra form fields.but in the BUTTON properties window, I don't find this option:((I saw this image in an article :
Need Java Script for Calculation of Number Days between 2 dates. Using Adobe Acrobat Pro DC and creating a fillable form.MatDate1 - IssueDate1 = Number of DaysThanks!
Of the many many many issues with scripting issues there are with writing code in Acrobat, this one I have not found a work around. How are we supposed to find the inner document window rec when none of the window rec functions work?
Summary: I need a drop-down menu to populate with numbers that a client will enter themselves from a previous page in fillable forms. Is this possible? Is it possible if i make it all on one page?Context:Page 1 of the PDF is a fillable form. I sent this to clients, where they fill in some forms including their Account IDs. This could have anywhere from 3 to 100 answers put into it depending on the client it's being sent to. For example: say the group is Coca Cola and they have 45 accounts. Each account will be here with a unique account number.On the next page, the Account ID's need to all auto-populate into a dropdown menu. Is this even possible? I have this working in excel, it grabs a section of rows (b7 through b107) and auto-populates the list depending on what's entered in those areas. Keep in mind: I did NOT set up this excel sheet, i've been tasked with designing it and updating to PDF for easier use... I cannot manually put in the drop-down menu as it will be different for eac
Currently I've designed a form with text fields whereby I can either type in "Not applicable" or numerical values. However, the default formatting does not cater to my requirements. Can anyone kindly guide me in regards to formatting using Javascript as I'm totally new to Javascript?
Is there a way to interact with COM/OLE, specifically the AcroExch.app function, without the need of a full Acrobat Pro/Std installation?If not, is there any licensing specifically allowing these actions? Or I need a full install of Acrobat it should work.Thank you
Is there a way to automatically populate data from the field you just entered into? When you click the second field, it will populate the data from the first field. If you don't click the second field, it will remain blank. If you delete it, the first field won't be affected.
I use to be able to create a fill-in form, it would keep a copy of the forms I filled out when I selected to fill a blank copy, Adobe would keep the previous forms in the same file. It would act as a database keeping all the information in chronological order. I was also able to search the form's fields in all the transactions. How do I save created forms with this feature or is it no longer available?
I'm working with two date fields. When a date is entered into the first field(LeaseStart_af_date), I need the second field(BillStart_af_date) to display the 1st day of the month following.So, if Lease Start date is 11/07/2018Bill Start should be 12/01/2018I'm using a custom calculation script for BillStart_af_date but it is not calculating. The field 'LeaseStart_af_date' does not use any calculation. Neither field is validated. Both fields have format set to 'Date mm/dd/yyyy'. I'm sure its an error with my script. Any help would be appreciated.var d = util.scand("mm/dd/yyyy",this.getField("LeaseStart_af_date").valueAsString);if (d.getMonth() == 11) { d.setMonth(0); d.setFullYear(d.getFullYear() + 1);}else { d.setMonth(d.getMonth() + 1); d.setDate(1);}
I am trying to import mark-ups based on the value of a dropdown on the page.I currently have the import script as a toolbar button. I have several different pre-made styles and need the dropdown "RISER_TYPE" to import the mark-up associated to the value when selected. EXAMPLE if "RISER_TYPE" dropdown = "example value-1" then IMPORT("C:\PDF MARK UP TEMPLATES\TEMPLATE-1 REV 1.0.bax" , if "RISER_TYPE" dropdown value = "example value-2" then IMPORT("C:\PDF MARK UP TEMPLATES\TEMPLATE-2 REV 1.0.bax"))
I am very new to Javascript. I am trying to get a field to display a value of one of two other fields based off of a third field results. I cannot find what is wrong with this script.var v1 = Number(this.getField("Built on Site").value);var v2 = Number(this.getField("BOS Total").value);var v3 = Number(this.getField("Text10").value);if (v1==1) {event.value = v2;}else {event.value = v3;}
I'm using Acrobat 2017 on a Windows 10 machine and trying to automate some functions on a PDF form. I have been reading the forums and I'm not even sure it is possible now. Could someone on this forum please save me some time and tell me if this even possible so I can drop it if I can't even do it?1. Save the data from the PDF form to an Excel spreadsheet to a specified location on a SharePoint server.2. Flatten the file and save the whole PDF to a specified location on a SharePoint server.3. Save the file again to a dynamically set folder on a SharePoint server.4. Delete the original file from the SharePoint location it was opened from.I'm finding precious little in the forums to help me out, so if there is another way to get the same results with different actions, I'd be happy for that advice too.Thank you all for the time you put into these forums to help people like me!
Hi, in my form one radio button group available. so what i want is, if i select first radio button, another check box should automatically select. if radio button not select then checkbox should empty. pls give javascript to manage this work. i'm using adobe pro xi. thanks in advance. thanks..
Hi, I am trying to deduct the number of days from two calendars i.e. TodaysDate - OriginalDate = TotalDays iI am looking for the java script, thank you.
I'd like to change the current values of 12 numerical text fields on the mouseup of a button. I've tried defining variables and saying the variable value equals itself + or - the change, creating a temporary variable and assigning a value to it and systematically changing the values of each, creating functions, etc. Here's my script worksheet with everything I've tried. the last has a document level function. The simple "variable = variable + number" almost works but it only seems to apply the math to the last line and not the other three...lines 17-20 do this...ignore all the note markup when analyzing code, that's only so I didn't have to delete things that didn't work.What am I missing?/*var j9opi1 = this.getField("j9-opi1").value;var j9opi2 = this.getField("j9-opi2").value;var j9opi3 = this.getField("j9-opi3").value;var j9opi4 = this.getField("j9-opi4").value;var j9opi5 = this.getField("j9-opi5").value;var j9opi6 = this.getField("j9-opi6").value;var j9opi7 = this.getField("j9
I can't open any pdfs because of all the popups ... see below. HOW DO GET RID OF THESE!!! Can't get any work done and I'm on a deadline ... HATE THIS!
I'm not a java guy, but I've gone over the internet threads and couldn't find the exact fix to my problem. I'm using acrobat pro dc. I'm using a text field formatted to number with the following calculation:(A+B+C+D)/4 in the simplified field notation.I now need this calculation to always round up to the highest integer. Here are a few examples:12.1=1312.5=1312.9=13etc.From what I've read, everyone says to use Math.ceil(); however, I cannot enter an actual number with Math.ceil() since I don't know the numbers because it's calculating them based on user input from other fields.I believe it has something to do with inputting the following math equation:( x + y - 1 ) / yI just don't know how to implement it. Also, does it matter if I have number set to 0 or 2 for decimal places if I'm just looking for the higher integer?Any custom calculation or validation scripts I can use to fix this? Thanks!
I would like to apply simple password to a PDF that's created using VBA. Can this be done using Adobe SDK?Anyone has sample code to share? Thanks heaps .[Question moved to the Acrobat SDK forum. -Mod]
Hi. I have created a form in Acrobat Dc using form fields to input data, then finalised by initiating an actional button to make content 'read only' which was configured using a java script with mouse up action. This form is saved in an EDRMS as a template to allow the end user to raise automatically in their respective folder to submit for approvwl. When tested by a user that has adobe pro dc installed this works well and releases automatically once the form is completed and made read only by iniating the button. However if this action is completed by a user that only has Adobe reader, the form will launch another 'save as' window which will require saving the form through navigating back to their folder to save, even though the original form (generated by the template) is still in edit mode. Hope this makes sense, appreciate any assistance. Regards Annemarie
I posted about this form a couple of weeks ago, and am still having trouble trying to figure out where my console errors are coming from.It seems that most of my errors are stemming from three doc-level functions that I use often and in many different forms. I have never received error messages from these functions before. The functions are:function no_zero() { if (+event.value) { //$ format for nonzero values AFNumber_Format(2,0,3,0,"$",true);} else { //Don't show anything if result is zero event.value = ""; }}function percent_zero() { if (+event.value) { //$ format for nonzero values AFNumber_Format(2,0,0,0,"%",false);} else { //Don't show anything if result is zero event.value = ""; }}function round(
Hi - I'm new here. I usually just google when I can't figure something out but I can't find a close enough scenario for me to figure this out. I'm not a pro at java or scripting - I'm self-taught; this is how I learn - so bear with me.i have a form that calculates mileage reimbursement amount (miles multiplied by reimbursement rate) but I want the user to select a radio button for either "regular" or "relocation" because the reimbursement rates are different for each. How can I get the subtotal field to use the reimbursement rate related to the corresponding mileage type?I'd appreciate any ideas.
I have been searching the forums for hours but cannot find a solution for this, which seems like it would be more simple than much of the questions I have been looking at. I do not have much experience with running scripts in Acrobat, but I am willing to learn. I have seen many forum answers referring to "LiveCycle", but I don't think I have that. I am running Adobe Acrobat CC and all is up to date.I want to create a fillable PDF where there is a dropdown menu that populates its options with the text from text fields earlier in the document that the user fills out. Is this possible?
I'm having this weird issue saving documents. I have about 50 .rtf documents that I need to convert, now If I open them in Adobe they will be automatically converted to .pdf, but whenever I use my javascript line to save them to my folder, they are saved as As34d1.tmp.pdf, I'm confused as to why it's doing that, I want to save the .rtf document I opened and converted as the same filename? Please assist, code belowthis.saveAs({cPath: "/fileserver01/itshare/EDM/rtf/work/"+this.documentFileName+".pdf"});[Here is the list of all Adobe forums... https://forums.adobe.com/welcome][Comments is to ask about the operation of the Forum, not a specific program][Moved from the Comments forum to the specific Program forum... Mod]
I have a button where Ive set the action to submit the form followed by an action to clear the form fields. Is there a way to make the clear form fields conditional upon the 'submit' action actually happening (when required fields aren't filled the submit button fails but then clear the form as well!)
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
すでにアカウントをお持ちですか?ログイン
アカウントをお持ちではありませんか? アカウントを作成
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.