Unlock the power of Acrobat SDK through our community.
Recently active
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?
I have a form in Adobe acrobat where i have multiple checkboxes. Is there a way that if multiple check boxes are checked, the first check shows up on the first text box, and the second check box shows up in the second text box and so on, but; if the first check box is blank, and the second one is checked, could the second check box populate to the first text box instead of the second text box and so on down the line of all checkboxes required to auto populate text?// array of field names to usevar aFieldNames = new Array("cb1", "cb2", "cb3", "cb4", "cb5", "cb6", "cb7", "cb8", "cb9", "cb10", "cb11", "cb12", "cb13", "cb14", "cb15", "cb16", "cb17", "cb18", "cb19", "cb20", "cb21", "cb22", "cb23", "cb24", "cb25", "cb26", "cb27", "cb28", "cb29", "cb30", "cb31", "cb32", "cb33", "cb34", "cb35", "cb36");// clear the result fieldevent.value = "";// variable for testing the value of a single fieldvar cItem = "";// array of values not equal to "Off"var aValues = new Array();// pr
Hello. Using the Acrobat API, how can I write a script that does whatFile->Create->Combine Files into Single PDFdoes in Acrobat. I need to do this for thousands of PDF files, so it can't be done by hand. I need some way to automate it. The files have a rigid naming convention, so I can easily generate the name strings automatically. Is there a way to do this using the JavaScript API, or maybe the PDFL API? I know how to open, read in, and write out PDF files, but what calls are needed to actually combine them into one single document? Thanks.
Is it possible to redact multiple PDFs (30,000 of them) when the text search function is not working successfully? I need to redact SSNs, but they are hand-written and are not recognized by the "search and replace" function. But they're all in the same space on the documents. So, is it possible to redact, say, using the same spot in a PDF across multiples? Like two inches from the bottom, three from the left, and 1/4 inch x 3 inch redaction box? I'm using Acrobat DC. Thanks.
I am on an iMac 27inch Mid 2010 running Yosemite 10.10. I have tried installing Acrobat DC a number of times, initially I was unable to do so until I removed all old copies of Acrobat using the Adobe Uninstall utilities. After that it did start to install but failed with the following message below.What can I do to solve this problem quickly? ThanksExit Code: 7Please see specific errors below for troubleshooting. For example, ERROR: DW003, DW006 ...-------------------------------------- Summary -------------------------------------- - 0 fatal error(s), 2 error(s) ----------- Payload: Adobe Acrobat DC 15.10.20056.0 Acrobat DC/Acrobat DC Installer.pkg_15.010.20056 -----------ERROR: DW006: Apple Package failed to install successfully.ERROR: DW003: Third party payload installer Acrobat DC/Acrobat DC Installer.pkg failed with exit code: 1-------------------------------------------------------------------------------------
I am having problems in using Acrobat Pro DC. When I open a PDF file for reading, Acrobat hangs on for several seconds with a "Not responding" message. The screen sometimes gets gray. After freezing for several seconds, the system works normally.Sometimes the freezing starts when I close Acrobat. On other occasions, the "Not responding" notice does not appear, but the document cannot be scrolled for some seconds.I am running Acrobat under Windows 8.1.Any suggestion on where the problem originates from, and on how to fix it?Max
Hi All,I need slug information only for cover page (page 1). Rest of pages need not the slug portions. So am trying to crop the pages to remove slug areas except cover page using crop tool (with trim size).Is it possible with scripting? I am novice in Acrobat scripting, i tried using with this forum previous thread.var arrMedia = this.getPageBox({cBox:"Trim", nPage:1});arrMedia[0] = 0; arrMedia[1] = 0; arrMedia[2] = 0; arrMedia[3] -= 60; this.setPageBoxes({cBox:"Trim", nStart:1, nEnd:this.numPages-1, rBox:arrMedia});Thanks,K
This is the script I am working with, what would it need to look like to achieve this?var VOL = this.getField("VOL").value;var CFM50 = this.getField("CFM50").valueif (VOL == "" || CFM50 == "")[event.value = 0]else event.value = (CFM50*60/VOL)Thank you guys (and girls) in advance, I am very new to javascript and adobe, this is actually my first day working with it and Ive been struggling to make this work.
When I try to cut and paste from another document into Adobe Acrobat text box I get the following:This also happens when I use my Text Expander. I know there must me a solution. What is it?
Please, how to specify a default value to a field using a variable / calculate / script?
I have a form that has a text field for a percentage (5 digits with decimal). If the percent is 100.00, the barcode reads 100. Is there a way to capture the percentage without the decimal and keep the trailing zeros in the barcode?Here is what I have tried:strValues += oParam.oDoc.getField(strFieldName).value.toString().replace(/\./g'');with results of 100.Thanks
I have Document Will save question. I'm just trying run this script that will prompt an app. alert if the a text box is visible, let me know what I'm doing wrong here, I'm new to adobe forms, so thanks for any help.var a = this.getField("Text11");if (Text11 == display.visible) app.alert({CMsg:"remove all text", oCheckbox:true});
I have a form that has 3 standard pages(fillable) with several templates arranged into three categories (instructions). I would like for the user to be able to print only the instructional pages needed by selecting them from a menu button. Is it possible to place the templates into an array by category that can be selected from a menu for printing? var cChoice = app.popUpMenu( "Category A", "Category B", "Category C);if (cChoice !=null){ switch (cChoice) { case "Category A": var a = new Array("Template_Page1", "Template_Page2", "Template_Page3", "Template_Page4","Template_Page5"); for (i = 0; i < a.length; i++){
A week ago I knew nothing about pdf file internal formats or how to write an adobe plugin, but now I have successfully created a plug in to convert the bookmarks to named destinations and then export these named destinations to a text file. I have one bug to fix, though, the situation where the destination name tree does not exist. I could really use some help to finish this off. Question 1: So I use the following to get the name tree:PDNameTree pdNameTree = PDDocGetNameTree(pdDoc, ASAtomFromString("Dests"));My first issue is how to test for whether this is null. if (pdNameTree == NULL)andif (PDNameTreeEqual(pdNameTree, NULL))are not acceptable syntax.So I'm usingif (!PDNameTreeIsValid(pdNameTree))instead. Does that seem like an acceptable practice? Is there any other way to test if a Destinations name tree already exists?Question 2: After determining that there is no destinations name tree, how do I create one? I see the function PDNameTreeNew in the API,
Hello,I am running this custom script to figure a field, problem is they want the sum to be a percentage rounded to 4 decimal points, but when I set the field to be a number and limit it to the 4 decimal points, the field gives an error because the custom script is putting a "NaN" in the field when there are no numbers to calculate. This NaN is not a number and causes the error message that it does not comply with the allowed format of the field.// Get first field value var v1 = getField("DSW-Total Payments").value; // Get second field value var v2 = getField("DSW-Total Monthly Income").value; // Set this field value equal to the difference event.value = v1 / v2 * 100;Any help would be greatly appreciated.
I thought I'd cracked it with this: bookmarkRoot.createChild({cName: this.documentFileName, cExpr: "this.pageNum++", nIndex: 0});However, it inserts the bookmark at page 2. I've done some reading and found out why this happens - createChild makes a bookmark on the page after the hidden root bookmark.Is it possible to achieve?NB: after running this script on a large number of PDFs my plan is to combine them into one document, then use another script to create a contents list.
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.