Unlock the power of Acrobat SDK through our community.
Recently active
Hi 🙂I've been trying to cancel my subscriptionfor Acrobat for more than a week.I tried to connect with the support teambut the service is unavailable for more than a week.What can i do more? ThanksLioz
Please help me understand when to use .valueAsString instead of just .value. Below is the calculation I used (in black), with the portions in red added when I asked for help from this group in making it work. Since this is a form to be completed either manually or as a fill-in, I also used a validation script on A and B fields: if(event.value == 0) event.value = "";. The second part of my question, does it hurt to use vAS even when you don't need it? I read the JS Reference and I think I understand "It differs from value, which attempts to convert the contents of a field contents to an accepted format. For example, for a field with a value of “020”, value returns the integer 20, while valueAsString returns the string “020”. Here's my thought - showing fields A & B as .valueAsString changed it to a undetermined format, which then had to be manually shown to be a number by the addition of A=Number(A). But why did it need to be done in the firs
Hi,I have been using the same Excel VBA code below to populate a few PDFs in the past, .However, when I try now to use the same code for a PDF that has [SECURED] in its file name, when I open it with Adobe Acrobat Pro, it won't work.I am able to modify this PDF manualy and save the changes I make, but failing to do so with Excel VBA.Any ideas ? My Code Option Explicit ' --- Adobe Acrobat Objects --- Dim AcroApp As Acrobat.AcroApp Dim AcroDoc As Acrobat.AcroAVDoc Dim AcroPdf As New Acrobat.AcroPDDoc Dim PDFJSO As Object ' ===== List of Fields in PDF ===== Const AddressFldName As String = "p_Street_Address" ' address Const CityFldName As String = "p_City" ' city Const ZipCodeFldName As String = "p_Zip" ' Zip Code Sub FMLSSaleAgreementPDFPopulate() Dim PDFFullPathAndName As String Dim PSAFullFileName As String ' set the Full path and PDf file name
How to make these two groups of checkboxes happen?? (note - my checkbox "group" is set up with same name but different choices 'Yes and No' so that they act more like radio buttons) These two checkboxes are independant of each other.CheckBox1 - Check Yes if A4 >= A5, else NoCheckBox2 - if A7 is "" then "", Check Yes if A7>=A3 or Amount7>=M, else No Based upon other calcs you have helped me on, I've got my variables set up (I think) but how do I write the rest of the query? var CB1 = this.getField("CheckBox1"); // Yes or No;var CB2 = this.getField("CheckBox2"); // Yes or No;var A1 = this.getField("Amount1").valueAsString; // amount ; .......through A11var M = this.getField("Minimum").valueAsString; // minimum amount;{ A3 = Number(A3); A4 = Number(A4); A5 = Number(A5); A7 = Number (A7);&nb
Hi,I'm writing a JavaScript action that creates a new file in a loop with var newDoc=app.newDoc(); and close this file at the end of the loop with newDoc.closeDoc();This action works fine... until the 49th file, then I have a message in the console window (in French):Vous avez atteint le nombre maximum de fichiers pouvant être ouverts. Vous devez fermer certains fichiers avant de pouvoir en ouvrir ou en imprimer d'autres.That means: You reached the maximum number of files that can be opened. You must close some files before opening or printing other ones.What I don't understand because the files are not open!!! It is certainly necessary to empty a variable or a memory somewhere.Does anybody have an idea?Thanks in advancebernard
Hi There,I want to toggle the button color of a pdf form along the with the caption/label color of each button. For this, I have written this code: for(i=1;i<bn+1;i++){ var b = "btn"+i; var f = this.getField(b); if (color.equal(f.fillColor, color.white)){ f.textColor = color.white; f.fillColor = color.red; }else{ if(bn==1){ f.fillColor = color.white; f.textColor = color.black; }else{ f.textColor = color.black; } } Everything is working well except for the color of the Caption/Label. It is black in default and remains black even the fill color is changing. How to change the Caption/Label color to white too?
Hey All, I have an Adobe Reader DC Plug-in that allows a customer to save the current PDF to our system. It is basically a file copy. When the user clicks the toolbar, a screen is presented that allows them to identify the Client/Matter so the location to save the file can be determined.Everything works great as long as Protected Mode is off. I use a .NET COM DLL (Wrapped in C++) to present the UI to the user. Everything is registered properly and I have the correct "permission" to use the plug in reader and it is signed. The question is how do I get Reader to allow it to run in Protected Mode? Thank you for any help and/or direction.Mark
Acrobat Hello... brand new to Adobe acrobat pro DC. Trying to create new pdf form using abobe acrobat pro dc and have few questions for many smart people. Can you create drop down menu in pdf form with only able to select bi weekly monday? For example you can only select Mondays of following prior and after. Mon, Dec 2, 2019 Mon, Dec 16, 2019Mon, Dec 30, 2019Mon, Jan 13, 2020.... and continues to be able to only Mondays? thank you for your help!
HiHow to convert PDF to word/txt/excel using sdk.I would like to convert many files to another format. And are there any restrictions?Cloud you let me know the documentation-link?
I created a PDF form to be distributed to a lot of clients. Inside the PDF form I created a lot of information buttons in javascrip. However, in some occasion there's a lot of text to show for instructions and when using a laptop specially, they can't see the bottom of the box because it goes off screen on the form. I know all about changing resolution and changing the view size as well, that isn't the problem. I need to resize the popup box to make it wider instead of longer, to be able to show the text properly. I was wondering if there's a way to adjust a popup box (or any javascrip created box for that matter), to play with the width and lenght size? I'm using Acrobat DC.
I regularly need to add password security to PDF forms so have been looking into creating an action to do this in Acrobat - which I've successfully done. However, if I start this action on a batch of files it still asks me to input the password twice for each form. Am I doing something wrong or missing a setting? Not having to input the password over and over really was the draw card for this action! Alternatively - is there another way I can create a droplet or batch preset to run forms? I'm quite limited in my tech knowledge so bare that in mind when suggesting options.Thanks in advance!
Hi again, everyone. So, I've got two folder level scripts that are practically identical. The only difference is that one is meant to merely save the current PDF Form open to specific folder based on field data, the other is meant to batch import from a tab deliminated file and save it based on the same criteria. PasteBin of Save Script - https://pastebin.com/NdWSzKxLPasteBin of Import Script - https://pastebin.com/Wv0JG52p The import script is the one not working, but only part of it isn't. The import is done with a while loop with a switch block inside of it. The first 4 cases in the switch are run if the last character of the string is a non-number (with NaN) and the -1 case is run if the string ends in a number. It runs the imports of the first four cases with ease, but for some reason it breaks if it's all numbers. Whereas my Save script runs everything just fine. The code was literally copy-pasted from the Save to the Import but for some reason
Hello folks,I need some assistance by toggling the visibility of layers. I am not to familiar with JS yet but i managed at least to show single layers depending on what is selected from a list. The layers hold descriptions in English, German and French language. This layers are shown if i put in the following code into the validation field: var layers = this.getOCGs();var v = event.value;for (var i = 0; i < this.layers.length; i++) {if (layers[i].name == "Deutsch" && v == "Deutsch") {layers[i].state = true}else if (layers[i].name == "English" && v == "English") {layers[i].state = true;}else if (layers[i].name == "Francais" && v == "Francais") {layers[i].state = true;}else {layers[i].state = false;}} How do I manage to show another layer named "Hintergrund" (German for Background) all the time, no matter which of the language selections has been made? Thank you in advance for your kind support! Matthias
Hello,I have several fields on a form that are required. Instead of displaying a generic message stating that a required field has been left blank, I would like to display a specific message for each required field, if left blank. Below if what I was trying to start off with but I get a syntax error stating "missing; Before Statement 1: at line 2 Var CoreBankName = this.getField("282_Core_Ref_Bank_Name");if (CoreBankName !== null){CoreBankName.setFocus()app.alert("Core Client Bank Name is required")};
When right clicking a PDF file and choosing to print, Adobe Acrobat (or Reader) opens and then minimizes. Is there a way to have it close automatically?
When creating a dialog box containing a listbox with the execDialog function I am having a problem with Adobe Acrobat Reader DC. I want to create a listbox with no item selected. When using the array like { "Line1": -1, "Line2": -2, "Line3": -3} the "Line1" item is selected when it has a code beside it of -1 not +1. There is no problem when using an alterantive to Adobe Reader I have. Thanks for any help.
Hi,I select text using the PDTextSelectCreateWordHilite method. I need to change the color of the text characters. How to do it.Thanks.
Good Morning. I am trying to figure out how to get a field to automatically populate a value using java script with an if then statement. I want it to look at the value of two other fields and return which is the highest, below is the code i have been using. Any and all help is appreciated. I have tried it on both the calculations tab with custom java script and on the Actions tab but am unsure which trigger to use and which is correct. if(this.getField("EXV").value > this.getField("CFMV").value){ event.value = EXV } else { Event.value = CFMV } [Moderator moved the thread to the correct forum]
I am trying to take 2 times (start time and end time) and have the total time determined. I want it to come out so that if it is an hour and a half total it will look like 1.30 instead of 1.5. I am using Acrobat Pro DC and it always calculates correctly but when I take the file and try it on a work computer which is a different version (not sure which) it comes up with a different answer. Could someone look and see what I am doing wrong please. Sometimes the start time may be 23:00 and end at 00:30 so that is why I added the last part of the code but not what is wrong. Thank You for any help! var hrsStart = parseInt (this.getField("ST").value.split(":")[0]); var minStart = parseInt (this.getField("ST").value.split(":")[1]); var hrsEnd = parseInt (this.getField("ET").value.split(":")[0]); var minEnd = parseInt (this.getField("ET").value.split(":")[1]); if (minStart > minEnd) { var minRez = 60 + minEnd - minStart; var hrsRez = hrsEnd - 1 - hrsStart; } else
The Help API says that the PDETextGetText method (PDEText pdeText, ASUns32 flags, ASInt32 index, ASUns8 * textBuffer) gets the text for a text run or character.textBuffer - the text of the specified character or text run. I created a PDF file in which I placed the text: abc. I put the following statements in the code:ASUns8 buffer [128];PDETextGetText (pdeText, kPDETextRun, 0, buffer);The debugger showed that the contents of the first 3 bytes of the buffer are '\ x1', '\ x2', '\ x1'. What then is written in buffer and why does it not match the text from the file?
Hello. We are using folder level javascripts to save data from our PDF files to a text file for data imports. This worked very well on windows but now were trying to use the same system on a Mac Mojave 10.14.6 machine. Currently it is creating the text file but it is not writing the data to the file. In this situation, the variable for our data is "lines". We ensured that the data is coming from lines by making its value ".txt" and adding it to the path. Here is the code: qipSaveCSV = app.trustedFunction(function(doc, path, lines) { app.beginPriv(); myDoc = app.newDoc(); myDoc.saveAs(path, "com.adobe.acrobat.plain-text","", false, true); var f = myDoc.addField("lines", "text", 0, [0, 0, 0, 0]); f.multiline = true; f.value = lines; myDoc.saveAs(path, "com.adobe.acrobat.plain-text", "", false, true); myDoc.closeDoc(true); app.endPriv(); }); If you have any ideas as to why this isn't functioning properly, help would be greatly appreciated.
Hi I work for a charity and we need to password protect are PDF's when sending reports to the Health Board can you advise me which Adobe package I should buy?Also do you offer a discount for charities?Thank you for your assistanceRegardsClive ChappleAdministratorCottage Home Child and Family ServicesRegistered Charity No in Ireland CHY19092
Opening a drawing created using Microsoft visio enabled you to get Property and Value through the Object Data Tools option.I want to open a drawing from website via pdf.js javascript file and get the data in the same way.Is there a support sdk to access data in drawings via html or web javascript?
First, let me say that I know just enough to be dangerous...so please be kind. FYI - I have Acrobat, full paid, most up to date version.I have created a form and as part of that form I have multiple boxes for inserting photos. I'm using the script event.target.buttonImportIcon(); to insert the photos. I'm aware that in the free version, only PDFs may be inserted. However, I do have the full version. When the box pops up for me to find the photo to insert, it defaults to only showing PDFs. I can change that to JPGs and browse, but this is cumbersome because each time I complete this form I need to attach 12-18 photos for documentation. My question is, Is there a way to have the box that pops up set to view JPGs? Or at least to view all file extensions? I know this doesn't seem like a huge deal, but I do 3-5 of these forms per day, with 12-18 photos each, so it would be nice not to have to change the file type I'm searching for each time.Thanks so much for your help!
During debugging a 32 bit of an existing Acrobat plugin C++ application I received the error messages C2131 (expression did not evaluate to a constant) and E0028 (expression must have a constant value). After commenting out the #include <vector> I was able to compile the file without errors.In order to get the possibility of reproducing these errors I extracted the Bates numbering example from the Acrobat SDK and opened the solution file with Microsoft Visual Studio 2019 (16.3.10), added the include directories of the SDK, added _XKEYCHECK_H to the preprocessor definitions and compiled this example on a Windows 10 computer. I am getting now also the errors E0028 and C2131 also with this example application from the SDK. The selected Windows SDK Version is 10.0 (latest installed version) and the selected platform toolset is Visual Studio 2019 (v142).Did anyone face the same issue?
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.