Unlock the power of Acrobat SDK through our community.
Recently active
Hello, I need to know how to search 3d object in the 3d pdf.Is it possible to search 3d object using Javascript ?
Is there a script that will display a date in a set format no matter how it is entered. Ex. entered 021119 or 2/11/19 and auto displayed as 11-Feb-19.
On a information form I am creating I put in a custom script - see below to make the text box email only and an alert come up for the user to enter only a valid email address.var alert1 = ("Please enter your email in a valid format"); var email = /^[a-zA-Z0-9._-]+@([a-zA-Z0-9.-]+\.)+[a-zA-Z0-9.-]{2,4}$/;if(!email.test(event.value)){event.rc = false;app.alert(alert1);event.value = "example\u0040example.com";}This part works, but after it is saved by the user, or even if user tabs tries to clear the box before saving it will not clear so another emailcan be entered by another user filling out the form. Help!
I created a PDF form and am using radio buttons. I am using Adobe Acrobat Pro XI. I have been creating fillable forms for about a year now but want to take the extra step. I have 15 different group of radio buttons named "Observation Group 1 to Observation Group 15" and in each group i have 3 choices " compliant, non-compliant and not applicable". i would like to be able to total each of the 3 choices ( how many compliant, how many Non-compliant etc) in another box. I think I would need a script file for this. I think it goes in the "Calculate" or in the "action" properties but really have no clue how to do it. I have read a lot of this forum and would love any help you could bring. In my head it doesn't seem very hard when I explain what I want but I might be wrong.
!Hello, I want to select an object behind plates.Specifically, I want to select a piping component behind transparent plate.So I need to set the nodes's property "hitEnabled" to "False".Is that the right approach ?then, how to set it False? this is my code:c3d = this.getAnnots3D(0)[0].context3D;thePlate = c3d.scene.nodes.getByname("Plate");myPlate.hitEnabled =false;I tried it in the console, but no change.Clicking on Photo in TPlease help me with this.
I'm trying to program a button to check required fields in a form. The goal is to walk the user through the fields that need attention. Right now it jumps to the field and highlights it. I want it to wait for the user to enter data before removing the highlight and jumping to the next field. Can someone show me a way to implement this?for (var i = 0; i < this.numFields; i++) { var f = this.getField(this.getNthFieldName(i)); if (f.type != "button" && f.required && f.value == "") { f.setFocus(); f.fillColor = color.yellow; // Wait for user to enter something in f f.fillColor = color.transparent; }}
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!!!
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.