Unlock the power of Acrobat SDK through our community.
Actividad reciente
Hello,I have a document with a lot of different checkboxes and they all have their own specific category.I have the document so that when a user clicks on a checkbox under that specific category, a button displays a value of the number of checkmarks that are clicked under that specific category. The program will only display a value, if the checkbox string value is in the array which I DEFINE.I have had to manually type in the specific checkbox name into array to get this done, but I am looking to see if I can iterate through and select a specific set of checkboxes to then PUSH to an array, so I don't have to manually type the string names of 100+ checkboxes.Here is the code that I put in my custom calculation script of the text field which displays the number of checkboxes typed in:var checkboxes = ["holter-48hr", "holter-72hr", "holter-1wk", "holter-2wk", "cardio-ecgharmonic", "cardio-loop", "cardio-restingecg", "cardio-gxt" ]; var counter = 0; for (var i in checkbo
I need some java script help creating a PDF form/field named "Sales Tax" that does the following:Calculates the amount of tax from the "Search Fee" field based on "Zip" and "State" fields.Conditions are that if the "State" field is not "NY" the sales tax rate would be zero and thus the "Sales Tax" field would read $0.00. i.e. State: CA, Search Fee: $150.00, Sales Tax: $0.00IF the "State" field is "NY" then it would calculate the rate based off of the "Zip" field. i.e. State: NY, Zip: 10005, Search Fee: $150.00, Sales Tax: $13.31 (8.875% of $150)i.e. State: NY, Zip: 10005, Search Fee: $150.00, Sales Tax: $12.94 (8.625% of $150)Ideally the calculation would read an excel sheet with 2 columns (one for zip and for tax rate) but I would also be interested in the code that 'manually' covers the 11 sales tax rates of NY. Any help would be great.Thanks!
I am working on project where we have PDF files containing controls like text fields, check box etc. These controls are added using Adobe Acrobat 9.0 Professional. Here this file is passed as input to to C# application and it fills data to the controls added on PDF file. Output is file containing PDF template containing data from Database fields. We are currently performing manual testing for Output file. My questions are,1. Is there any utility/ feature using which we can check for alignment of text added in control?2. Is there any way using which we can test data in the merged file?
Recently, when adding a page to an acrobat XI form using "tools - insert from file" I have been getting a Geomark editor popup?I don't know why, it never used to happen, did I somehow change a setting?How do I remove it?
Hi,I am attempting to create an if statement in Adobe Pro (JavaScript).Below is an example of what I am trying to achieve. G150G210G330G410Text110Text1= G1-G2-G3At G4: If Text1>0 then Text1, if not greater then 0 then 0.Thank you for all the help!
I've looked over the forums, but can't see where this is answered. I'm combining anywhere from 4 - 6 separate .pdf files, then adding bookmarks, linking each .pdf to a master web page, then moving those files to a web server for our customers to view. I'm using Acrobat XI Pro.When I combine the .pdfs and view them on my computer, everything is fine. When I move the combined .pdf to our web server, text goes missing. See below. Is there anything that can be done? Combined files range in size from 24 MB to 59 MB.
Hello,I want to open a input box to receive some text after clicking on my custom menu item.Is there any API methods to do it?With normal C++, I am not able to achieve it.Thanks in advance!
Hi i made a button who triggers outlook to open a mail. but my problem is that it works even when all the required fields isnt filled out.My current code is this.mailDoc(true, "","cc@mail.com", "" ,"Titel","Standard text in mail");had to not use the preset email function becouse i wanted it to only set reciptents in CC and not the to field.Anyone know what code i can use to implement this feature? im compleatly new to this and would love to get some help
How can I set language of a document before exporting it to docx file in Adobe SDK?In Acrobat Pro DC you can set it by performing following steps:1. Export you PDF to any format2. Microsoft Word3. Settings icon4. Set language5. Select value in Document language dropdownHow can I do the same using Adobe SDK? Part of my code is as follows:Set gPDDoc = CreateObject("AcroExch.PDDoc")Set jso = gPDDoc.GetJSObjectCall jso.saveAs(WScript.Arguments(0), "com.adobe.acrobat.docx")I could find any suitable parameter here:http://help.adobe.com/livedocs/acrobat_sdk/10/Acrobat10_HTMLHelp/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Acrobat10…
Good day all,I am not familiar with javascript and I hope somebody can help me with this.I need to run a script on a large batch of files already selected and delete all but the first page in each file, then save all to a new folder while keeping the exact same file names.Any help is very much appreciated.I should also add that I will be running this script on Adobe XI Pro and that the PDF files have different number of pages each.
I have a document which I have made editable with lots of form fields (especially checkmarks).These checkmarks display certain options that the person can choose, and they are under their own "Category"If 2 checkmarks are selected under that specific category, is there a way that I can have something print ON the document that says "2 OPTIONS SELECTED " in a visually noticeable way? I understand this may take a bit of programming to achieve, but I would like to know what your thoughts are, and if there is a possibly simple way of doing this.Thank you!
I have several documents going under accessibility work (508). This is done manually.However, several documents contain the same text across them (some headings, some paragraphs, etc). Is is possible to do the following programmatically?Mark a document as "tagged pdf" (create a root tag)Search for the repeated text.Apply the desired tag (for example, H1, P, etc).I have been searching the Acrobat SDK but cannot find any methods for tagging a text selection. I haven't found anything on Javascript (I suppose the accessibility requires core functionality available only via the C++ API).
I am trying to figure out how to do GST calculations in my fillable pdf form. I will need to calculate how much the total is with the GST amount of 5% and I can add them to make the correct total. But when the quantity will change from (for example) 150 ... how do you calculate the GST number with that? So that, then the total would be 150 and the GST amount should automatically change to $7.50 which would add up in the total to be 157.50.Help please!!!
Hi all,I have gone through several threads and tried to search the forum for relevant information. So far I have not found any solution that helps, so now I am hoping that anyone know how I should address this problem.I have created a form in Adobe Acrobat that will work as a contract between students and companies during the education.In short, I would like to be able to fill out the form, but when the company (red) signs his part, specifics fields are locked. The remaining fields are still editable until the students signs his part.Is this possible at all? I am using Adobe Acrobat Pro to create this form, and the users will be using Adobe Reader when adding information and signatures.Any advice would be greatly appreciated.- Rasmus
I create a very large number of forms and documents, the final product of which is always PDF. I really need for them to all print at 100% with normal looking margins rather than reduced with gigantic margins. Apparently when my clients are using Reader on a PC, the default print size is "scale to page size". If I want to override the PC print default of "scale to page size" I have to go into each and every PDF (hundreds of them) select Properties > Advanced > Page Scaling and change from "Default" to "None" which then forces me to chose a page range. It's pretty tedious to do that 50 times a day. It's annoying to my clients to get a reduced printed document if they don't remember to change that default every single time they print a file. Is there some place in my general Acrobat Pro Preferences where I can make all PDFs I create print at 100%? Is there a plug-in?I am working on an iMac with Acrobat 11. I just don't have the time right now to learn an all-new interface. (u
After numerous attempts to get my plugin working I have done back to basics to full understand how the Broker Process works, so I compiled SampleExtn solution, copied the client into the plugins directory and the Broker into the pi_brokers directory, however when I try and run the menu options of the plugin, it the call to InitSandboxPIBrokerIPCChannel is failing, with no message.How do I debug this? Is there any common things to check up?(Am testing it with Adobe Reader IX (it IS reader enabled).ThanksD
Hello,I have developed a plugin to open a document from the document path received from external program.Is there any way to avoid reloading the document when same document is opened twice.Here is my code snippet:ACCB1 void ACCB2 OpenDocument(){AVDoc avDoc = AVAppGetActiveDoc();PDDoc pdDoc = AVDocGetPDDoc(avDoc);char filePath[256];GetPrivateProfileString("OpenFile", "filePath", "", filePath, 256, iniFilePath);ASAtom pathType = ASAtomFromString("Cstring");//Create an ASText objectASText titleText = ASTextNew();ASTextSetPDText(titleText, "This PDF was opened by using the Acrobat SDK");//Create an ASPathName objectASFileSys fileSys = ASGetDefaultFileSysForPath(pathType, filePath);ASPathName pathName = ASFileSysCreatePathName(fileSys, pathType, filePath, NULL);//Open the PDF fileAVDoc myDoc = AVDocOpenFromFile(pathName, fileSys,NULL);//Do some clean upASFileSysReleasePath(fileSys, pathName);ASTextDestroy(titleText);}Thanks
Hello,I have developed a acrobat plugin. Plugin adds a menu-item under Edit menu.I am doing some operations on execution of this menu-item.Now, I want to do these operations in two ways:1. Do some operations on execution of the menu item. In this case, execution of this menu item will be done by a IAC program (Which works fine in my case)2. Do some another operations on execution of the same menu item. In this case, execution of this menu item will be done MANUALLY (By user).So, in the nutshell, execution of the menu item will be done in two ways, manually and programmatically.So, How can I differentiate this behavior?Thanks.
Hello,I am using Acrobat Search plugin HFT functions to search text in the PDF document.Along with regular text, I also want to search the comments.In the Edit->Advanced Search panel, there is a option to include the comments in the Search.I just want to do it programmatically.Here is my code snippet:ASText searchKey = ASTextNew();searchKey = ASTextFromEncoded(searchText, kUTF8);SearchQueryDataRec srcQuery;memset(&srcQuery, 0, sizeof (SearchQueryDataRec));srcQuery.size = sizeof(SearchQueryDataRec);srcQuery.query = searchKey;srcQuery.type = kSearchActiveDoc;srcQuery.scope = kSearchDocumentText | kSearchEveryWhere;srcQuery.path = NULL;srcQuery.fs = NULL;srcQuery.maxDocs = 1;ASBool ret = SearchExecuteQueryEx(&srcQuery);As you can see, I used srcQuery.scope = kSearchDocumentText | kSearchEveryWhere;But I am not able to search through comments. But sometimes it gives me an error like "There was an error retrieving text".What is it that I am missing here?Thanks
Working with Adobe Acrobat Pro DCI am trying to fill two other text fields with different information depending on what is entered into a third text field. Here is the script I put together, but it is not working. I have tried to set it to Select Trigger: Mouse Up and Mouse Enter also. Any suggestions?var v = event.target.value;var f4 = this.getField("Days available");var f5 = this.getField("Pay Level");if (v != "1") { f4.value = "3"; f5.value = "1"; }else if (v != "2") { f4.value = "4"; f5.value = "1"; }else if (v != "3") { f4.value = "5"; f5.value = "2"; }else if (v != "4") { f4.value = "6"; f5.value = "3";
Our company needs to split mulitple pdf files. The files must = 25 pages or less after spliting. For example 102 page file would output 5 files. 4=25pages, and 1=2 remaining pages. I have a script but it only outputs 2 pages./*Extract pages 25 at a time with leading zerors for proper sort */function padLeft (s,len,c){ c=c || '0'; while (s.length< len) s= c+s; return s;}// regular expression used to acquire the base name of filevar re = /\.pdf$/i;//file name is the base name of the file acrobat is working onvar filename = this.documentFileName.replace (re,"");try {for (var i = 0; (i*2) < this.numPages; i++) this.extractPages({ nStart: i * 2, nEnd: (i * 2) + 1, cPath: filename + "-" + padLeft ((i + 1) + "",3) +".pdf" });} catch (e) { console.println("Aborted: " + e)}
I'm brand new to Acrobat forms calculations. I consulted a couple of JavaScript programmers, but they're flummoxed by Adobe's field properties! I have an order form where the user can request up to five products - each resulting in a simple calculation of qty * cost.There's an additional radio button selection for a website in one of two options. If either choice is selected, I need to add the cost of the website to the total of the five other products. Help! And thanks!
Hello,I have created a plugin which I can access from my external program.Plugin adds a menu item to the acrobat.Open document is one of the function of my plugin.Workflow 1:1. My external IAC program passes the document path to plugin and hits the menu item.2. Now, plugin opens the document from the received path.Workflow 2:Now, I navigated to my external program. This time, acrobat windows has been minimized.Again if my external program hits the menu item with different document path this time, it does not close the previous document.To overcome this behavior, I used AVDocClose(avDoc, false) method.But it seems it only works when Acrobat window is NOT minimized.How can I achieve my goal?My code snippet:ACCB1 void ACCB2 OpenDocument(){AVDoc avDoc = AVAppGetActiveDoc();PDDoc pdDoc = AVDocGetPDDoc(avDoc);AVDocClose(avDoc, false);char filePath[256];GetPrivateProfileString("OpenFile", "filePath", "", filePath, 256, iniFilePath);ASAtom pathType = ASAtomFromString("Cstring");//Create an AST
Hi all,I have a from consisting of 5 pages. A few of the pages have to be printed on both sides of thick paper, which is located in a separate printer drawer. The printer has 3 drawers. Using the default print dialog is fairly cumbersome, as I have to enter the page numbers manually, select or deselect "print on both sides", select the drawes, etc... Since the printing has to be done quickly, there's lots of waste of paper as mistakes happen. So, I would like some help in designing a button which will print:1. page 1 from drawer 1, one sided.2. page 2 & 3 from drawer 2, two sided.3. page 4 & 5 from drawer 1, one sided.Looking forward to your assistance.
Hi all,I am pretty much at my wit's end here with JavaScript - a programmer I am not. I have 19 groups that consist of 5 questions each. The answers are ranked 1-5 and then totaled. Each group has a corresponding text description - example ( 1 - Ministering - if this is you, you are gifted with the ability to minister to others etc.). I need to find the top 5 ranked responses and then print the item number, the title and the description - example:1. 25 - Ministering - blah blah blah2. 24 - Hospitality - blah, blah, blah3. 21 - Prayer - blah, blah blah4. 19 - Healing - blah, blah, blah5. 15 - Giving - blah, blah, blahSo this is what I have for code:var a=this.getField("Total_g1");event.value=(a.value*1);var b=this.getField("Total_g2");event.value=(b.value*1);var c=this.getField("Total_g3"); event.value=(c.value*1);var d=this.getField("Total_g4");event.value=(d.value*1);var e=this.getField("Total_g5");event.value=(e.value*1);var f=this.getField("Total_g6");event.value=(
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.