『アドビコミュニティフォーラム』に質問/トピックを投稿する方法
Unlock the power of Acrobat SDK through our community.
新着順
Here is a sample script that loop into form fields to edit some properties:for (var i = 0; i < numFields; i++) { var fName = getNthFieldName(i); var f = getField(fName); if (f.type === "text") { f.textFont = font.Times; f.textSize = 9; }}It works fine as long as there is no field using the Acrobat Forms Field Hierarchies.(text.0, text.1, text.2, and so on)If there are any in the form I get this error: f is nullMy question is: Is it possible to use a script that can edit properties by looping into all forms fields, using the Acrobat Forms Field Hierarchies or not?
Hello,I'm looking for a script I could run in Adobe Acrobat X which will rearrange my document based on coma separated numbers in a variable.For example, var Order = 1,4,7,2,5,8,3,6,9. Let's say I have a 9 page document and I need page 1 first, then page 4, then page 7, then page 2, then page 5.. per the variable. I know I could just print it like this, but sometimes I have more pages than can fit, so I need the document sorted. For example, 1,23,45,2,24,46,3,25,47,4,26,48,5,27,49,6,28,50,7,29,51,8,30,52,9,31,53,10,32,54,11,33,55,12,34,56,13,35,57,14,36,58,15,37,59,16,38,60,17,39,61,18,40,62,19,41,63,20,42,64,21,43,65,22,44,66.Any help would be appreciated!
Hi Team,I need assistance for 2x Custom calculation scripts for the following as Simplified field notations will not work(As far as I'm aware).I'm currently using these two Simplified field notations with 6x Text Fields,A = NumberB = NumberC = NumberD = NumberE = Simplified field notations: A / (B + C)F = Simplified field notations: D / EHowever E must always round down and F must always round up.Eg, E = 1.8 the script will make it 1Eg, F = 1.2 the script will make it 2Please help!
I have a for that has an auto updating date field using the following script: getField("Date").value = util.printd("dd-mmm-yyyy", new Date()); The problem is once the form is completed and saved under a different name it continues to update the date field every time it is opened. I need this form to udate the date only the first time it is opened any subsequent time the form is opened I need it to retain the original date from when the form was completed and saved.Would anyone be able to provide some guidance as to how to alter this field or create a new field that will only set the date once.I am using Adobe Acrobe Pro 2017 release date and the form needs to support digital signatureAny help would be greatly appreciated.
I am working on an inventory list that is 2 pages. The second page I want to be optional so I decided to use JavaScript (for spawning). I applied this script to my button and it does work. My issue is I only want it to spawn the document once. At this time the button spawns the same document multiple times.var expTplt = getTemplate("P0Inventorylist"); expTplt.spawn(numPages,false,false);I only want the user to be able to pull this one time if additional lines are needed. What is the coding I would add to the one above that will limit the user to only pulling this one time?
I have been following this tutorial (https://acrobatusers.com/tutorials/change_another_field ) on how to make combo boxes populate a field and have had great success. My trouble is when I add a second Combo Box the first one won't work when I delete the second one it does work. I believe there must be a problem with the code which I don't quite understand. My code is as follows:First document level javascript:// Place all prepopulation data into a single data structurevar ClinicData = { 'Highfields' :{Address1: "Shop 4A / 66 Highfields Rd", Address2: "Highfields QLD 4352", Number: "1300 792 634" },  
Hello,I have been working on designing a PDF where the first box auto generates the dates month in the format DD/YYYY, and the subsequent fields calculate in the same format, descending by 1 month increments from the date in the first field. The first box I have called Today, the subsequent boxes are listed as Today_1, Today_2, Today_3, etc. I.E.02/2018 01/2018 12/2017 11/2017 10/2017^This needs to auto generate to the current month, and then proceed to go back a month at a time for 105 boxes. I thought I had this working, but I am getting a lot of errors now stating that..InvalidSetError: Set not possible, invalid or unknown.Field.value:1:Field Today:FormatThe JavaScript causing this issue I am sure is one I have set as a Document Javascript which is:function getPastDate(Today, months){var cDate = util.printd("mm/yyyy",new Date(this.getField(Today).value));var sDate = util.scand("mm/yyyy", cDate);  
Hello,I am using text fields for time. My reason for this is because iPads tends to glitch out with PDF date/time formatted fields. iPads make it difficult to select a date/time because the pop-up field moves around/doesn't go away, even after selecting from the pop-up menu. I would like to have a custom calculation that calculates the total time between "Arrive Job and "Leave Job".As you can see in the screenshot below --an example would be:Arrive Job: 8 Hour 15 minutes AMLeave Job: 1 Hour 15 minutes PMI know that this equals 5 hours.So i think the logic would be:Arrive Job Hour + Arrive Job Minutes(Leave Job Hour + Leave Job Minutes) - would think that this should convert to military time if possible : so that If value = PM, and then if value = 12,1,2,3,4,5,6,7,8,9,10,11 - then subtract Arrive Job Total from Leave Job Total so 13 - 8 = 5.If the example was:Arrive Job: 8 Hours 15 minutes AMLeave Job: 9 Hours 15 minutes AMI know this equals 1 hoursSo i think the logic would be:Le
I have a time sheet that I have turned into a form and I would like to make the start date of the week auto populate the rest of the dates. Is there a way to do this? Thanks for the help.
The original file is a series of letters to send to customers. Each letter is two pages long; I already have an action to break the document up by two's and add a letterhead logo before saving each as a new file. I used javascript to separate them because I wasn't familiar with Acrobat's capabilities at the time. The customer's name is listed on each letter in the exact same place on each document. Is there any script that would be able to "read" the customer name (given it's in the same location on the first page of each letter) and save the file as that name? I thought I was smart when I found out a script to separate the file, so I'm not a high-level thinker when it comes to this. Any places to point me if there isn't a straight solution?
My mac recently crashed and I had to reinstall El Capitan and all my other programmes. Everything installs perfectly (Photoshop, Indesign, Illustrator) except for Acrobat DC. I've downloaded directly from Acrobat's website as well as through Creative Cloud but no luck. Several Adobe technicians helped me remotely but Acrobat simply do not want to install. I've looked into permissions and deactivate Firewall, Eset virus security, user profile and everything, but it still do not want to load. It loads up to 'running the package scripts' and then hangs and do not want to go any further. Is there any other advice or solution I could follow? Thank you.
Hi All,With a button click I am making my form read only and attaching it to an email.The only thing is I want to be able to hide all of the JavaScript buttons on the page.I am aware of the this way to hide buttons:this.getField("Email_Button").display = 1;The problem is I am using spawn pages and thus its hard to use the above bit of code to hide all potential buttons.Is there a bit of code that can select all buttons or cycle through all buttons on my pdf and hide them?Cheers,Seb.
Dear Script users,I'm having trouble with the getPrintParams.This what I want.This is what I have so far:var pp = this.getPrintParams(); pp.tileScale = .140;this.print(pp); But nothing works.The page has to center and scaled op 140%. Is this even possible with JavaScript?Greatings!
I have a An AcroForm that I use as a patient file Acrobat DC in windowsI'm asking if there is a way to save evey visit in an attached text delimited csv depending on the form feilds , and have a buttons to show the previous visits ?so the CSV will act as a log for the visits many thanks
Dear All,I hope somebody can help me. I'm not a programmer but need to create some calculations within a PDF form. I am trying to calculate the number of daily calories required based on a number of criteria. I have managed to make the calculation work if I am just looking at the values of each field but I need to take into account if the user is male or female. For example: If the user is male then use: 1066 + (6.23 * v4) + (12.7 * v3) - (6.8 * v2) and If the user is Female use: 66 + (6.23 * v4) + (12.7 * v3) - (6.8 * v2).I am performing the calculation in the Calories field.This is what I have so far which does work but doesn't have the capacity to change between male or female.(function() {var v1 = +getField("Gender").value;var v2 = +getField("Age").value;var v3 = +getField("Height").value;var v4 = +getField("Weight").value;var v5 = +getField("Activity").value;var result = 66 + (6.23 * v4) + (12.7 * v3) - (6.8 * v2);event.value = result;})();Thank you in advance.
I want to use AdobeDC in 64 bit C# application..As there is no version of 64 bit availabe for Adobe DC, i tried to build my C# application with 32 bit Adobe DC reference in my code but it gives error while building application.any solution to use AdobeDC in 64 bit C# application ?Thanks
I have created a form in acrobat. However, I don't want the .pdf document to be saved over the original form after it is filled in; so when the user saves the form, the "Save As" browser appears. Once I get that working, how do I enable the new document that was saved based off of the fillable form to not retain the 'Force Save As' language, and act normal when I go back and edit it?I basically want the .pdf form to act like a .dot file (template) in Word
How can I change the size when editing a 8.5x11 pdf to 10x12?
I have two similar questions;1. I would like to make fields in my form required based on the value entered in another field. i.e. field a > 10 then field b is required2. Alternately, I would like to make field d required if there is any value in field cThank you ahead of time for your help.
First off, thank you to anyone who takes the time to read this and attempt to help me.I made a PDF form with check boxes. I used a mouse up Java Script so that when the check box is checked aka "Yes" the fill and font are a specific color: I then made a Clear Form button which when clicked does clear all the check boxes but it leaves the form boxes with the fill color of when the box is checked instead of going back to unfilled. The only way to then clear the form box fill is to check the box and then uncheck. I have over 100 check boxes. To clear the check box fill one by one would be a pain in the arse. Any thoughts or suggestions?
hello, i am new to acrobat javascript but have been managing pretty well following forum advice i have found for each topic i have come across until now. I am trying to populate a field with an if/then statement. I have employee names that I want to be populated into a certain field when the adjacent field has the 4 digit employee number entered into it. I found an old thread but no matter what I tried, i can not get the script to work. Here is what I have so far. For reference, Emp.0 is the employee number field and NameRow.0 is the employee name field. I have the following formula plugged in to the custom calculation script of the NameRow.0 field. Employee numbers range from 0190 to 7xxx so i didnt know if have a leading zero in the employee number is throwing anything off either for the first two i was trying to get to work. var v1 = +getField("Emp.0").value; if (v1 === 0190) event.value = "jane doe"; if (v1 === 0210) event.value = "john smith";I have also tried th
Every time I open a pdf in Adobe Acrobat Reader DC, and click Sign in, I enter my account information, then sign in, but then it comes back with an error window that pops up saying "An Error Occurred", then does not sign in.... This only seems to happen from the Reader, and I know my ID and password are correct because I signed in here just fine.PLEASE help me with this as Support will not provide help for a free product like the READER....Thanks in advance!!
Hello guys, I want syntax and functions for find and replace actions. If anyone knows please assist me. Thank you.
Hello everyone, I was wondering, is there a javascript that I could use to that would show and tell the user that they didn't click different button? And, if they have clicked the button it wouldn't show the alert. It's just kinda a reminder to click the other button. Can it be done? If so, can you share the script? Thanks.
I have a Drop Down (Drop Down 1) with 3 options - "Yes", "No", and "SELECT YES/NO"I am using this because I think it will be easier to manage that Radio Buttons or Check Box groups for Yes/No.1. How do I "reset" the Drop Down to have no selection - so I dont have to use a "SELECT YES/NO" type of field. How do I get that drop down to just be Blank by default, until the User selects something?2. Based on the output value of the Drop Down, I would then like a series of 10 more Drop Downs to be Required. If Drop Down 1 is Yes - then 1 Text Field is Required, and 10 additional Drop Downs are Required - and the from cannot be Submitted using a Mouse Click Submit action until all 10 required Drop Downs are populated. If Drop Down is No - then 1 Text Field is not required, and 10 additional Drop Downs are not required - and the form can be Submitted using Mouse Click Submit Action. Note: These are all Yes/No fields - so if there is an easier way to do this with Radio Buttons or Check Boxes - t
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.