Unlock the power of Acrobat SDK through our community.
Actividad reciente
Hi,I am using the Mac OS X versions of Acrobat Pro DC and MS Word (Office 2016).All software updated to latest versions as of March 2016.When I save the Word document as pdf, or use Acrobat Pro DC to convert the Word document to pdf,the TOC hyperlinks are not created in the pdf file.How to solve this problem?
I have created a custom date received stamp that asks for the date from the user. If the user leaves it blank it defaults to the current date. This stamp works perfect in Acrobat 11 but when i put the stamp in Adobe ReaderDC it works as long as you enter a date but returns a blank line if the user leaves the prompt empty rather than return the current date. Here is the code I used.var cAsk = "Enter Date Received - Leave Blank For Current Date";var cTitle = "Date Stamp Date"; if(event.source.forReal && (event.source.stampName == "#xM1uT4oWyH3DQs6bmmc9CC")){ var cMsg = app.response(cAsk, cTitle); event.value = cMsg; event.source.source.info.DocumentState = cMsg;}if (event.value=="") event.value = (new Date()).toString();Anyone have any suggestions to make this work in ReaderDC?Mike
I have a series of numbers that I need to add, they are in 9 fields. The page is a template, the first problem was getting it change the names of the fields to match the spawned page within the script. I solved that problem.The current problem is that if one of the fields is blank, it does not read that field as a '0', it stops adding and combines the rest of the numbers as if they were text.So, if the first 3 fields were 1,1,2 the result would be '4', however if they were 1,1, (blank),2 I would get '22'. It adds the first 2 numbers, then it hits the blank, then it will combine the numbers thereafter. 1,1,(blank),2,3,4 would be 2234, I want it to = 11I need it to consider a blank field a zero so that it continues to add, the 'custom calculation script' is below, please help.(function () {var f_name = event.target.name; var aName = f_name.split("."); var f_prefix = aName[0] + "." + aName[1];event.value = this.getField([f_prefix] + ".ADA A QTY").value+this.getField([f_prefix]
Hello, I'm working on a fillable pdf budget sheet. I want to add in formulas to calculate percentages. I found the code below to remove my "Warning: Javascript Window" issue from a previous forum article. I also want to add in the equation "AmountRentandFees/(TotAnnInc/12)". It works as a stand alone equation but it does not work with the code below. Is there a way that I can use both?? I'm not JavaScript savvy. Any simple ideas people may have would be greatly appreciated! Thanks!PatRemove warning:JavaScript window message from dialog (JavaScript)var dialogTrust = app.trustedFunction(function(){app.beginPriv();var data = { description: { name: "Test Dialog", elements: [{ name: "Hello World", type: "static_text", },{ type: "ok", },] } }; app.execDialog(data);app.endPriv();});
I have a plug-in that deletes all pages from a document using the following code:// get the active PDF documentAVDoc currentAVDoc = AVAppGetActiveDoc();PDDoc originalDocument = AVDocGetPDDoc(currentAVDoc);// number of pages in the documentint numPages = PDDocGetNumPages(originalDocument);// delete all pages from the documentPDDocDeletePages(originalDocument, 0, numPages - 1, NULL, NULL);The problem is that I'm getting an error message that simply says "Bad parameter" when my code calls the PDDocDeletePages() function. So I tried to delete each individual page one at a time by doing this: for (int i = numPages - 1; i >= 0; i--) { PDDocDeletePages(originalDocument, i, i, NULL, NULL); }The same error message still appears, but it happens once there is only 1 page remaining. The other pages are deleted without any problem. I have even tried reversing the loop and deleting the pages in the opposite order, but the error still comes when there is only 1
Hey Everyone,I'm trying to populate a radiobutton selection based on the values of two drop down values in Adobe Acrobat X. Here's my javascript, but it doesn't populate the radiobutton/check it. I've put the javascript as a validate event in the second dropdown, although it doesn't work under calculate either.if(this.getField("ddlOne").value == "Admin" && event.value == "User") {this.getField("Checkbox").value = "On";}Any ideas ?
Hi;I'm looking at creating a plugin in the near future. And being able to use VS 2015 instead of VS 2010 would be a giant help. Will the SDK allow use of VS 2015 in the near future? Or are we stuck back in 2010 for the foreseeable future?thanks - dave
HiI am trying to create a form on Acrobat Pro 9. I have a drop down menu for course name and would like 2 fields to be populated with the cost and one to duplicate the course name.I have tried to create a script using the examples online however I keep receiving an error... "missing ; before statement 1: at line 2"So if I pick course name I would like it to populate the cost into field Text15 then into field Course cost and then duplicate the course name into field Copy course nameAny help would be greatly appreciated.ThanksJo
Hi,Can somebody help to export the hyperlinks to txt file from the PDF using Javascript of Acrobat Actionlist.Siva
Hello Everyone,I need to import some data from an excel with at least 250 rows, and 7 columns.the first try was saving the document as tab delimited and then open and import the data manually from Adobe, IT WORKS.now i need a step more, doing it automatically with all the rows.I've found an user which has a solution in his page: Batch-Import Excel Data into PDF Forms - KHKonsulting LLChe used this code to explain how to do it:// specify the filename of the data filevar fileName = "/Users/username/tmp/data.txt"; // the tab delimited text file containing the datavar outputDir = "/Users/username/tmp/"; // make sure this ends with a '/'var err = 0;var idx = 0;while (err == 0) {err = this.importTextData(fileName, idx); // imports the next recordif (err == -1)app.alert("Error: Cannot Open File");else if (err == -2) app.alert("Error: Cannot Load Data"); else if (err == 1) app.alert("Warning: Missing Data"); else if (err == 2) app.alert("Warning: User Cancelled Row Sele
I am attempting to create a form checklist for completing tasks that require documentation at my workplace. I would like to create a button that will allow any existing PDF to be inserted into a new page after the checklist. Is it possible to script a button that will allow this? And I would like to use different buttons for each check so that multiple separate pdf files can be inserted after the checklist. Even one button that would allow multiple insertions at different times. Ideally, these files would all be recognized PDF pages that can be sorted and deleted as needed.
From my plugin I can retrieve the Acrobat version via AVAppGetVersion. For Acrobat 11, the update number is part of MinorVersion:Version 11.0.19 - MajorVersion = 11, MinorVersion / 256 = 0, MinorVersion MOD 256 = 19But for Acrobat DC, I get MajorVersion = 15, MinorVersion / 256 = 6, MinorVersion MOD 256 = 0Is there any way to retrieve also the update number (e.g. for Acrobat DC: 2015.006.30280) ?Thank you!
I have four different PDF forms that I have added to a Portfolio within Adobe. These forms all have several common fields such as Part Number, Serial Number, Stock Number, and such. I want to link these forms so if the user completes the common fields in one form it completes the same ones in the other forms also. Is this possible within the Portfolio or is my only option to combine the four into one form? I'm working with Adobe Pro XI and have added the AGI tool set.Thanks for any help,Chris
I have a C# application that makes use of Interop.Acrobat.dll.static CAcroApp mApp;I instantiate the application as follows:try{ mApp = new AcroApp();}catch (Exception ex){MessageBox.Show("Failed to create Acrobat Application:\n"+ex.Message);return;}I am getting the following results:Windows 7 Service Pack 1 --- successWindows 10 Enterprise v. 1607, OS Build 14393.576 --- successWindows 10 Pro v. 1607, OS Build 14393.693 --- failThe exception message is as follows:Creating an instance of the COM component with CLSID {85DE1C45-2C66-101B-B02E-04021C009402} from the IClassFactory failed due to the following error: 80004005 Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL)).Note that Acrobat Standard DC runs without a problem on all of the machines as a stand-alone application (i.e. non-interop).Anyone else experience a similar issue and/or know of potential resolutions?Thanks for the help. -Mark
. Madcap say this is a known issue with the latest Acrobat DC. The error is "There is a problem with Adobe Acrobat/Reader if it is running please exit and try again (9:9)", anyone know of a fix for this yet? I have uninstalled and reinstalled all Adobe products, but still the same error.
Hi Colleagues!Need to complete the script (test) which count how many times WORD appeared in PDF document.I am using this scriptOption ExplicitDim accapp, acavdocuDim pdf_path, bReset, Wrd_countpdf_path = "C:\Tips.pdf"Set accapp = CreateObject( "AcroExch.App" )accapp.Show()Set acavdocu = CreateObject( "AcroExch.AVDoc" )If acavdocu.Open( pdf_path, "" ) Then acavdocu.BringToFront() bReset = 1 : Wrd_count = 0 'FindText:Finds the specified text, scrolls so that it is visible, and highlights it Do While acavdocu.FindText( "Primary", 1, 1, bReset ) bReset = 0 : Wrd_count = Wrd_count + 1 Wait 0, 200 LoopEnd If.....the problem is that loop didn't finish. It count words on each page till the end (8 pages) and then started again,Please tel me how can I count all word which I need and exit from the loop.Thank you in advance
Good morning, I am trying to set up a JS that allows a button to look for any missing required fields. Text fields and radio buttons are the types of fields that are required throughout this form. I need it to prompt all missing required fields, then once all are complete, prompt that the form is complete and ready to be printed, then followed with the print screen. At this point, I cannot figure out how to get it to point out the radio buttons or prompt when complete. It does pop up the message for the text fields and does pop up the print screen once "complete", however, whether the radio button options are selected or not, it shows all radio buttons in the error as if they were not completed. There is one gender radio button selection and the rest are "yes"/"no" type of options where they have to go through and click either yes or no on all listed. The default is set to where neither is selected.This is what I have so
Is possible to export the data on a form into a spreadsheet (preferably append data to an existing spreadsheet) when the user presses a button on the form? If so how would I go about doing that?
I have several password protected filled forms with a calculation error. Is it possible to change the calculation without open and change all the forms?
I've been using Adobe Acrobat Pro for over a year and ever since I updated to Windows 10 I keep getting a pop-up window everytime I open a pdf -- "Adobe validation testing has found this copy of Acrobat is not genuine."Any suggestions?
I have a list box, Tuition, with three available values, 0 (default), 1649, and 1872. In another field (FICA), I want to create a conditional calculation based on the result of what is selected in Tuition. The purpose is to determine if an amount is taxable based on the result of a calculation. But, I can't even get past square 1, determining which item User has selected! This is not the entire script that will eventually be in FICA. I'm just trying to diagnose my problem.The following code was copied from a tutorial. var nTuition = this.getField("Tuition").value;if( nTuition = 1649) event.value = 1649;else event.value = 1872;When executed, the above will only return 1649, regardless of what is selected in Tuition. I have Tuition execute the calculation immediately. And, the FICA field is top in the calculation order. 1649 appears in FICA, even after resetting all fields (should be 0). It would seem, given the above code, that the default Tuition value of 0 would return 1872, no?What i
I am building a customised Action in Acrobat using JS and I want to be able to import a list and iterate through it, like the built-in "Search & Remove Text" tool does. I can't figure out a way to edit the built-in tools though, or a place I can find the code behind them.If this isn't possible, does anyone know where else I might find JS code that imports a list and iterates through it?Any help would be very much appreciated!
I'm trying to figure out how to sum a column of radio buttons. I've been presented with a form with 5 categories or questions that need to be rated from 1 to 5. The layout is something like:Q1: 1 2 3 4 5Q2: 1 2 3 4 5Q3: 1 2 3 4 5Q4: 1 2 3 4 5Q5: 1 2 3 4 5 T1 T2 T3 T4 T5 Grand TotalThe idea being that as someone rates each question, the value of the checkbox they select is then summed at the bottom of the column so I wind up with a total of the 1s that were
I have scripted "canned" emails that employ rich text formatting, such as line returns and tabs using \r and \t. Using a mouse up action with a button and the app.mailMsg method, the script opens my default email client, Mail.app, and generates the email, ready to send to the addressee. The addressee and contents of the email are determined by values entered in other fields that are referenced within my script as variables.I also want this script to work with Microsoft Outlook, but Outlook seems to only offer HTML and plain text. The rich text formatting is ignored by Outlook.So my question is this: can I amend my script to place line breaks, returns and tabs into either plain text or HTML email message in Outlook?David
Hello, I'm creating a form on Acrobat X Pro and I'm trying to restrict the user from entering future dates in a textfield with the date format. Basically the date has to be today's date or prior. I'm a newbie to Acrobat form scripting, so I was wondering how to go about this.Preferably, I would want to initiate this on field exit if possible, but if not then do it on form submit validation / both. I assume I would have to use a compare operator against the current date such as 'var CurrentDate = new Date();' but I need to know how to associate with the field's value and if any conversion is required, moreover how to initiate this on the exit event.Additionally, I have a 3 part date field which needs to be validated. It's split with one field for Month, one for Day and one for Year. Is it possible to combine the 3 fields and validate the date for future dates ? Appreciate any insight on this. Thanks!
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
¿Ya tiene cuenta? Iniciar sesión
¿Aún no tienes una cuenta? Crea una cuenta
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.