『アドビコミュニティフォーラム』に質問/トピックを投稿する方法
Unlock the power of Acrobat SDK through our community.
新着順
In an order form, I would like a field to stay blank unless a quantity has been purchased, so I am writing code instead of using the basic option of selecting fields (which works). I need a total number of t-shirts purchased based on five sizes. At first, it seems to work, but with no reason I can detect, it stops adding the numbers and instead treats them like a string. Example: 5xs + 5m gives me 10total. Then if I add another 5l, I get 555 as the sum. (The shirt sizes and quantities are irrelevant to the outcome.) Obviously, there are more advanced ways of doing this that go way above my level of knowledge, but can anyone tell me where the problem is?var qty1 = this.getField("qTYikmpxs").value;var qty2 = this.getField("qTYikmps").value;var qty3 = this.getField("qTYikmpm").value;var qty4 = this.getField("qTYikmpl").value;var qty5 = this.getField("qTYikmpxl").value;if( (qty1 + qty2 + qty3 + qty4 + qty5) > 0) event.value = qty1 + qty2 + qty3 + qty4 + qty5;else event.value = "";The se
I'm trying to add a script to the custom format window of a text field so I can have the results show like this - $22.33 per foot (or whatever dollar amount entered). I've been playing around with this bit of code but cannot get it to do as I want. Can someone help me out? Here's the javascript that comes closeAFNumber_Format(2,0,0,0,"$/ per foot",false);
Not so much a problem with any scripting. I was wondering why aren't people, especially companies using PDF to streamline their workloads and take advantage of the powerful tools at their finger tips. I know some out there do but I am very surprised at how many people I know in the business world that own a version of Acrobat (the full program) and just let it sit on their computers doing nothing. Instead of using it to make their jobs easier and to create a custom app or form that would save the company so much time. It absolutely amazes me. I have a few good friends that own big companies and I witnessed the employees struggling to get even a letter written. I mentioned to my friends to utilize the Acrobat program they own and they were just not interested in hearing anything further about incorporating PDF's into their company. Here they spent at least $450 on the Acrobat program and it just sits taking up space on their computer. Through the years (from version 3) I have become a v
I have written this code for a combo box (qmblu) with the quantities as seen in the formula, but the only value displaying is for qty=1 (I checked by changing the numbers to 1, 2, etc, instead of 12.22 and '1' showed in the price field). Even the else "" is being ignored with default on the first value. Can anyone please tell me what I'm missing? The combo box works - my product of the two fields changes based on quantity changes, but always multiplies by the same price. I'm not a coder; created this based on Thom Parker's articles, but it makes sense to me...Thanks!var qty = this.getField("qmblu").value;if( qty=1 ) event.value = 12.22;else if( qty=2 ) event.value = 12.22;else if( qty=3 ) event.value = 12.22;else if( qty=4 ) event.value = 12.22;else if( qty=5 ) event.value = 10.80;else if( qty=10 ) event.value = 10.44;else if( qty=20 ) event.value = 10.44;else if( qty=50 ) event.value = 9.72;else if( qty=100 ) event.value = 9.36;else if( qty=200 ) event.value = 9.36; else event.value =
var CostCenterFields = ["CC.0.0.3", "CC.1", "CC.2.1", "CC.2.2", "CC.2.3", "CC.2.4", "CC.2.5.0", "CC.2.5.1","CC.2.5.2","CC.2.5.3","CC.2.5.4.0","CC.2.5.4.1","CC.2.5.4.2","CC.2.5.4.3","CC.2.5.4.4","CC.2.5.4.5","CC4","CC5","CC6","CC7","CC8","CC9","CC10","CC11","CC12","CC13","CC14","CC15","CC16","CC17","CC18","CC19","CC20","CC21","CC22","CC23","CC24","CC25","CC26","CC27","CC28","CC29","CC30","CC31","CC32","CC33","CC34","CC35","CC340","CC341","CC342","CC343","CC344","CC345","CC346","CC347","CC348","CC349","CC350","CC351","CC352","CC353","CC354","CC355","CC356","CC357","CC358","CC359","CC360","CC361","CC362","CC363","CC364","CC365","CC366","CC367","CC368","CC369","CC370","CC371","CC372","CC373","CC374","CC375","CC376","CC377","CC378","CC379"];var SiteNumberFields = ["SN.0", "SN.1","SN.2","SN.3","SN.4","SN.5","SN.6","SN.7","SN.8","SN.9","SN.10","SN.11","SN.12","SN.13","SN.14","SN.15","SN.16","SN2","SN2_2","SN3_2","SN4_2","SN5_2","SN6_2","SN7_2","SN8_2","SN9_2","SN10_2","SN11_2","SN12_2","SN13_
I have two forms: The first shows a list of 100 products, each with a check box. If a product is used that day, I check the box-- typically between 3 to 10 products used per day. For instance, today I used Q,R,V, X, and Z, and so I check the corresponding boxes.On the second there are 20 rows for inputting the keycode and quantity used for each product that was checked off on page 1. For instance, when I checked off the box for product Q on the first page, on this page I specify that the keycode for Q is 1032, and I used 7 of them. The next line says that R's keycode is 4402 and I used 2 of them, V is 5001 and I used 1 of them, etc.I've got a simple script for autopopulating the corresponding keycode on page 2 when the checkbox on page 1 is checked. HOWEVER, that only works for row 1. So when I check the box for using product Q on page 1, on the first row of page 2 it automatically writes "1032" into the keycode column. But when I say I also us
I couldn't find a way to automate the alternate text of images with javascript based on a list.I would like to have javascript reference an attachment or text file that has figure # (1 through 20+) and it's description. This would then automatically be applied to the alternate text of an image as it would find them in the accessibility feature.I can explain more if needed, but establishing code that references a list of text would be a good place to start.
Hi My print server application is using PDFLPrintDoc in PDF Library.But I need to specify username in a print spooling on file like the below.xxx.spl@7561186 SET GRAYSCALE=BLACKONLY@7561186 SET USERNAME="username"@7561186 SET JOBNAME="Test Page"@7561186 SET SEPARATORPAGE=OFFIs there anyway to set username or send custom string (or name/value pair) via PDFLPrintDoc?ThanksJason Koo
TypeError: f is null1051:byteCodeToolThat's the error I'm getting. The main problem is I have 88 fields being calculated. Is there a way to more easily find the source of this than to dig through each field?
Hi Everyone,I am an amateur at JavaScript, and hope someone can show me where I am going wrong.My script is:event.value = "";var Text1 = this.getField("Text1").value;if (Text1!="") { if (Number(Text1)>20,Number(Text1)<51) event.value = Number(Text1)-20; else if (Number(Text1)>50) event.value = 30else event.value = 0;}Which should:1. If the input value is under 20, output is zero,2. If the input value is between 20 and 51, output is input value minus 203. If the input value is over 50, output value is 30It works mostly, however, input values under 20 are giving negatives, not zero.Where have I gone wrong?
I have a original copy of PDF and a list of names in a CSV. And I want to save a new copy the original then put a name from the list as file name of the new PDF, then repeat the procedure for the rest of names. In the end, I would get copies of PDFs with different names.The first step is to read a CSV. The second step is to save a new file. How can I achieve my goal in javascript in Adobe?Thank you!
I'm pretty new to JavaScript so I have very little idea how to achieve this. But I'm learning. 🙂I have three (3) dropdown boxes on a PDF form where the user can select a series of courses. All dropdown boxes contain the same list of courses, for example...Course A - Design widgetsCourse B - Assemble widgetsCourse C - Test widgetsCourse D - Paint widgetsCourse E - Pack widgetsWhen a selection is made in one of the dropdowns (Course1) an adjacent textbox (NominalHours_Course1) needs to display the number of hours that the course typically runs for (e.g. 5, 8, 12, 15, etc.). This is a predetermined value for each course and needs to be retrieved from a table... (I assume stored somewhere in the document?).I'm after the same sort of functionality as the MS Excel VLOOKUP function.Reading some of the posts on this forum, it looks like the relationship between course and hours should be in a document level script, allowing the "Nominal Hours" values to be referenced by any of the drop
Can I learn JavaScript for HTML and use it to customize forms in Adobe Acrobat?
HiI have the following javascript in a button before a form is ready for signature which is working, which I have found on various forums. However, I need to include 2 more items1) to include checks on dropdown lists if they are visible and required, the default value of these dropdown lists are "SELECT ITEM",and2) if possible I would like to have an additional message displayed if a certain checkbox called divur1 is not ticked before displaying the main message which is included in my script belowvar emptyFields = [];for (var i=0; i<this.numFields; i++) { var f= this.getField(this.getNthFieldName(i)); if (f.type!="button" && f.required ) { if ((f.type=="text" && f.value=="") || (f.type=="checkbox" && f.value=="Off")) emptyFields.push(f.name); }}if (emptyFields.length>0) { app.alert("Error! You must fill in t
I was tasked to rename some textfields, checkboxes, radio buttons and dropdown fields in a working Fillable form. The only thing I did was to add prefixes to the original name and update the javascript codes of fields (replace old field names with new ones).I got a feedback saying that only a few of the calculations work and majority isn't working anymore.I didn't create this form and haven't used it even once. How do I identify what went wrong and what fields to look at?Thank you in advance.
I delete page when process data, i want close document not save. This my code: Dim oArobat As Object oArobat = CreateObject("AcroExch.App") oArobat.Show() Dim oDoc As Object oDoc = CreateObject("AcroExch.PDDoc") Dim oAVDoc As Object oAVDoc = CreateObject("AcroExch.AVDoc") If oAVDoc.Open(strWorkFilePath, "") = True Then &
Hi. I'm creating a fillable form and I'd like to allow the user to pick a date using the date field which will then auto-populate a field next to it with the corresponding day of the week. I tried to do a custom format in the properties which seemed to work fine on my computer but would error when filling it using an iPad. (Form will most of the time be filled out on an iPad). I've been searching forums and other pages for an answer however I have absolutley no JavaScript experience. I'm also finding it a little hard to get started on my own. Any assistance would be great or referral to an appropriate resource. Thank you so much.
Hi all, i need to send via email only selected pages of a 86 pages PDF form. How can I do it with Java?I tried different approaches such as bulding a code for extracting and sending but I am able to exctract only a range of page and not selected pages.I need to send page 0 and this.numpage in the form thanks
I am using this bankers rounding script as a document level script that I found online, Gaussian/Banker's Rounding in JavaScript · GitHub . It works well except it's rounding weird when working with numbers with 3+ decimal places. For example:55.85 rounds to 55.8 (correct)55.850 rounds to 55.8 (correct)55.851 rounds to 55.9 (incorrect)55.8501 rounds to 55.9 (Incorrect)Here is the script:function bankersRound(num,decimalPlaces){ var d = decimalPlaces || 0; var m = Math.pow(10, d); var n = +(d ? num * m : num).toFixed(8); // Avoid rounding errors var i = Math.floor(n), f = n - i; var e = 1e-8; // Allow for rounding errors in f var r = (f > 0.5 - e && f < 0.5 + e) ? ((i % 2 == 0) ? i : i + 1) : Math.round(n); return d ? r / m : r;}Any idea how this could be fixe
I have a PDF file as below image:I want export 2 Pages to 2 Images:With Acrobat Script or COM : Can export a Page to a image ? and Can it remove white area?Thank you.
Jeg har installeret/hentet den seneste NemID signatur.NemID skriver :Vær opmærksom på, at NemID-supporten ike kan hjælpe med, hvordan du signerer i det enkelte program, fx Adobe Acrobat eller Word.
I'm new at this and I'm currently working on a document in Acrobat Pro DC where I want to have a portion of the document hidden until all of the required fields are filled with any value. So far, I've only found resources on how to use a check box (or something similar like a button) to hide/show the additional portion of the document. This is what I'll end up doing as a last resort, but it's not ideal since the user will be able to toggle it on/off at any time, and my preference is for them to be able to do so only after all the fields are filled out.My basic understand from using IF AND statements in Excel leads me to believe that should is a relatively simple script, but I haven't found any tutorials or examples of this scenario using JavaScript in Acrobat Pro DC. So any resources you can point me to would be appreciated!
helloi want to use a custom keystroke script or code to make this function:the ( : ) will insert automatically after i enter the first 2 digitshow to do that by javasciptthanks
Hi - I am brand new at this... Please be gentle.I have an Acrobat form with a persons name in two fields. (First name and Last name) I would like to automatically create a third read only field with just the first letters of each name.Any ideas? Thanx
When printing PDF files there is a thumbnail of the document displayed. If it is a color document and you want to simply print it gray you can use the Advanced settings and change the Color from Composite to Composite Gray. When you do this, the thumbnail in the Advance window changes but the thumbnail in the Print window does not, it always shows color.So, because Acrobat remembers the setting from the previous print job, if you print a new color print it will print gray also. It could be hours between prints so you would not remember that the previous print was forced to gray. Because the thumbnail in the Print window always shows color you can't know for sure that the Color selection in the Advance window is not set to Gray.If the thumbnail in the Print window was the same as the thumbnail in the Advance window (it reflects the Color selection: Composite or Composite Gray) the user could know before sending a job what the print results will be. As it is now, you have to look each ti
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.