Unlock the power of Acrobat SDK through our community.
Nyligen aktiv
Hello,While finding text, especially large text, sometimes, it gives me below error:"The RPC server is unavailable."When I debugged the code, I came to know that error comes at the function SearchExecuteQueryEx.Here is my code snippet:LPCWSTR secName = convertCharArrayToLPCWSTR(sectionName);LPCWSTR arg = L"value";LPWSTR searchText;DWORD size = 1024;LPCWSTR filePath = convertCharArrayToLPCWSTR(iniFilePath);//Gets the search text from INI fileGetPrivateProfileStringW(secName, arg, NULL, searchText, size, filePath);ASText searchKey = ASTextNew();searchKey = ASTextFromUnicode((ASUTF16Val*)searchText, kUTF16HostEndian);SearchQueryDataRec srcQuery;memset(&srcQuery, 0, sizeof (SearchQueryDataRec));srcQuery.size = sizeof(SearchQueryDataRec);srcQuery.query = searchKey;srcQuery.type = kSearchActiveDoc;srcQuery.scope = kSearchDocumentText | kSearchMarkup;srcQuery.path = NULL;srcQuery.fs = NULL;srcQuery.maxDocs = 1; ASBool ret = SearchExecuteQueryEx(&srcQuery);if (ret == false) { AVA
I'm trying to start search at a specific page number but, Acrobat always give me results from page 1.
After calling 'SearchExecuteQueryEx' function, is there an API to access the content of the 'Search' window list ?
I'm looking for a code I can place on the document actions "document will save" and "document will print" that when printing or saving looks for any required fields and if any that are left empty a message pops up with a warning "not all required fields have been completed, please go fill in any fields marked in red before sending" please help-thanks
Hi,I have some checkboxes arranged in columns (days of the week) where it contains 03 items: P (Participants) = 1, F (missing) = 1 and "-" (absent) = 0. Below I have 3 boxes of text, where I want to make the following calculations: Cx 01: add only all the items P and F that are selected in the column; Cx 02: Count only those that were selected with P Cx 03: Divide Cx 02 by Cx 01 (%) Is there any way to do this?
How do I go about hyperlinking so the PDF will open a folder (not a file but the actual folder)From what I understand I have to hyperlink to a web page option then paste the hyperlink and add the word "file" or something like that in the beginning of the link.Any ideas?Thanks
On the preprint event of my LiveCycle Designer (9.0.0.2) form I have a Java if statement that checks if textboxes are null.I want to check a textbox to see if it has a folder path entered eg. \\network1\Public\InBox\.But I'm hitting a brick wall with my If statement...Please help
The title of this question is a title I found in the SDK documentation. It's a very short section that includes this text:You can extend the functionality of the IAC interfaces by writing plug-ins that use core API objects that are not already part of the IAC support system. I'm interested in finding more documentation on this topic. Exactly how does a custom plug-in expose functionality to the IAC?Does anyone have experience with this topic, and/or know of any documentation on it?
When the sample pdf file built by successive updates in Appendix G of the PDF Reference v 1.7 (G.6.1-G.6.4) is open by the Adobe Reader DC (or Acrobat DC) the annotations added in Stage 4 having reused pdf object numbers (8, 9) are not shown. The other annotation having a new object number (12) is shown.However, if new object numbers are given to the annotations instead of reusing the numbers of deleted objects in Stage 3, then all annotations are shown.Imho, the original example seems to be correct, why are the annotations reusing object numbers not shown?Using this update instead of the one shown in the PDF Reference displays all annotations correctly (remove empty lines if you cut and paste):7 0 obj[ 10 0 R11 0 R13 0 R14 0 R12 0 R]endobj13 0 obj<< /Type /Annot/Subtype /Text/Rect [ 58 657 172 742 ]/Contents ( New Text #1 )/Open true>>endobj14 0 obj<< /Type /Annot/Subtype /Text/Rect [ 389 459 570 537 ]/Contents ( New Text #2 )/Open false>>endobj12 0 obj&l
We're getting different result output when we use the COM to export a PDF into a docx vs manually opening a PDF in Acrobat and exporting to docx. It seems the manual version looks much cleaner while via COM looks old and dated. Anyone know why?
Hi,I have three checkboxes in my form named checkbox1, checkbox2 and checkbox3.I wish the following to happen:If checkbox1 is checked, then:• checkbox2 and checkbox3 also becomes checked• but at the same time checkbox 2 and checkbox3 also become disabled (by disabledI mean not checkable, not clickable).I have this script that does half the job, it disables checkbox 2 and checkbox3 when checkbox1 is checked:// set readonly property based on the value of this field compared to "Off";this.getField("checkbox2").readonly = (event.target.value != "Off");this.getField("checkbox3").readonly = (event.target.value != "Off");Though, as described above, I want checkbox2 and checkbox3 to become both checked and disabled at the same time.How would this script look like?Thanks for your help!Greatings,Dennis (Javascript beginner)
I have an order form which has six items for sale. The first field on each item is the number of items the customer is purchasing. The second field is a hidden field which creates the cost of the item. The third field is simply first field + second field = total cost for that item. There are another five lines of exactly the same code. The problem comes in with the final Grand Total line. I wasn't able to simply perform a sum function and pick my fields. I had to do a custom calculation. It works. However, if the person picks something from line one and skips to line three, the grand total turns into a mess.Examples:Field One (how many, limited to three characters - a/k/a "order.0.0")Field Two (hidden - validate value of 75 to 75, or whatever each line costs - a/k/a "cost.0.0")Field Three (custom calculation script):var a = this.getField("order.0.0")if(a.value!=0)event.value = a.value * 75elseevent.value = ""Each line is assigned a different variable, and the "a.value" chan
Hi, I use extensively the annotations of PDF files, especially the Highlight type.More precisely, I use the annotation "subject property".I'm using it to identify each annotation with many subjects.For example, I can write the following subjects in the subject property of a specific annotation: scientific method; scientific truth; Karl Popper; testability; confirmation; As you can see, I separate each subject with a semicolon and each annotation has many subjects. Keep in mind that I work with dozens of PDF files, so I have hundreds of annotations and hundreds of topics. The problem is that I do not know of any PDF software that can extract these topics and present them in alphabetical order so that I can track my topics. I can search within comments but it is not sufficient since I have to remember each subject by hearth or to write them down on a paper. I need to product a list of all my subject (which are separated by semicolons in the subject property of each a
Hi all,I'm a coding noob and can do basic stuff but I can not for the life of me figure out how to code a check box (checkall) to select yes on 20 or so radio buttons (radio1-20)for marking rather than having to select each one. But I still need to be able to change some individual radio buttons to no and if unselected clear all radiobox if required. Can someone point me in the right direction. I assume I need to create an array and code on a mouse up for the check box. Just not sure how to proceed.
Hi,My name is Andrea, and I am working on a software that will be used for the machines sold by the firm that I am working for.I would like to know if I can develop the acroPDF activex component within my software.Best regards,Andrea
Earlier, I asked how to hide values if the the value=0 and got the correct script to put in.The script I used for this was:var amount = Number(this.getField("Qty2").value) * Number(this.getField("UP2").value);event.value = (amount==0) ? "" : amount;However, the sum function for the "Subtotal" field is now not updating. I am using the sum function in the calculator tab. Am I suppose to put in a script now or can I still use the sum function? Please see the snapshot below. Thanks!
Hello I'm building a fillable form where if the field "Family Member Member1" is filled than the field "age1" becomes required.What I'm having trouble with is once "age1" is required id like to make an if-then statement where it looks to see if "age1" is required than on blur if left blank to prompt message "cannot be left blank".please help
I ask this because I have and if/then statement set up where if a field has a keyword inputted, then when a submit button is pushed it will send an email to one of two groups. I'm changing it because users are not "reading" the instructions and half the time, are not putting in the keyword when they should be so it's being emailed to the wrong group.So I want to change the "if/then" to a different field but that field is a drop-down menu and it doesn't work with the ".valueAsString.indexOf("Keyword") == 0.Here's part of what I'm working with:var keyWord = (this.getField("Org").valueAsString.indexOf("Company Name") == 0);if (this.getField("Signature").value != "" && keyWord == true) { this.mailDoc({bUI:true, cTo:sendTo, cCc:copyTo...I have to run this script in the Button Field.
Hello,I am creating an invoice form where I've put in the calcuations to generate an amount for the "Amount" field. However, it's showing 0.00 where the "Amount" field is zero. How do I make it that it shows nothing when it's zero. I tried using the following script in the Custom Calculation Script under the calculation tab. Amount2.value = this.getfield("Qty2").value * this.getfield("UP2").value;if (Amount2.value == 0) Amount2.value = "";When inputting this, the field just becomes blank.Can anyone help meÉ
Please Help!!!!Company stamp will be on every page Left-Bottom corner. Also Stamp with Signature will be on the last page. Both (Stamp and Stamp + Signature) must be password protectedIm more intereted in auto placing of stamp abd signature upon typing a password.Thanks advance
I have a menu and a sub menu list, which should have a scroll bar as i have limited page size according to my User Interface.
Here is my attempted code:var Datebegin = util.scand("dd/mm/yy", this.getField("WeekBegin").valueAsString); // create date object using WeekNumber inputvar Dateend = util.scand("dd/mm/yy", this.getField("WeekEnd").valueAsString); // create date object using WeekEnd inputvar theSubject = this.getField("NAME").value +"'s week " + this.getField("WeekNumber").value + " Timesheet from " + this.getField("Datebegin").value + " To " + this.getField("Dateend").value this.mailDoc({ bUI: false, cTo: this.getField("Email1").value, cCc: this.getField("Email2").value, cSubject: theSubject, cMsg: "This is " + this.getField("NAME").value +"'s week " + this.getField("WeekNumber").value + " Timesheet from " + this.getField("Datebegin").value + " To " + this.getField("Dateend").value });However when I have the WeekBegin(ddmmyy) & WeekEnd(ddmmyy) fields filled in. Debugger gives me:TypeError: this.getField("Datebegin") is nullTypeE
/*** Get the ISO week date week number */Date.prototype.getWeek = function () { // Create a copy of this date object; var target = new Date(this.valueOf()); //var target = new Date(this.getField("WeekBegin").value); // ISO week date weeks start on Monday; // so correct the day number; var dayNr = (this.getDay() + 6) % 7; // ISO 8601 states that week 1 is the week; // with the first Thursday of that year.; // Set the target date to the Thursday in the target week; target.setDate(target.getDate() - dayNr + 3); // Store the millisecond value of the target date; var firstThursday = target.valueOf(); // Set the target to the first Thursday of the year; // First set the target to January first target.se
We wrote a 32 bit application that uses a WPF webbrowser control to view html pages. In some of the html pages, we have links to pdfs that launch in a separate internet explorer window. We recently switched to a new version of Adobe Reader DC as the default pdf viewer and noticed issues loading pdfs. The IE window launches from the application, but it shows a blank screen and an error eventually pops up. If you use internet explorer instead of the app to view the html page and select the pdf link, a new window showing the pdf is displayed correctly.The problem can be avoided if I turn off protected mode in Adobe Reader. But, circumventing the security sandbox doesn't seem like a good long term solution. Also, the problem seems inconsistent. It works fine on some PCs with protection mode on and not on others. All PCs were tested with different versions of Windows 10 ranging from 1607 to the latest.I've spent days trying to find a solution.
I add a link to Page by JS:l = addLink(p, [r2[4], r2[5], r2[2], r2[3]]);l.borderColor = color.red;l.borderWidth = 1;l.setAction("this.pageNum = " + dctPageName[iPageGoto] );Type of Action is: Run a Javascript:How can set type of Action is [Go to a page in docment]?
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Har redan ett konto? Logga in
Har du inget konto än? Skapa ett konto
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.