『アドビコミュニティフォーラム』に質問/トピックを投稿する方法
Unlock the power of Acrobat SDK through our community.
新着順
Hello,I want to delete an attached file from a pdf using javascript AND Acrobat Reader.I have this javascript copy in the Javacript directory of Acrobat Reader but the attached file is not deleted when the PDF is opened.I don't have any error messages and I'm sure the script is running app.alert("test")Could you help me?Thank you. Thank you.if (app.formsVersion >= 😎 {ImportAutoTXT_BB=app.trustedFunction(function() {app.beginPriv();///// Suppression du fichier txt intégréthis.removeDataObject("fichierTXT");///app.endPriv();})}
I have a 3D model PDF and I made some button functions: switch views, display text labels and rotation tools, etc.The button's tooltips can be displayed before the 3D model has been imported.After importing the 3D model, the button's tooltip disappears.But after I opened the rich media to select objects,My tooltips have not disappeared, and tooltips will appear after that.I tried to reopen or rewrite the program many times.Can't solve this problem.Here is the code for one of my buttons.------------------------------------------------------------------------------------var btn_r= this.addField("btn_r","button",0,[800,476,827,499]);btn_r.userName="right";btn_r.fillColor = color.transparent;btn_r.setAction("MouseUp",'var c = getAnnots3D(0)[0].context3D; \r'+'c.runtime.setView(0,false);\r'+'var camera = c.scene.cameras.getByIndex(0);\r'+'var num = 13; \r'+'camera.position.set(camera.targetPosition.x+num,camera.targetPosition.y,camera.targetPosition.z); \r'+'camera.roll="0";\r'+'this.getFie
Hi,I have succesfully written a script which uses a dynamic stamp to set an "Exhibit 1, 2, 3..." stamp on single PDFs based on the filename (the source files are labeled 001-..., 002-..., etc.). The script uses saveAs() to save the newly stamped files with names P001-....pdf, P002-...pdf in the same folder than the source.I can now run an action which runs the script on multiple files.What I need to do next in the workflow is combine all the newly created, stamped files in a single (optimised) PDF file, which I do manually from Windows Explorer (select - right click - combine, option "reduce file size"). The fact of having a bookmark corresponding to each file is a plus.I would like to further automate this as part of my action (or of a folder level script).Leaving aside the optimisation question (which I understand I could solve by using doc.preflight), I don't understand how I am supposed to use, from the same script or action, the files I have generated in order to combine them. I w
I have 21 computers linked together via a switch. 20 of which will be used as clients and one as a server. Each client will have a pdf form saved to its desktop. (The form can't be saved on the server because connection will be lost between starting and submitting). The form is a worksheet that will be filled out by students. I would like to create a submit button on this form that extracts the data from the pdf and submits it to the server. The server will then process the data (grade) and provide feedback to the student if they passed or failed. The problem is I'm not sure what the best route is to accomplish this.I'm familiar with html, php, and javascript but its been over a decade since I've written any code.I know this will be quit a bit of code but if someone could point me in the right direction of where to start I'd appreciate it. Better yet, if there's a GUI interface that automates such a process that be even better. Thanks in advace!Steps:-extr
Hi, how can I sum up the following values?[A-H]&[J-U]&[W-Z][a-z][I,II, III, IV, V, VI, VII]if (event.value=="A") { event.target.textColor = color.red; this.getField("Field1").textColor = color.red; this.getField("Field2").textColor = color.red; this.getField("Field3").textColor = color.red; }else if (event.value=="B") { event.target.textColor = color.red; this.getField("Field1").textColor = color.red; this.getField("Field2").textColor = color.red; this.getField("Field3").textColor = color.red; }else if (event.value=="C") { event.target.textColor = color.red; this.getField("Field1").textColor = color.red; this.getField("Field2").textColor = color.
I have been using the "Find, Highlight, and Extract" action.This tool works when I run it on smaller documents, but will usually crash or take a long time on larger documents.For large documents 50k+ pages is there a faster/better way to extract pages with a particular phrase?
I have two fields, field A and field B. Field A needs to be divided by Field B and the answer needs to be rounded up. Example: 2÷5=1How can I code this?var AA = this.getField(“UNITSWEEK”).value;var BB = this.getField(“MAXDAYSWK”).value;if (BB==0) event.value = "";else event.value = Math.ceil (AA / BB);}
Hi would really appreciate advice and expertise on a task I will like to do described below but given that I have very little expertise in Javascript but have Acrobat Pro DC, I am stuck.I have a report that contains multiple reports in a single pdf which I want to split it into individual reports. The cover page of each report has a report number XPD Report - nnn. I want to be able to search for a specific string ("XPD Report") within the pdf, and then save the sequence of numbers that come after that string for my file name ("001","002"...). I would want to extract the cover page and the succeeding pages of the XPD report and include it into one pdf until it finds another unique XPD Report. For example,page 1 XPD Report - 001page 2 page 3 XPD Report - 002page 4 page 5 XPD Report - 003page 6 page 7Using this example, pages 1 and 2 would be extracted into one pdf together. Page 3
They are a main point in forms & applications. I was amazed that I could not find a menu of characters. Heck, I do in Microsoft word!How Pro is Acrobat Pro?[Moved from the general, non-support forum Lounge to a product-specific support forum - Mod]
I have multiple checkboxes that when checked populate a comment box as they should. However, if there are comments already in the box it erases them. Any suggestions on how I keep that from happening? Thanks!
i Have a javascript that can turn the layers i want on. but what i would love to include is script that will turn some other layers off once the layer is toggled on. Here is what i have so far.var docOCGs = this.getOCGs();for (var x=0; x < docOCGs.length; x++){ if(docOCGs.name == "Cadent Trace" || docOCGs.name == "Cadent Trace") { docOCGs.state = !docOCGs.state; }}I am very new to java and am learning the basics at the moment so any help will be much appreciated!thanks, Max
Hi, I like to create an pdf form with acrobat. for this i have a table with different fields. depending on the value entered in p.e field "A" the text of field "A". "textA" an "textB" should colored red, etc. (like in the table below)Headline 1Headline 2Headline 3AtextAtextB1text1text2ItextItextIII have been using the forums to help me answer the question above and I have managed to create the code below, but it's not workingif (event.value=="a") { event.target.textColor = color.red; this.getField("textA").textColor = red; this.getField("textB").textColor = red; }else if (event.value=="b") { event.target.textColor = color.red; { this.getField("textA").textColor = red; this.getField("textB").textColor = red; }else if (event.value>="0") { event.target.textColor = color.blue; { this.getField("textA").textColor = blue; &n
Can we configure a certificate to adobe reader for signing purpose programatically ? (perhaps using Windows batch file, shell-script or official library available from adobe)The certificate needs to be configured (within Adobe Reader) with the "use of signing" usage option.
Can someone tell me if I can modify this code or if I need to use a different one? I'm using this script to formulate different text fields into one text field. It works fine but I'd like to format the text a bit. I'm using Centered (but that doesn't have anything to do with anything). I'd like to be able to double or even triple space in the destination field. When I hit the Return key the text moves down but as soon as I click outside the field the text jumps back up and doesn't allow me to format the lines of text as I would like. Or to even type in additional text into the field. What I did to get around that, is I created an additional text field that I can type into it (see my example script Text31). Here's the script:event.value = this.getField("blank").value + " \n" + this.getField("WeInstall").value +"" + this.getField("TotAllFootage").value +"" + this.getField("Of").value + this.ge
My software makes hundreds of bookmarks in a hierarchy. We want to open the bookmarks bar in a collapsed state showing only the first level bookmarks. Is there a js - app.execMenuItem type command or any other to do this?
Hi all. I'll try to keep it as short as possible.Part1Have a form, where Submit button executes JS for two things:1. ensuring one required CB is ticked before submitting2. extracting email(s) associated to CBs, where each CB export value is an email address, and all CBs have the same nameSubmit button >Mouse Up event > Run JSvar fields2 = ["Check Box1.0"]; var addresses2 = []; for (var i in fields2) { var v = this.getField(fields2).valueAsString; if (v!="Off") addresses2.push(v); } if (addresses2.length<1) app.alert("Select one Check Box.",1);else{var fields = ["email1", " email2", " email3", " email4", " email5", " email6", " email7"]; var addresses = []; for (var i in fields) { var v = this.getField(fields).valueAsString; &nbs
Hello,I'm not a coder and I don't know JS, but I already put some JS in my form to set the date automatically to the date of the day. I'm sure there is a way to set a button to perform the action of using the email address in a textfield of a form and then send a copy of the filled form (flattened would be perfect) to this specific email address.The usual way I'm using, many micro actions, is to click on the textfield, select all, copy, share/open with, share a copy, select Gmail as mail app, paste the email from the textfield in the recipient and send. There is 8 actions, always the same.Could this be performed in one single button with JS, compatible on iPad and/or android Acrobat Reader application ? Thank you !
Hi!I need to add leading symbol * in a numeric field.Numeric field length is 10. If enter 15000,the result will be *****15,000.Please help me out. Thanks!
Who can give me a simply example for using js script to realize create annotation in 3D object in acrobat file? Thank you !
Please provide any insights to the following question. In trying to sign and date a w-9 I get the following message. "This form cannot be edited in Adobe Acrobat DC. Please use Adobe Lifecycle Designer." How do I get this document dated and signed without buying Lifecycle Designer?Thanks,Rick
I'm working on a RPG character sheet..I'm trying to calculate a characters total armor class..I have all the fields set up and labeled..The total AC bonus = 10 + DEX mod+ proficiency bonus +item bonus..I have a field that already calculates and generates the "DEX Modifier" field.The problem is, if you wear a suit of armor it allows you to add your Dex modifier to the ac totalBUT only upto the armors max..Let's say you wear leather, it allows you to use only +4 max bonus.So if I have a Dex mod of say +5 it needs to only add the +4 ..My fields in question is "Dex modifier","Ac Dex modifier", " ac Dex modifier max"I've tried var A = this.getField("DEX Modifier").value;var B = this.getField("ac Dex mod max").value;If (A>B) {event.value = B}So if ac Dex mod = Dex mod,But if the Dex mod is greater than the ac Dex mod max, the Dex mod @= ac Dex mod maxAny help is greatly appriciated
Hi everyone, I have a PDF form that I've created for my team to help make creating contracts easier. Essentially what it does is it has a bunch of form fields on page 1 that fill in all the appropriate information on all the other pages. I've then created buttons that print just the pages we need, which vary for different people. This system works great for printing, but I'm trying to come up with a better solution for saving. Here's what I want:On a button press, a certain set of pages should be extracted from the PDF, flattened, and then a Save As prompt should appear. But I haven't been able to figure out how to apply scripts to the extracted pages, instead of the original. For example, if I use this code:this.extractPages(1,3);this.flattenPages();app.execMenuItem("SaveAs");then the pages are extracted correctly, but the original PDF is then flattened and saved, not the new extracted PDF. This is what I've been doing as a workaround:this.deletePages({nStart: 4, nEnd: 7});this.delete
Trying to select a file and get the ASPathName of the file. There was a sample in PDF Binder to do so but it only allow you to choose folder instead of a file with AVAppChooseFolderDialog method.
I am trying to convert an Excel expression/formcalc script that essentially divides the totals of two fields provided on a PDF form. One field may include a total entered on a another page. The formcalc script I am currently using works, and is listed below. Is there any chance someone might be able to help me with converting to javascript? Thanks so much!if(Page1.Total_undupl ne 0 & HasValue(Page1.Total_undupl)) thenTotal_al_instr / Page1.Total_unduplelse nullendif
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.