Unlock the power of Acrobat SDK through our community.
Als letztes aktiv
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
Sir / Madam,Is there any way to change the color of the Strikethrough made in the Text Field.Currently after making the Rich Text Enable for Text field... the strikethrough color is same as the color of the text.....I want ... for ex- color of text to be black and color of strikethrough to be Red.thanks
When I go to publish a PDF for shared review, Acrobat is looking in my contacts card (in Users & Groups) for addresses. How can I get it to look in my MS Outlookcontacts?
Hello, all,I have a pdf form which contains fields for all my clients' contact details (Name, Address, Telephone, Email, Website, Instagram etc). Thanks to a LOT of help from this forum, I have set it up so that all of these fields are populated when I select the company name from a dropdown list. The data is stored in a tab-delimited file at a fixed, specified location on my hard drive. (oh, I'm on Acrobat DC).What I'd REALLY like to be able to do, is attach the .txt file to the pdf itself, so that it doesn't matter where I move it to, it will carry its own datasheet around with it.The script I use currently to get the data from the txt file is:var Trusted_readContactDetails = app.trustedFunction(readContactDetails);function readContactDetails(){app.beginPriv(); var oFile = util.readFileIntoStream("/Macintosh HD/Users/somefoldernames/morefolders/InvoiceContacts.txt"); var cFile = util.stringFromStream(oFile, "utf-8");
I have a percentage field where the decimal place needs to be moved. When you type in 20 the decimal place value shows 2000% (i.e. 20x100%). You have to type in .20 to get the field to show 20%. That doesn't flow well with this form, where the rest of the percentages are represented as numbers with 2 decimal places (20.00).Does anyone have the code to fix this?
I'm new to JS, learning as i go, and i'm stuck on this one. Hopefully someone could help?This is the script I currently have:var fieldsToLock = ["Text2", "Text1", "Text3", "Text4", "Text5", "ComboBox6", "MRcheck", "CustomerCheck", "Other2check", "SubCombo", "RadCombo", "ProcCombo", "ForCombo", "BackCombo", "BordCombo", "MounCombo", "Text39", "Text7", "Customchk", "exttypecombo", "extforecombo", "extbackcombo", "extlogocombo", "extchevcombo", "exttapercombo", "extmoutcombo", "extSSchk", "extDSchk", "extaddition", "Text32", "decRadCombo", "decProcCombo", "decBordCombo", "decText39", "Text41", "UpholsteryCombo", "Fencelength", "fencebetween", "Text47", "Text48", "Text6", "Text8", "CheckBox9", "CheckBox10", "sizefield", "sizefieldother", "sizefielddec", "Text10", "Text11", "Text12", "Text13", "Text14", "Text15", "flatSSchk", "flatDSchk", "heightdecfield", "heightotherfield", "heightfieldflat", "bannerheight", "Text41", "fenceheightfield", "ReflectivityCombo", "OverlayCombo", "Text1", "decF
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Sie haben bereits einen Account? Anmelden
Noch kein Konto? Konto erstellen
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.