『アドビコミュニティフォーラム』に質問/トピックを投稿する方法
Unlock the power of Acrobat SDK through our community.
新着順
How to get the speical character and output txt in acrobat by JS ?example: ® ™ èI can get them,but why the ™ have lost when I save these character to txt,?function getword2(doc){ var i, j, ckWord, numWords, aWords = []; for (i = 0; i < doc.numPages; i++ ) { var bWords = []; numWords = doc.getPageNumWords(i); for (j = 0; j < numWords; j++) { ckWord = doc.getPageNthWord(i, j, false); if (ckWord) { bWords.push(ckWord); // Add word to array } } aWords.push( bWords ); } return aWords.join('\r\n');}function output_csv2(){ var outputString = getword2(this); this.createDataObject("output.txt", outputString); this.exportDataObject({ cName:"output.txt", nLaunch: "2"});}
working on tax deductions i am attempting to extract the dollar amount (which precedes the common search term atm withdrawal) in my pdf bank statementsI'm essentially trying to filter all of my atm withdrawals from store purchases.able to search the term (ATM withdrawal) and export that to csv/xlsx however it would be great to extract the info before or after my search term.can anyone assist?
I've been struggling with this for hours and am in desperate need of some help. Currently, I am designing a fictional Ai website; the narrative concludes with the AI "breaking free," transcending the limitations of its containment in a website, emailing my course's students, exposing that the AI is now free.So in terms of what I need in javascript:With my code currently, there is a background video that is playing, but as soon as the video ends, I need it to send off an email automatically, to the student's in the course without the user having to press any buttons, external links, etc etc. I'm doing this because it plays on the idea of an autonomous technological being, accesses an unlimited knowledge, expanding beyond the limitations of one medium. Though I've researched plenty of resources on how to do this, I haven't found any clear answer or anything that actually works. I've mentioned that this is for an assignment, based outside of my faculty, and my knowledge of code. So any he
Hi, I need to create menu item when acrobat opens. So i have placed the script in the path of user level path. when i use the code for app level its working and added menu item but in folder level its not working.https://acrobatusers.com/tutorials/folder_level_scripts (Ref)app.addMenuItem({cName:"JS Ref", cParent:"Help", cExec:"app.openDoc('pathToPDF');"});When I check the console its showing the below error.How can I clear it to make script to work for startup script??- Sudha K
How install Multimedia.api to Acrobat pro DC? Need to but video acrobat document but plugin not found missing plugin are Multimedia.api where i can get it?
Is it possible to get the page number that a field exists within using javascript? I have a 5 page form with 205 fields and I have built the code to export the field property values, for each field. I would now like to add code to include the page the field exists within. I have searched and cannot find anything that states anything regarding form pages. Below is my code to write to the console the form properties. Once I get it the way I want, I will have it write to an array instead of to the console and then export the array values to a csv file. for (var i = 0; i < this.numFields; i++) { var f = this. getField(this.getNthFieldName(i)); console.println(i + " | " + (f.type) + " | " + (f.name) + " | " + (f.readonly) + " | " + (f.required));}
I have a form that has several calculated fields, it works fine in Acrobat Pro, but very hit and miss in other programs. The form is an insurance application and it calculates the premium dependent on the "State" and the "Deductible" ("ded_1"). In Mac, the whole form seems broken, not just the formulas, but the layout too. I'm having issues with one particular field "ded1".The options of a drop down list field "ded1" is dependent on the data input of another field "State1". i.e. you input 'mi' it changes it to 'MI' and sets the options in 'ded1' to $5,000 & $7,500. you input any other state it converts it to upper case and sets 'ded1' to $2,500I've placed this code in the 'Validate' tab of the 'State1' field.event.value = event.value.toUpperCase(); // Sets the entry to upper case.// Sets the options for the deductible field.switch (event.value) { case "": this.getField("ded1").setItems([""]); &
How can I batch change document properties (i.e. initial view -> navigation tab) dependant on whether the pdf has a bookmark or not? Javascript seems perfect for this, but apparently document properties cannot be changed with Javascript.
Good morning,I am new to writing code and javascript in Adobe so please bear with me. I have created a form with a combo box. There is a text field below the combo box which is automatically populated with verbiage located in the Export Value for each Item selected in the Combo Box. I would like to have additional field (text fields) populate with various values based on the Combo Box selection. How do I do this? I am using Standard version and cannot seem to find a way to add JavaScript. If you can provide detailed step by step instructions, that would work best for me, as I am a beginner. appreciate the help!
I have a PDF with an intro tutorial compounded by 5 small custom popups distributed on separate layers. The popups has a close button. As a popup is closed the next one is shown and so on. Because I use the very same close button for all the popups (and the poppus will show up in different places on the screen) I have to move the close button accordingly. However I am no managing to do this...I tried:this.getField("btnClose").style.left = "7.82in";this.getField("btnClose").style.bottom = "7.47in";this.getField("btnClose").style.right = "8.04in";this.getField("btnClose").style.top = "7.69in";But then it caused a sintaxe error (I think it didn't like the 'style' property). Then I tried:this.getField("btnClose").left = "7.82in";this.getField("btnClose").bottom = "7.47in";this.getField("btnClose").right = "8.04in";this.getField("btnClose").top = "7.69in";As you may noticed I remove the 'style' so it didn't raise the error but also didn't move my button.PS: I tried to use "px" instead "in"
Hello,I download the SDK DC, and opened the sample project to Watermark. The sample will not compile because the library reference is not installed, but where do I find it? dDoc = CreateObject("AcroExch.PDDoc")Thank youDennis Aubrey
I had previously been able to print coupons in fdf. format using Adobe however now after a computer upgrade to Windows 10 I now receive this message. I have followed other suggestions and have gone in to Adobe under Java and made sure all settings are enabled. I have also gone under trust manager and made sure pdf files are enabled. Any other ideas or suggestions would be appreciated. Thanks
I've created a fillable PDF form in Acrobat where each question has two letter choices which are listed these in a dropdown box (i.e. Question 1 can either be A or B, Question 2 can either be C or D). At the end of the document, I need 4 text boxes that count the number of A's, B's, C's and D's have been chosen in the dropdown boxes. I'm a complete beginner when it comes to Javascript, so can anyone please advise a code I can input to achieve this?Thanks!
My last question was answered.because my current question is related here is a snapshot of that question.So, in the comments field... when text is going to the next line it breaks words instead of automatically moving the entire word to the next line. Is there a way to make the word and the end of the field move to the next line.The word "next" is cut to the next line instead of beginning the second field with the entire word. Is it possible to have it move the full word.Here is the script I used to get the text to go to auto-generate next field:
Hi!I want to do a button in Acrobat Pro and when I press it I want the current page i am on at the moment (lets say page 12) to be downloaded but I want to be asked where to save the document. Preferably on my desktop. Been searching forever but I have not found any script that works out for me. Regards,Dennis
Hallo, ich möchte mit Adobe Acrobat Pro DC ein Formular erstellen (vorbereiten). Dabei habe ich ein Problem mit der Verknüpfung von einem Kontrollkästchen mit einem Textfeld und dem druckreifen Formular. Mein Wunsch ist, dass beim Anklicken eines Kontrollkästchens immer das dazugehörige Textfeld im druckreifen Formular angezeigt werden soll. Wenn das Kontrollkästchen jedoch nicht angeklickt wird, dann soll sowohl kein Kontrollkästchen als auch kein Textfeld im druckreifen Formular angezeigt werden.Über die Registerkarte "Aktionen" konnte ich diese Funktionseinstellung nicht finden. Meine Frage lautet daher, ist diese verschachtelte Wenn-Dann-Funktion über diesen Bereich lösbar? Oder muss diese Funktion über Javaskript erfolgen? Falls eine Verknüpfung nur über Javaskript möglich ist, könnte mir jemand dabei behilflich sein, welche genaue Programmierung ich hierbei zu definieren habe? Viele GrüßeVerena
Hi: I currently have a document that was multiple pages, but only contains 3 pages with contact. I deleted the text form pages 4-7, but how to I actually removing the remaining pages altogether? Thank in advance!
Hello everyone , I'm new with JS in PDF. I try to find answer for my question, byt cant find it anyware. I create 3D inteactive document based on forms and buttons and it works but dont look everywhere the same. For example: sometimes PDF Reader have different Edit>Preferences>Forms> Hightlight Color. I try to write small script to change this Preference to have the same value. Any body open document have the same setupPreferences like : .It is possible? Thanks for answer.
How to rename attached files with Adobe JS? Or at least where the name of the attachment is kept? annots.name returns different value.
Hello,I have a large amount of PDF files that contain attachments.I would like to write a script that will automatically extract out the attachments.I've been looking over the various Adobe websites and I'm not sure where to start.Is there a cost to write a script that use Adobe API's? I can't find that anywhere.Is there a place to search to see if an example code close to what I want to do exists already?thanks!
If the event.value of a combo box is the item name of the current selection, then what do you use to reference the current selection's export value?
Hello, Do you know how to remove visible of Orientation axis Mark by JS in Acrobat? I serch for it in API and nothing.
I need to automate saving PDF files in a directory with enable usage rights on. Can anyone help me with this.
Bonjour à tous,je n'ai pas vraiment de connaissances en java mais je suis certain ma demande peut être réalisable.Je cherche à faire la chose suivante pour un formulaire pdf :Avoir une liste de choix à cocher avec checkbox sur la première page (Accueil de mon pdf):choix 1choix 2choix 3choix 4Lorsqu'un choix est coché je souhaite qu'il s'affiche automatiquement dans une liste sur une autre page de mon pdf.Par exemple, je choisi le 1, 3 et 4 le résultat s'afficherait :choix 1choix 3choix 4Ou si je choisi le 1, 2, 3 et 4 le résultat s'afficherait :choix 1choix 2choix 3choix 4Merci par avance pour votre aide.Cordialement, Laurent M.
Hallo zusammen, hätte mal eine Frage,A =this.getField("Artikelnummer.0").value.toString;if (A = "F.800.600") this.getField("Artikelbezeichung.0").value = "PM14/18 FFH 420-800/FFB 370-600",this.getField("Montagezeit.0").value=60, this.getField("Einzelpreis.0").value="103,83";else if (A = "F.800.800") this.getField("Artikelbezeichung.0").value = "PM14/18 FFH 420-800/FFB 600-800",this.getField("Montagezeit.0").value=60, this.getField("Einzelpreis.0").value="116,73";wenn ich dann in das Feld Artikelnummer.0 F.800.600 eingebe, werden die Felder nicht automatisch ausgefüllt. wo hab ich den Fehler gemacht?mfg
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.