Unlock the power of Acrobat SDK through our community.
Als letztes aktiv
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=(
My response function is being called from a Net.HTTP PUT call; however, the response header array only contains the headers I set for the request, eg. Content-Type, and does not contain any of the response headers, eg. Set-Cookie.oHandler:{ response: function(oRequest, cURL, oException, aRspHeaders) { if (oException != undefined) { app.alert("Unknown exception occurred: "+ oException.msg); } else { if (aRspHeaders.length > 0) { var headerstr = ''; for (var i=0; i&l
Hi! I need help writing a custom calculation. Basically, If Box 1>Box 2, then value should be Box 1- Box 2. Otherwise, box should be blank. How do I do this?
I have filled up the "Adobe PDF Library Information Request Form" but I can't find an e-mail to send it to and the "Submit" button on the form does not want to work.I'm looking to create a solution in my iOS Software I'm currently writing to enable the user to import PDF files and have the software fill out the forms automatically with data from a database. Is this the correct Library I will need and where can I download this library from? I'm using xcode 8, swift 3. Even if its created in objective C, I can manage. But searching on www.adobe.com has thus far been unfruitful.P. Miron
I am very new and untrained on how to use this program.It was purchased for the direct purpose of converting PDF to Excell.I am unable to find any help with this subject.Can anyone help me. Please.
Okay so to keep it as simple as possible here is my problem and my logic to solve it. I use a program that exports all my Invoices to one PDF file of about 168 pages, let's say. Within those pages are several 1 page, 2 page, and 3 page documents. My software that is supposed to add OMR marks does not recognize enough text and therefore will not add OMR marks. The solution given by the software engineer was to change the font from calibri or arial to Times New Roman. This cannot be done at the invoice program and requires I run OCR in adobe and change the font, which seems too problematic given the OMR software should do that. The other proposed solution to the problem was to use another OMR software and have the envelop stuffer manufacture calibrate to recognize the new OMR. My Solution: run a script in Acrobat that puts a "watermark" in a location given a certain parameter. For Example(pardon my lack of code knowledge) I would suspect something around this logic would work but I don't
Hello,I would like to run a method which returns an array on opening the pdf file. Then I would like to access the returned array from different buttons.How can I do it?
I would like to set up an "action" whereby when a document is opened there is an automatic "pop-up" question (asking "Have you read and sign the Acknowledgement Form? If 'not' you will be directed here to do so. If 'yes' please ignore this message")Anybody have any idea how I could write this up as a New Action or New Custom Command in Acrobat Pro DC?
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Sie haben bereits einen Account? Anmelden
Noch kein Konto? Konto erstellen
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.