Unlock the power of Acrobat SDK through our community.
Als letztes aktiv
We have some buildings that used to require a one page inspection sheet to be filled out per month.My previous JavaScript built an array of all our buildings, and whenever one didn't participate, I just "commented" it out of the array before running the JavaScript to bookmark all the pages that did participate.After they added a second sheet to this inspection, I tried to retrieve the buildings from that array to bookmark every SECOND page (for example, pages 1, 3, 5, 7, etc.). Although it works, the JavaScript also duplicates that same bookmark with another one tagged "undefined."Could somebody point out my error?/* Create Bookmarks *///// Bookmarks every OTHER page of this document from a defined Array.//// Define the Array named aBookmarks.aBookmarks = new Array("Building 01","Building 02","Building 03","Building 04","Building 05","Building 06","Building 07","Building 08","Building 09","Building 10","Building 11","Building 12","Building 13","Building 14","Building 15","Building 16")
Hi All,We are trying to extract first page thumbnail from a pdf file . we are converting internally into image for first page and generating thumbnails . this process is taking too much time and giving performance issue .this is being done using java language .is there any other API or toll we can use which will give better performance using java please suggest .Our requirement - lots of pdf files are there with different size and size can be lead to max 30 MB file .either the 1st page of pdf can be converted into image generate different size thumbnails or directly from pdf file to different thumb nail size .either way is fine . please suggest .RegardsBirupakshya
Hi,I need some help to create a DeviceN colorspace.Thanks to the PDF Reference and this forum, I have written this function// Creates a DeviceN colorspacePDEColorSpace createDeviceN(PDDoc pdDoc) { PDEColorSpace deviceNColorSpace;CosDoc cosDocObj = PDDocGetCosDoc(pdDoc);CosObj colourSpaceCosObj = CosNewArray(cosDocObj, true, 4); // Names arrayCosObj namesCosObj = CosNewArray(cosDocObj, false, 5);CosArrayPut(namesCosObj, 0, CosNewNameFromString(cosDocObj, false, "Cyan"));CosArrayPut(namesCosObj, 1, CosNewNameFromString(cosDocObj, false, "Magenta"));CosArrayPut(namesCosObj, 2, CosNewNameFromString(cosDocObj, false, "Yellow"));CosArrayPut(namesCosObj, 3, CosNewNameFromString(cosDocObj, false, "Black"));CosArrayPut(namesCosObj, 4, CosNewNameFromString(cosDocObj, false, "Blue")); // DomainCosObj cosDomainObj = CosNewArray(cosDocObj, false, 10);CosArrayPut(cosDomainObj, 0, CosNewFloat(cosDocObj, false, (float) 0.0));CosArrayPut(cosDomainOb
I have set up a submit button that uses Java Script to pull a Text Field entry through to the Subject field of the submission email. Only the FDF file is being attached to the email and I need the whole PDF to go through. I had added a line to the script to specify the output as PDF but this isn't working. I only have a couple of forms to create for work and I'm new to Java Script. Any help would be appreciated. var customSubject = this.getField("SubjectTextField").value;var submitAs = "PDF";//PDF,FDF,XFDF,XDP,XML var mailtoUrl = "mailto:emailaddress@gmail.com?subject=" + customSubject;this.submitForm({ cURL: mailtoUrl});
So I want to have a script that changes the size and orientation of a signature block when signed. For example I have columns a-g and "g" has it's own A-F. Now if I fill out a1-gA1, I would add a signature on gA2 to close out this transaction. But I want the signature block to automagically orientate itself vertically and change the size to the remaining blocks in column gA. So if I sign on gA2 it will fill gA2-gA16. If I later sign on gB4, it will fill gB4-gB16 and so on respectively. Is there a script that could be written into the document to accommodate this? If you would like to view a sample form to go by Google DA Form 2062.
How does one access an external notepad file so that it can be used to run a script, instead of the built-in javascript editor?
The question itself is pretty much the short of it.My Javascript has become too large, and It sometimes crashes on me when I attempt to edit it for too long.Is there a way to fix this?
Hello,Does anyone have a tool or know of the pixel conversions for a JPG image point to PDF document location?Regards,William Johnston
I have no experience writing java, I'm in need of a function that will auto detect and delete blank pages in large documents. I have yet to find any other way to automate this.Thanks!
I have a form that I am creating that has a "Clear Form" button on it that clears all of the form fields. For the most part, this works except for three fields that calculate a date based on a script. The three fields I am having problems are selected to be part of the "clear form" action.What I would like help with is with is to either to modify the script to return a blank output if there is nothing in the input field or for the "clear form" button too clear everything.The script I am using is as followsvar sDate = this.getField("InterviewComplete_af_date").value; // get date stringvar oDate = util.scand("yyyy/mm/dd", sDate); // convert to objectvar nDay = 1000 * 60 * 60 * 24; // define 1 day in millisecondsvar nDate = oDate.getTime() + (5 * nDay); // add 5 days as millisecondsoDate = new Date(nDate); // convert milliseconds to date objectevent.value = util.printd("yyyy/mm/dd", oDate); // format result
I want to work with digital signatures over documents in Acrobat. I want to call some web services to get the certificates and sign the document. Is the plug-in the best approach? Or should i go with IAC or maybe with a java script approach? Thank you! And one more thing, if you have any tutorials or any other materials to begin with.
I have posted this same issue on SO as well: javascript - Acrobat SDK IAC Modify Annotation Points Property - Stack Overflow What I am trying to do at the moment was what I thought to be very trivial but is proving to be a confusing exercise. I simply wish to create a new annotation that is a line and set the points property to a specific value. When the object is initialized and set to "Line" type I can read the default points property, which it's value and datatype during debugging are as follows:So I tried a very simple assignment operation for testing by doing the following:oLineAnnotation.points = New Object(1) {New Object(1) {100.0, 100.0}, New Object(1) {100.0, 100.0}}This will throw the following exception: The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)).I have tried other methods of assignment as well, i.e writing back to specific index in the property array:oLineAnnotation.points(0) = New Double(1) {100, 100}This doesn't throw an except
Hello guys. Im trying to build the samples from Acrobat SDK in Visual Studio 2015 but i get this error. Any help?
I have been asked to develop a pdf where we'd have people use a dropdown menu to rank five topic areas 1,2,3,4, or 5. If they select a 2 for the dropdown of the first topic area, I want the "2" to be removed from the other dropdowns (leaving just 1,3,4,5 for the remaining drop downs), and so on for each number selected in the dropdowns, so they can only use any number once. I know how to do this in excel, but I'm being asked to do this in a PDF. I was just curious if this is even possible in a pdf???? If not via dropdown, then maybe radio buttons?
Good afternoon.I am currently creating an application with Acrobat in .Net C #.But I have problems accessing the app.newDoc () function.c#: mApp = new AcroApp(); avDoc = new AcroAVDoc(); avDoc.Open("C:\\Users\\tmuñoz\\Desktop\\Thuban-Nivel 1.pdf", ""); pdDoc = (CAcroPDDoc)avDoc.GetPDDoc(); object jso; jso = pdDoc.GetJSObject(); object[] param = new object[2];object con = jso.GetTyp
Does Adobe Javascript work on the Android system ? I have an Acrobar Reader installed on my mobile phone, and Javascript does not work
Good evening, I am trying to find a way to remove white space from a string in JS, but as of right now, I have found no solution.Here is some example code:var Array = [];var foo = "Hello";var voo = "World";if (foo != null){ Array.push(foo);}if (voo !- null){ Array.push(voo):}console.println(Array.join(', ');\\Results: "Hello , World"\\\\The space left of the comma should not be there\\That really is the short of it.Is there any way to remove spaces from a string, or at least from an Array?That, or remove the space from the left of the comma?Thank you!
Hi Team,I have a condition where I have four Deliveries and I need to deploy to the Second highest Open rate delivery.The logic I am using is : A/B testingCan you help me with the JS code that will pick the second winining delivery based on Open rate.Thanks in Advance![ duplicate thread ] --> Second Highest Winning Delivery Needs to be Deployed
I have created a dropdown that is pulling from 2 hidden fields. Problem is when I select the the second item in the list and tab, it automatically goes back to the first item in the list. I am using the following javascript:var f1 = getField("PRIMARY_PERSON_LAST_COMMA_SPACE_FIRST_SPACE_MI").valueAsString;var dropdown = getField('Dropdown1');var f2 = getField("SHARE_1_SH_PERSON_LINK_1_PERSON_SERIAL_DESCRIPTION").valueAsString;dropdown.setItems([f1,f2]);Please help!!!
Hello folks, To start, rest assured I am not a student looking for answers on homework. Rather I am a graphic designer who stepped out of his box a bit too far and need help. I am wanting to have a textbox (Text1) for entering info and a separate textbox (Text2) display only the numbers of characters used [without spaces]. I don't even need the msg part either, just a number that is counting as the customer types. We are charging by the actual character for this form and not the spaces. Below is the only code I have found to function in my document, however it is beyond me on how to adjust it to my needs. Please help and thank you!THIS ONE WORKS:(Drop into ‘Custom Keystroke Script’)Javascript below is for a character cnt w/spaces and a message of remainder.if (event.willCommit == false) { var ec = event.change; var nv = event.value + ec; var nc = nv.length; var msg = nc + " characters typed.\n"; m
No Adobe program installed. What do I have to do to automatically display a message'Please wait... If this message is not eventually replaced by the proper contents of the document, your PDF viewer may not be able to display this type of document. You can upgrade to the latest version of Adobe Reader for Windows®, Mac, or Linux® by visiting http://www.adobe.com/go/reader_download. For more assistance with Adobe Reader visit http://www.adobe.com/go/acrreader. Windows is either a registered trademark or a trademark of Microsoft Corporation in the United States and/or other countries. Mac is a trademark of Apple Inc., registered in the United States and other countries. Linux is the registered trademark of Linus Torvalds in the U.S. and other countries'
I'm new to Adobe's version of javascript. I can't seem to find, in all the web pages of documentation so far, a simple explanation of Adobe's version of replace for Adobe Acrobat Pro 2017.
Hi,i want to use the same Dialog Box that uses Acrobat DC for Insert Page and Location but in a button using Javascript for a Acrobat Form.Thank you ALL..
Hi I would like to collect all of the text field value and send to my web service end point for example. www.getme.com/pdfreceiver.aspxusing either GET or POST method.Do you guys know how to do that?
Is it possible to use SDK JavaScript API to sign (visible digital sign) a file in the browser on the client side?in sample for jsfunction AddSignature(doc){ // if ACROSDK.sigDigitalIDPath is not spcified, ask for user input if(ACROSDK.sigDigitalIDPath == "UNKNOWN"){ var cResponse = app.response({ cQuestion: "Input your digital ID path:", cTitle: "Digital Signature", cDefault: "/C/DrTest.pfx", }); if ( cResponse == null) { app.alert("No input."); &nbs
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.