Questions
Recently active
Can anyone help, i have very limited Javascript knowledge. I am setting up a form, with two check boxes as below. When NO is selected then YES is unselected, but also the text fields below to be hidden and when Yes is selected then NO to be unselected and the text fields to be visble.I can either get the two check boxes to work. or the No to hide the fields, but not both.Is anyone able to help.
So, I am trying to figure out how to get code to run within the console. It seems like for simple things like 1+2 it works but any functions I have written as a document JS does not work. What am I missing? For reference, I am splitting some files...function Split() { var totalPages; var i; var arrNames = [ "SOME ARRAY HERE" ]; var targetPath = "/C/Users/SOMEPATH/"; totalPages = this.numPages; try { for (i = 0; i < totalPages; i++) this.extractPages({ nStart: i, cPath: targetPath +arrNames + ".pdf" }); console.println(targetPath +arrNames + ".pdf"); } catch (e) { console.println("Abort
Hi,Is it possible to detect in an Adobe Plugin if the active document being opened displays/has the (SECURED) flag set?If so, how would we go about checking the status of this flag?
Hi,Does anyone know if it's possible to check within an Adobe plug-in if the content of the selected document has changed? (e.g. Via Adobe Acrobat).Essentially I want to be able to say:-if document content changed, save using PDDocSaveWithParams (as it needs to save to a different folder etc..)-else save using AVDocDoSave*This is to get around an issue with using PDDocSaveWithParams with protected/secured documents.
Hello, I wonder if anyone could please point me in the right direction of how to achieve the following:Acrobat DCI have a drop-down box which contains five items. I have managed to change the colour of the text for each item when selected within the drop-down box. What I would really like to do is to change the background colour of 5 different text fields as well. So selecting item 1 turns the text red in the drop-down and also makes the background colour of a text field red. selecting item 2 makes the text turn blue in the drop-down and also makes the background of an additional text field blue. And so forth... No selection means the colour is transparent.I cannot get my head around this. If anyone could please point me in the right direction I would be eternally grateful.
Thanks in advance for everyone's help. I'm using Pro 11.I'm creating a document template where I need certain textboxes to change based on whether a specific box contains certain text, but where there is still other text in the box. For example, if the primary textbox contains "2019-PR-123" I would like a separate box to return "Product", but if the box contains "2019-LM-123" I would like the separate box to return "Labor". But I want the return values to be only based on whether the primary box contains the "PR" or "LM" irrespective of what the other numbers are.I've searched and searched and can't seem to find a simple way to do this. And I'm easily able to achieve the result of the primary textbox contains only the "PR" or "LM" using an if/then based on the value of the primary box, but I need it to do an if/then based not on the value of the box but whether the box includes certain text within the large text.
hello. I have integrated custom plugins with Adobe Acrobat DC . but these plugins are available in the Acrobat DC of my local system. In order to share them with the third party/end-user, we thought of integrating these Acrobat plugins to Adobe Document Cloud so a third party can access them from cloud. How can that be done???
when there are several fields required that are not filled out, how can i either list in the alert the fields and / or take the user to the first required field with a focus?
In other words, if I create a catalog file, can I read that catalog file via a Python, C#, Java or program in a different language and return a list of files to the user that contain the person or place name searched for? This would allow us to make our archive of PDF files searchable on a web site. We do not want Google to search these files, they are not publicly available. Users need to log into the web site before they will be allowed to search and download PDF files matching their criteria. Also, it would be great if the search would not just return the file name, but some context of each match. Is there something like this? If even just the indexes of the PDFs are accessible via API, it might be possible to use a library like BeautifulSoup to satisfy this need.
Right now I have the following script in my form://</ACRO_script>//</AcroForm>//<AcroForm>//<ACRO_source>AreaDuesQty:Calculate</ACRO_source>//<ACRO_script>/*********** belongs to: AcroForm:AreaDuesQty:Calculate ***********/var A = +this.getField("ChptTotQty").value;var B = +this.getField("AffTotQty").value;if( A > 0 ) event.value = A + B;else event.value = "";It works great as long as there is a number in the "ChptTotQty" But, I want it to give me a number whether there is a number in "ChptTotQty" or "AffTotQty" field. Is there a way to make "if ( A > 0 ) event.value = A + B;" Into "if ( A > 0 ) or ( B > 0 ) event.value = A + B;"Any help would be greatly appreciated.Thank You
After entering a Custom Keystroke Script in the edit box, the script works but it disappears from the edit box when revisiting the format properties.It is also not shown in the "Edit All Scripts" lists of scripts.Even after saving the file and opening it again, the script is gone but still works.Using Acrobat Pro DC 2019.012.20035Note: There is no Custom Format Script; only a Custom Keystroke Script.How can I view the Custom Keystroke Script again and update it?Thanks
Hello guys!I tried finding a solution for this over the past 2 weeks, but I didn't come to a reasonable conclusion.Let me describe what I have and what I need to do: I have a pdf form which gets filled by the staff at my office and I need a button to save (silently if needed) the file based on different text field values (numbers and letters), in the same folder as the original form. It would be nice to flatten everything before so people won't tamper with what was filled, but that is another discussion.This being said, during research on the forums, I saw that the saving function of pdf's is not straightforward (meets the purpose of pdf, of course) and I need 2 things:- a script which I would place in the folder that I use and/or in the install directory of Adobe Acrobat- the script that goes in the button itself.I already saw that people have tackled various varieties of this issue (either same folder or field based save as), but not both at the same time. I tried putting together so
Hi,I created a custom action which executes a javascript script on selected files.Rather than starting the action from Acrobat and selecting the files, I would like to select them in Windows Explorer and launch the action through a context menu item (like we do with the default "Combine files" item).Is it possible to create a right-click menu entry which tells Acrobat to use the selected files for a given custom action?Thank you in advance for your help.
Can somebody help me create a javascript in Adobe Acrobat Pro to make a single layer invisible and visible again with the clicking of the mouse by only using one button? e.g 1st click to make the layer invisible and the 2nd click to make it visible again. And then to repeat this for other layers. Thank you!
Hi!I am new to acrobat plugins. I am having set of tools developed in acrobat java script like auto bookmarking. I wanted to convert this into plugins using c++. I dont know where to start and how to start. Can any one help me on this? How to create? Which platform is required to create plugin? How to create .api file?Ariv
Hello,I got a question.I have 8 fields which could be ted from 1 to 6 and if they could not be rated for certain circumstances it would get the value of x.I wanat to calculate the avarage of rated parameters.When I use the "average" function in calculation the number of enetered information would be fixed. That means if all parameters are rated the result is ok but if a parameter could not be rated it ruines my calculation (while the number of species are fixed in this case 8).Isthere any solution for my problem? such if a value is not zero it counts otherwise should be negelcted.Please help me.BR
i have tried 2 methods to add a way to show/hide a label from a dropdown event.method 1 - add to the dropdown > format > custom keystroke scriptvar lblServiceUnit = this.getField("lblServiceUnit"); var FacilityType = this.getField("Facility Type"); console.println(FacilityType.value);if (FacilityType.value=="Federal") { lblServiceUnit.display = display.visible; } else { lblServiceUnit.display = display.hidden; } when i change the drop down it always seems to printout the last value and not the current value. i am changing the dropdown via mouse.method 2 - dropdown > actions > select trigger > ? mouse up or onblur or mouse exitthe javascript added here is the same as above but it does not seem to fire at the right time. i have to click out and sometimes click back into the dropdown to see it fire.
Hello everyone,I've come across some tricky issue while accessing the values of my fomular fields. Some of them had blanks at the end, so when I tried to access them like this ...Private Sub GetFormularValues(ByVal p_arrElement As String, p_intColumn As Integer)Dim AcroApp As Acrobat.CAcroAppDim AcroPDDoc As Acrobat.CAcroPDDocDim AcroAVDoc As Acrobat.CAcroAVDocDim JSO As ObjectDim i As IntegerDim f As ObjectDim fn As StringSet AcroApp = CreateObject("AcroExch.App")Set AcroPDDoc = CreateObject("AcroExch.PDDoc")'/ Check if the document can be opened for accessIf AcroPDDoc.Open(p_arrElement) ThenSet JSO = AcroPDDoc.GetJSObjectWith JSO'/ If there are fields in the document, write their values onto first sheetIf .numFields ThenApplication.ScreenUpdating = FalseFor i = 0 To .numFields - 1fn = .getNthFieldName(i)Set f = .getField(fn)Sheet1.Cells(p_intColumn, (i + 1)).Value = f.ValueDebug.Print f.ValueNext i Application.ScreenUpdating = TrueElseMsgBox p_arrElement & " is empty!.")End IfEnd
Hello everyone, I am using Acrobat X. this.movePave(3,5) comment moving 4th page to 6th position. this.movePage(5,3) is not moving 6th page to 4th position. Please some one explain how to use this.movePage().
I am new to both PDF form and JavaScript, so I apologize if this question seems obvious, or isn't worded effectively.I'm attempting to create a custom text field which will calculate the user's "Star Wars Galactic Birth Year" as part of a PDF form. Basically, type in your age, and it will spit out your "birth year", appended with BBY or ABY depending on if the number is positive or negative. (35ABY acting as the "current" year, in this example.) Here's the custom script I cobbled together. ("Age" is the name of the field, as I'm sure you could surmise.)event.value = Math.abs(a) + bvar a = (35 - this.getField("Age").value)if (a = -integer) { var b = 'BBY' } else if (a = +integer) { var b = 'ABY' } else if (a = 0) { var b = 'BBY' }I've never used JavaScript before, so I assume am making some kind of very basic mistake. The calculation doesn't run consistently, and it never seems to allow the text field to be left empty. The math seems to get wonkier with each attempt. Is there a way to h
First, I may not be using the correct terminology. I want to have the password displayed as asterisks as it is being entered—that's what I'm calling "hashed."try67 gave me an excellent, simple script to protect the text field in question with a password, but it doesn't conceal the password with asterisks while it's being input (I didn't think to ask for that). I don't know anything about sql or php, so I'm hoping there is a simple line or three of js that can do this for me. Here's what I have so far:The 'Score' field is the one in question, and here is the line of code try67 was kind enough to provide and which works just fine:event.rc = (app.response("Enter the password:","","")=="1234"); //where "1234" is the password.This is placed as a custom validation script in the field's properties modal.When the js alert window pops up, it automatically places the cursor in the password entry field, which is great (another script I tried didn't), but when I enter the password, the characters
So, I have this file with 20 something pages in it. I wrote some code to split the files into different individual files based on a bunch of file names I have put in an excel spreadsheet (like page 1 is called file XXX and page 2 is called file YYY). It worked great for a good number of the files I have, but apparently, it did not work for all files. What troubles me is that, I have the following two lines in the code. which writes to the immediate console based on the save operation, and all of these operations showed as successful. Not all the files show up in file explorer (windows) after the save. Is this a bug within the PDDoc.save function? Or is there something I missed that is causing this? If NewPDF.Save(PDSaveLinearized, WritePath & sh.Cells(StartRow + j - 1, i).Value & ".pdf") Then Debug.Print sh.Cells(StartRow + j - 1, i).Value & " Success"Else Debug.Print sh.Cells(StartRow + j - 1, i).Value & " Failed"End IfI initially th
Subscribe Acrobat:Acrobat DC is offered as a subscription purchase. You can buy Acrobat Pro DC or Acrobat Standard DC through an annual or month-to-month subscription plan. It includes Acrobat Pro or Standard for your desktop, plus Adobe Document Cloud mobile apps and Document Cloud services.Select a store to order Acrobat DC products or contact an Adobe Authorized Reseller. To purchase Acrobat DC for your organization, learn more about Acrobat volume licensing Adobe license management, discounts | Adobe Buying ProgramsAdobe Partner finders: Adobe Partner FindersWhen you subscribe to Acrobat Pro DC or Acrobat Standard DC, you pay a low monthly fee to get:Acrobat Pro or Acrobat Standard desktop software, respectively – including ongoing access to new features and upgrades at no additional cost.Adobe Document Cloud services that unlock premium mobile features in Acrobat Reader mobile app and premium online services to help you do more with PDFs on the go.New and enhanced features are typ
Hello,is it possible to check if a PDF page has no annotations like comments of Fill and Sign. I'm working with Adobe Acrobat and VBA.I need a function with result = false if there is no Comment or Fill and Sign on a page of a PDF document. I hope someone can help me with a little bit code.Best Regards from GermanyJosua
I currently open each file, open the js console, and type the code for each file. I have 100+ files and it is quite cumbersome.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.