『アドビコミュニティフォーラム』に質問/トピックを投稿する方法
Unlock the power of Acrobat SDK through our community.
新着順
Hello. I am attempting to have 3-6 different text fields automatically populate with pre-determined information based on the user's selection in a drop-down menu. For example, my drop down will have Red, Blue, Green, Yellow. If the user selects Red, then Text1 will fill in Apple, Text2 will fill in Fire Truck, Text3 will fill in Rose and Text4 will fill in Tomato. If the user selects Yellow from the Drop Down, then Text1 is banana, Text2 is sun, Text3 is also banana and Text4 is lemon. I know it involves JavaScprit, but to be honest, I'm a novice when it comes to that. Any help would be greatly appreciated!
I'm using the fontWeight method to try to set the font of a text field to bold.I loop through all the fields, and let's say the field I'm looking to make bold is called "Number":loop{get name //cFieldNameget field of name //oFieldif(cFieldName == "Number"){oField,fontWeight = 700;}}in the javascript API manual it says fontWeight 700+ is considered bold, but when the script runs without errors, it doesn't change the font weight at all. I'm editing fontSize and textFont in the same script and they work, so it's not a question of the structure of the script, I don't think.
So let's say I have multiple instances of a text field, three in this case, all titled "Insert Date".I can see when I'm in the "Prepare Form" page, that the fields have number identifiers on them once there is more than one of the same namei.e.Insert Date#0Insert Date#1Insert Date#2I'm running some javascript script to set the font size of the field in question. I loop through all fields and set an if statement for fields named like the ones above:loop{getname // works as it should call this cFieldNamegetfield of getname // works as it should call this oFieldif (cFieldName == "Insert Date#0"){oField.textSize = 10;}}Unfortunately this sets the text size to 10 for all 3 fields, not just the specific one (Insert Date#0). It seems I'm not actually referencing that individual field. I absolutely need the field name to be the same. What can I do to achieve this?
var aNumFields = ["FieldA", "FieldB", "FieldC", "FieldD"];function Min("aNumFields"){ // n = number of fields that have a numerical value > 0 var i = 0; for ( var i = 0; i<aNumFields.length; i++) { var v = this.getField(aNumFields).value; if ( v != ) { n++; min = v; } }}event.value = minValue;I have changed this script around so many times I have probably made it impossible to correct, any assistance you can give would be greatly appreciated.
Is it possible to code a field to log each time a user saves changes or edits the fillable form?
I have been given a task to add a plugin in Acrobat. There will be an icon in toolbar and clicking on that will open an explorer. When user select some text from pdf document then a context menu should open with some options in it. And when user picks an option then selected text becomes the part of explorer. All the selections that user will make becomes the part of explorer in a tree view structure. Once user save the pdf file then it should be saved somewhere in header so that when file is viewed the Adobe Reader then all the selections remain visible in the form of tree view.Can I create a plugin that contains above mentioned features? If yes then what should I read?There are so many things that I need. I have started to look into samples that are provided with Acrobat DC SDK and able to run those with Acrobat. Any help would be highly appreciated.Thanks
Hello,I'm trying to create a script that splits a document at each bookmark, including any nested bookmarks, and naming the resulting files after that bookmark name. I've got the name and first page right, but the end page of the document is proving to be an issue for me. My code is as follows:var bkmN=[];var bkmS=[];var bkmE=[];function getBkmInfo(bkm, nLevel){ var s=""; for(var i=1; i<nLevel; i++) { s+="-"; } bkmN.push(s+bkm.name); // START PAGE ============== // ========================= bkm.execute(); bkmS.push(this.pageNum); // END PAGE ================ // ========================= bkmE.push(this.pageNum-1); // ========================= if (bkm.children != null) { for(var i=0; i<bkm.children.length; i++) { getBkmInfo(bkm.children, nLevel+1); } }}getBkmInfo(this.bookmarkRoot, 0);bkmN.splice(0, 1); // Removes bookmarkRoot infobkmS.splice(0, 1); /
I am trying to add two fields for a sum in a third field, but only if the 2nd field is a positive number. The two fields I am adding are: “Total Hotel Expenses” and “Total ASP Less Per Diem” to come up with a total in the field “Total Expenses Due”. But if the “Total ASP Less Per Diem” is a negative number then I want it to add it as 0. Any assistance would be greatly appreciated…Thanks Patrick
I am trying to get the following If/Else statement to work and keep getting the "Syntax Error: missing ; before statement 2: at line 3" error.// Get the value of the input field, as a numbervar Overall Performance Rating = this.getField("Overall Performance Rating").valueAsString); // Set this field's value based on the input valueif (Overall Performance Rating<=1.0) { event.value = "UnAcceptable";} else if (Overall Performance Rating>=1.0 && Overall Performance Rating<=1.99) { event.value = "Needs Major Improvement";} else if (Overall Performance Rating>=2.0 && Overall Performance Rating<=2.49) { event.value = "Some Improvement Required" ;} else if (Overall Performance Rating>=2.50 && Overall Performance Rating<=2.99) { event.value = "Average" ;} else if (Overall Performance Rating>=3.0 && Overall Performance Rating<=3.49) {event.value = "Significant Results"; } else if (Overall Performance Rating>=3.50 && Overall P
I am trying to print a PDF file on citrix . While printing, it looks for .xdp file only at C:\users\user123\AppData\Local\Temp. Is there a way to make Adobe DC JavaScript to look for .xdp file at different location. I am using below code to printvar pp = oDoc.getPrintParams(); oDoc.print( { printParams: pp,
Hello everyone! I could use some help with a PDF document script.Let me explain my document a bit...I have a Weekly Checklist for my management team and it's formatted as a PDF Form. It's about 19 questions where the manager has to chose either "Yes", "No", or "N/A" from a drop down box. Any response that would be an exception from the acceptable answer requires an explanation in the comment section text field. Example: For Question 1, if the manager selects "No" when it should be "Yes" they are required to explain why in the comment section. Once all of the questions have been answered, I have a Email button that currently only checks to ensure the name and employee number is present. Once that's validated (whether it's there or not) a dialog box opens that would allow you to send the document to me as a PDF. It then resets the document.Here's what I would like...I would like to have a custom validation script set up that checks each one of the questions for the appropriate response w
I'm new to any sort of modifications in Adobe, but have done some things in JavaScript so forgive me if this isn't possible to do. I can try to be more specific if i need.
Hello friends, I would like to ask everyone's help to solve an issue. I created a verification profile for my documents in acrobat. Would you like to run it through some script, would that happen? Thank you for your help.
how to use my purchased Acrobat writer standard XI dll to use in C# to read write editable pdf forms[Question moved to the Acrobat SDK forum. -Mod]
Good evening, I am trying to figure out a way to unlock all of the form fields in a document, I have looked around online for examples but couldn't find any. Any help would be wonderful, thank you!
Hi,Could you help me to solve this problem?In a pdf form: an element of a radio button group (not all of the group) to be hidden if an element of an other radio button group is checked.Thanks a lot,bj
Hello,I'm putting in some javascript (still new to Javascript as well) on a new interactive pdf form that requires certain fields to be filled in. Currently, I've tested having this javascript code placed within the Validate > Run custom validation script and Calculate > Custom calculate script:var fieldName = event.targetNamef = getField (event.target.name)if (f.value.length == 0 || !f.value.replace(/\s/g, '').length){ f.setFocus() app.alert(fieldName +" field is required. Please enter a value.") } Each has their own problem. Validate will only alert if something is entered in, if the user just tabs over or clicks in another field no alert is set off.Calculate, will fire off each alert when one of them is triggered, which seems a bit annoying. Any suggestions to get this to work withou
hello can you execute javascript in acrobat dc to delete the same password in several files?
Hi,I am creating a basic PDF form survey with radio button yes/no questions and next / back buttons to show each page. When the user pushes the "next" button on page 20, page 21 needs to be shown only IF 3 previous questions on depression (1,2, and 3) OR three previous questions on irritability (6,7, and 😎 were answered yes (yes = 1, no = 0).Here is the code that is ALMOST working:Document level JSvar depressionchecklist = this.getField("Q1"+"Q2"+"Q3").valueAsString;var irritabilitychecklist = this.getField("Q6"+"Q7"+"Q8").valueAsString;JS for the "next" button on page 20if ( depressionchecklist == "3" || irritabilitychecklist == "3" ) {this.pageNum = this.pageNum = 20;}else {this.pageNum = 21; }Right now, even when the depression and irritability questions are all answered yes, when I hit the next button on page 20, it automatically skips to page 22 (it reverts to the else statement).It's probably some simple mistake with the code.... Any ideas?
Hello,I am practically new to javascript and have no idea how to code. I have 2 items in a drop down list. These 2 items are 2 separate paragraphs with about 5-6 sentences each. When I run the form and click on the drop down menu, it only shows me 1 line of text and cuts off the rest. Is there any way to code so that the whole paragraph is displayed in the drop down text box? Would greatly appreciate your help!!
Hi,I created a PDF form that sends to user who fills it. Then the document sends to printercompany who prints out the PDF document.The printig Company sends back the PDF and say they can not print because it is the CID font in the document."OK, the CID fonts is an adobe construction that uses another font table than regular fonts. In our print process included an optimization step where the font replacement copies of shared resources and where the problem arises. Character table of a CID font is not the same as other fonts. Both TrueType, OpenType, and PostScript using the same font tables."A colleague has shrunk the file with an external program, but the CID font is left.I've Googled but can not find how to remove the CID font from Adobe Acrobat Pro DC.
I am looking for a "rubric" to assess a persons knowledge of Acrobat Pro. For instance, if someone were to tell me they were an expert in using it, what things would I be able to ask them about that would let me know their level of skill?
hi, i want to change font & font size in all text fields. I have tried bellow code but it change the font size but didn't change the font. can u pls help me. thanks..font - Courier Newfont size - 10// Loop throught the fields in the document for (var i = 0; i < numFields; i++) { // Get a reference to the current field var f = getField(getNthFieldName(i)); // Change the properties of certain types of fields switch(f.type) { case "text": f.textFont = font. Courier New; f.textSize = 10; } }
Hi thereI created a form with a few text fields and some combo boxes. The combo boxes have Text as user value/face value and numbers as export values.The numbers are used to calculate some other fields on the form.I also added a button to reset the form, which works fine if I open the document on my desktop computer.But the intention is to use the form in a mobile environment and there I have a problem:whenever the form is reset, the default values are no longer displayed as text (by their user values). Instead the export values are used.e.g. the selected default value of my combo box would beuser value: goodexport value: 6If I open up the document for the first time in the mobile version of Acrobat it - correctly - says "good", but when I reset the form the field now states "6" as visible content.How can force the mobile version of acrobat after resetting to show the user value of the default combo-box item and not its export value?Thanks in advance----Additional info:- form based on
Hi,I am creating a PDF form survey with yes/no radio button questions. There is one question and "next" button per page that makes the next page appear. The question is called "Q1". I want to make the button do nothing until they answer.For example, if Q1 was on page 6, this code might keep them on the same page if they don't answer:var v = this.getField("Q1").valueAsString; if (v==" ") this.pageNum = this.pageNum = 5; else this.pageNum = 6; (This doesn't work - it always goes to page 7, even if they didn't respond)Any ideas on how to fix this?Thanks!
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.