Questions
Recently active
This is more of Curiosity, I'm unsure if this can be done. Now I have Script that will save to a Network Drive, like so:oNewDoc.saveAs({cPath: "/K/Penta/Split/"+filename});Now I wish to know instead of Saving it to my K Drive, could I save it by specifying the name of network drive like so:\\sovarchrpri01\d$\Penta\Split\This is just so I can avoid constantly changing the Drive Letter, since this drive letter changes for the sovarchrpri01 a lot, and just change the folders I would be saving it.
In c#, I have handle of Acrobat DC process instance running, I simply want to traverse through details of PDF documents that are open in it, and retrieve path of all those PDFs using Acrobat DC SDK (InterApplicationCommunication).For this to start with I went through SDK documentation and Samples provided along with it, but samples are not working, Acrobat.dll included in references is missing, so I went through process mentioned in documentation to add reference but Unable to find Acrobat.dll at Project -> Add Rerences... -> COM, I had installed Acrobat Reader DC v2018.009.20050Note: I am using VS2013 or VS2015, both of them giving same problem
Hello,I need help in creating a form with radio buttons:1. There are 37 questionnaires. Each question has 3 buttons with corresponding value but different for each question. Example:Question#1 YES = 4 NO = 0 N/A = 0Question#2 YES = 3 NO = 0 N/A = 0I need to be able to have a total for each field based on the value. So for instance, I selected YES on both = my total should be 7.I have not done javascript before but I am not new in creating acrobat forms, so I will really appreciate any help from all of you.Thank you.Lynne
(EDITED to clarify question)I have a group of radio buttons named KAQuestion.1 (export values are either 0 or 1), a Submit1 button, and two fields - CorrectTotal and IncorrectTotal.If the radio value is 0, submit should trigger 1 to be added to IncorrectTotalIf the radio value is 1, submit should trigger 1 to be added to CorrectTotalPlease help me with the script for the Submit button. Here's the core of what I'm looking at:var KAQ = this.getField("KAQuestion.1").value;if (KAQ == 0)this.getField("IncorrectAnswerTotal").value = +1;elsethis.getField("CorrectAnswerTotal").value = +1;I had this script as a calculation on the CorrectTotal, which works, but I don't want the calculation to trigger until the user commits to the submit buttonvar testFor = "1";var groups = this.getField("KAQuestion");var ar = groups.getArray();var cnt = 0;for (var i=0; i<ar.length; i++) { if (ar.value == testFor) { cnt++; }}ev
Hi. I am a beginner in the JavaScript SDK of Acrobat. I would like to change the size of the 3D annot but it seems the following piece of code is not working. var pageIndex = this.pageNum; var annotIndex = 0; var aMy3DAnnots = this.getAnnots3D(pageIndex); var RectArray = aMy3DAnnots[annotIndex].rect; RectArray = [48, 200, 300, 193];For fields, I have a similar piece of code and it works. aObj = this.getAnnots({nPage:0});aObj[0].rect = [48,100,300,193];Is there anything that I am doing wrong?Thank you very much for your guidance. Acrobat SDK@ !
Hi, I need help creating a JavaScript in Acrobat to calculating 10 years from a Contract Date field. I'm having difficulty with getting this to come out correctly because i need to account for leap years. Any help would be greatly appreciated.Thank you!
I am working on a form for a bar contract for use at a local 503-C Social Hall which is rented out for fundraising to support the group. The form contains five radio buttons to select the type of bar service package desired, and I am trying to have the selected package display on the billing page of the contract. The following Javascript code generates this error: "SyntaxError: Missing ; before statement 17: at line 18". Any help deeply appreciated.// This JavaScript Displays the chosen Bar Package from// Page 1 of the Bar Contract by first retrieving the results// of the Radio Button Selection on that pagevar Package = this.getField("Bar Service").value;// Then determine the Package price per personif (Package == "None") { event.valu = "No Beverage Services Requested, No Charge."} else if (Package == "Non-alcohol") { event.valu = "Non-Alcoholic Package Requested, $2.00 per person, per hour."} else if (Package == "Beer")
I have a field that exists on multiple pages. The fields name is:032stateFor example let's say it resides on page 12 and 13 (based on page index starting with 0).I am clicking a button that looks for a specific layer within the page that the button is on. The script checks to see if the specific layer state is true or false and toggles it accordingly. What I want is the 032state field to do is....When the specific layer ON THAT PAGE is visible the field is visible, when it is off the field is hidden.So if I click the button on page 13 I need it to ONLY change the display state of the field on page 13.Line 20 and line 33 is where I am stuck.Here is my code...any help would be greatly appreciated. I'm still a newbie var ocgSchematicArray = this.getOCGs(this.pageNum);var getButtonName = this.getField("032wires");var getState = this.getField("032state");var theFieldsPage = getState.page;// Look through all the layers on this pagefor (var i = 0; i < ocgSchematicArray.length; i++) {
sorry for the dumb question first. I don't even know if its possible.if there any way to put a random check mark with the click of a button? a click will provide check mark/s on the different check box/es...for example..I have 10 check boxes. when i click on a button or 1 of the checkbox, it will put check marks on 1, 2, or 3 check marks in any of the 10 check boxes?also, can i put a random but check mark on certain check box more frequent? check box 5, 6, and/or 7 gets most check mark??I am sorry if i am not clear but I am trying to generate random check mark on my 10 check boxes automatically and favors check box #5,6, and/or 7.Any help will be greatly appreciated.Thank you!
Type PDFType = Type.GetTypeFromProgID("AcroExch.App"); CAcroApp AcroAppObj = Activator.CreateInstance(PDFType) as CAcroApp; AcroAppObj.Show(); CAcroAVDoc AvDocObj = AcroAppObj.GetActiveDoc() as CAcroAVDoc; CAcroPDDoc PdDocObj = AvDocObj.GetPDDoc() as CAcroPDDoc;Now I have CAcroPDDoc object, but still unable find any library function which returns Path of document, could you please help in this. Type PDFType = Type.GetTypeFromProgID("AcroExch.App"); CAcroApp AcroAppObj = Activator.CreateInstance(PDFType) as CAcroApp;How can I get this file path? could you please help in this!
Hi.I have a multiple page document and there are buttons on the first page to direct me into different pages of the PDF. As there are buttons on the page to navigate around the PDF, I would like to disable the page change by keyboard or mouse scroll.Is it possible to capture the page change event? or is there anyway to stop user from turning from page 1 to page 2 by mouse scroll or by page down/up keys on the keyboard for a multiple page document?Does Adobe SDK provide a solution on this issue?Thanks.
I just wish to retrieve the path of PDF document opened in Acrobat DC Pro, and save paths to my database in c#,I able to get active pdf document in c# but unable to retrieve path of the document,Type PDFType = Type.GetTypeFromProgID("AcroExch.App");CAcroApp AcroAppObj = Activator.CreateInstance(PDFType) as CAcroApp;CAcroAVDoc AvDocObj = AcroAppObj.GetActiveDoc() as CAcroAVDoc;CAcroPDDoc PdDocObj = AvDocObj.GetPDDoc() as CAcroPDDoc;But not getting path of of that document, is there any other way to achieve this?Help will be much appreciated
Hello,I need create new option in Adobe Menu to "export/send" current/opened document to Java Servlet.I using free Adobe Reader DC.First my idea was to use http method in adobe java script api, but I still fighting with security permission.My java script code is in User folder: C:\Users\insys\AppData\Roaming\Adobe\Acrobat\Privileged\DC\Javascripts\Below there is a code for http method:var runExtract = app.trustedFunction(function(doc) { app.beginPriv(); try { var params = { cVerb: "POST", cURL: "http://10.179.13.16:8088/ppap/uploadFile", &
hi does anyone know the function to get platename colours used in pdf to show in an alert box?
Hello. I'm a beginner in javascript, and I have adobe acrobat X pro.I want to be able to search for a specific string within the pdf, and then save the sequence of numbers that come after that string for my file name. Then I would want to check if the following pages have that same exact sequence of numbers, and if there are then I want to extract all the pages with that certain number sequence into one pdf. However, I want to be able to keep looking for new number sequences after I have finished extracting the pages with the first number sequence. For example, page 1 NO: 0158Kpage 2 NO: 0158Kpage 3 NO: 0158Kpage 4 NO: 9090Vpage 5 NO: 223Mpage 6 NO: 223MUsing this example, pages 1, 2, and 3 would be extracted into one pdf together. Page 4 would be extracted by itself, and pages 5 and 6 would be extracted into one pdf.I kind of have an idea of how to do this, but I'm not quite sur
Hi,I have some Excel 2010 VBA code that’s been working quite well with Acrobat XI Pro.But when I run it on a PC with Acrobat 2017 Pro, the same code crashes, right at the first step, creating the App.Rather then post the entire spreadsheet here, this excerpt illustrates the problem. The code runs in Workbook_Open()'-----Option ExplicitPrivate Sub Workbook_Open() Dim OkCan As Integer Dim AcroApp As Acrobat.CAcroApp OkCan = MsgBox("About to run Set AcroApp = CreateObject(""AcroExch.App"")", vbOKCancel) If OkCan = vbCancel Then Exit Sub Set AcroApp = CreateObject("AcroExch.App") MsgBox ("Done") Set AcroApp = NothingEnd Sub'-----XI Pro, this works.2017 Pro, crashes on Set AcroApp = CreateObject("AcroExch.App")Run-time error '-2147467259 (80004005)'Automation errorUnspecified errorReferences are set correctly, both PC's.Excel 2010 on both PC's
Hello,I want to:1. Count text fields with specific color using JS (text fields are created manually with Adobe).2. Insert into them their respective number or string (like SOMETHINGX, SOMETHINGX+1 and so on).a) clean all fields before step 23. Change color of each text box (without mundane, manual work) of each box.Are these magic tricks possible?Cheers
Please help and would be greatly appreciated. I have a form that I input a value from 1 to 9. value input can be 1, 1-2, 2, 2-3, 3, 3-4, 4, so on up to 8-9, 9.when the value is inputted (from 1 to 9) , can I make a form that automatically puts a check mark on the appropriate check box? I have three check mark box which are mild, moderate and severe.to clarify here is example:in the text box type in 3 and the mild check box will get checked automatically. if value is updated to 8-9 "severe" check mark box will be checked.THANK YOU SO MUCH for your help.
I bought it about six months ago, and I purchased a new mac recently. But I can not find the download page for Adobe Acrobat Pro 12. All I can find is Acrobat DC, and I can not use my serial number to active it. So can anyone give a link to download Acrobat Pro 12? Thanks.
HiI am working on 40 pages Livecycle form and on the last page, I have section called "Office Use Only" where the user should not do anything with that page beneath to that section having a text field where we want to enter the password, if we enter the password, two checkboxes (work like radio button) will be visible "PageCheckbox" and "SectionCheckbox" and also with the "Extract" button and this to extract the forms by pages wise or section wise after checking the checkbox based on the selection Section headings will be visible and we will click extract button to extract the pages either page wise or section wise.And code which we used was working fine and we sent to the user after getting the pdf with data filled by user, we got surprised that without entering the password in "Office Use Only" section the checkboxes and extract button are visible.We have restricted the document so, they can only enter the values in the fields or they can take prints and they can't even open th
Here's a code I somehow manage to get. The only problem is It won't work unless all variables have a number in the field. How can I make a variable thinks it's zero when I don't fill in the field? var v1 = 0; var v2 = getField("MRow1").value; var v3 = getField("TRow1").value; var v4 = getField("WRow1").value; var v5 = getField("TRow1_2").value; var v6 = getField("FRow1").value; var v7 = getField("SRow1_2").value; var v8 = getField("RegRow1").value; var v9 = getField("OverRow1").value; var v10 = getField("SRow1").value; event.value = (v1 + v10 + v2 + v3 + v4 + v5 + v6 + v7) - v9;
I am using the chevron (>) symbol to provide a path for the user to access a window in the application, for example.Select Admin > Preferences > Practice to access the COB window. Is there a way to translate the chevron symbol (>) to a word for example:Select Admin and then Preferences and then PracticeORSelect Admin chevron Preferences chevron PracticeIs there a javascript or a wizard that we could run to activate words for symbols?
Hello, my question is how to check one string in one field for example:if in fill_20 the string is "Sofia" or SOFIA or sOfia or all combinations with lowercase letters and uppercase letters and so..If fill_20 is with content=Sofia and all combination with lowercase and uppercase letters then in fill_30 write value 100 if the string is different than Sofia then in fill_30 write 80?
Bonjour,Sur la base d'un document word, j'ai créé un formulaire interactif, qui contient des boutons radio également, avec un publipostage/fusion via un fichier Excel enregistré en txt.Je parviens à obtenir les premiers éléments du 1er enregistrement en faisant.formulaires . autres options de formulaire . importer des donnéesJe me suppose que je dois ajouter un javascript dans "assistant action" pour lancer l'ensemble du publipostage mais je ne le trouve pas sur le net.Pouvez-vous m'éclairer svp ?D'avance merci pour vos retours avisés.
Acrobat DC on PC or mac. I am adding an annotation to a page via a Custom Command. The text color, size, and alignment all are working. However, the typeface is always Helvetica. I have tried font.Times , font.Cour, "Times", "Courier" as the argument after textFont: Any suggestions?var annot = this.addAnnot({ page: msgOnThisPage, type: "FreeText", rect: [36,36, 612-36,72], textFont: font.Times, strokeColor: color.white}); spans[0] = new Object();spans[0].text = theMessage[0];spans[0].textColor = color.black;spans[0].textSize = 14;spans[0].fill = "invisible"; // no background colorspans[0].alignment = "center";annot.richContents = spans;
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.