Unlock the power of Acrobat SDK through our community.
Als letztes aktiv
HelIo, I have an Attachment button but I would like the attachment name to show in a text box. The attachment is mandatory but I'm not sure how to do this. Can you help me please? Thank you. JB.
I have successfully created a couple of stamps using app.response. No problem. The two stamps I've created are fields in a table, seven rows and four columns, looks like a purchase order and it totals each row. OK that gives you a picture of what the stamp looks like. Now, my question is, I apply the stamp and the window opens asking to enter an item, then click OK. Then the next field asks to enter an amount and a price. Now, what I'd like to know is, is it possible to go back one or two fields. So, in essence changing one's mind and being able to enter a different item and/or amount and/or price before the stamp is set. I know once applied the info cannot be edited. One has to delete it and reapply a new stamp to make any changes. But, I'd like to just go back one or two windows prior to applying the stamp. If you know, let me know. I'm curious. Thanks.
Hi, I'm trying to send a GET request with Net.HTTP.request to http://dummy.restapiexample.com/ , actually I'm calling this endpoint: http://dummy.restapiexample.com/api/v1/employee/7052 No matter what I try I always get this error:NotAllowedError: Security settings prevent access to this property or method.It's a js which is being called at document level, improved security is disabled and I've also tried enabling it.the code is -->//<Document-Level>//<ACRO_source>Init</ACRO_source>//<ACRO_script>/**** pertenece a: Document-Level:Init ****/myTrustedFunction = app.trustedFunction( function() { this.getField("textAJAX").display = display.hidden; console.println("2 - "); Net.HTTP.request({ cVerb: 'GET',
I have a form that separates whole numbers and decimals. What I need to do it take the sum of two boxes 1stFloor and 1stFloordec subtract 0.4 from the total and place the whole number in Garage and the remaining decimal in Garagedec. Summing the two and subtracting works fine its just getting it to place the whole number in Garage and the remaining decimal in Garagedec I'm having trouble with.
Good, I would like to know how to do to put this checkbox in real, it belongs to a pdf.I'm working in JS.
Hi,Can we link the table of contents (TOC) in PDF file using the script/plugins? Please help me out.
I have this form with a start date that need to be manually input by the users. Based on that date, the fields 1 to 4 should be filled automagically with the "StartDate"+0, "StartDate"+1, "StartDate"+2, "StartDate"+3, (...). How do I solve that with a Java script in Acrobat?I'm thankfull for any help here!/Getve
I have a VBScript file that iterates through a designated folder. My end goal is to check for files over 25MB and use Acrobat 9's "Optimize scanned file" feature to make them smaller.Unfortunately, I do not know the command or function within Acrobat's API in order to make this happen. What commands can I use to automate the process of optimizing scanned files?This is a VBScript file running on a local computer with Acrobat 9 installed. I have tried looking through Acrobat 9's API documentation but cannot seem to find an answer.My code so far:Const PDF_FOLDER = "Z:\ARM\temp\" Set gAcro = CreateObject("AcroExch.App") Set newPD = CreateObject("AcroExch.PDDoc")Set newAV = CreateObject("AcroExch.AVDoc") Set fso = CreateObject("Scripting.FileSystemObject") Set oFolder = fso.GetFolder(PDF_FOLDER).Files For Each fileObj In oFolder If fileObj.size/1000000 > 25 Then newAV.Open PDF_FOLDER & f
Hi, I'm trying to send a GET request with Net.HTTP.request to http://dummy.restapiexample.com/ , actually I'm calling this endpoint: http://dummy.restapiexample.com/api/v1/employee/7052No matter what I try I always get this error:NotAllowedError: Security settings prevent access to this property or method.It's a js which is being called at document level, improved security is disabled and I've also tried enabling it.the code is -->//<Document-Level>//<ACRO_source>Init</ACRO_source>//<ACRO_script>/**** pertenece a: Document-Level:Init ****/myTrustedFunction = app.trustedFunction( function() { this.getField("textAJAX").display = display.hidden; console.println("2 - "); Net.HTTP.request({ cVerb: 'GET', &
I am looking to create a form that allows a user to lock their respective fields, but also unlock them again, should they need to amend or update any of the information. The form is to then be sent back to the company, where it is completed, but the company should not be able to write/edit the user-input fields.The closest solution I have come across is some script that requires the user to enter a password on clicking a button, and this password will then lock/unlock the form. The password however, should be set by the user, on first click of the button ideally. Currently, it is already determined within the script, meaning the company would have to share the password with the user, defeating the whole purpose of locking the fields.This is the code as described above. Anything that gets me closer would be much appreciated:(function () { // Prefix for group field names. Change to match what you want to use. // Rename the fields you want to lock to ma
Hi there,This may not be the correct forum to ask this question, but I figured I'd start here first...More and more, I am running into problems with employees who do not understand the difference between opening a PDF in Adobe Reader, vs. opening a PDF in their browser. I have given tutorial after tutorial on how to avoid this, but it never seems to stick. I'm constantly getting phone calls saying "my formula won't work" or "when I click the button nothing happens", and it's ALWAYS because the user didn't properly download the file. I'm hoping that there might be a script to prevent the user from doing anything to a document if it's open in say, Google Chrome vs. Adobe Reader. Or perhaps, have the document just be one page with a button that says "START", that you can only click if it's open in Adobe.Any thoughts?
Good day, Is it possible to get the Java script code to add attachment(file), Text field to show the file name that was attached and the Clear files button to clear the text field and remove attachment. This is what i am looking for on the form i am trying to create. Any help would be greatly appreciated. Thanks
I need some help ID my way forward: I’m building a shop to where you can purchase a printed document. I want to ease up my workflow so that customers can insert/upload e.g. their name and logo file, which is then transferred to a standard Adobe document (pdf). Following the acceptance of the preview and checkout (payment) by the customer, I want the document to be “exported” as a print-ready file to me so that I can print and ship it. Is there an advanced plugin for either Adobe CC, WooCommerce or Wordpress that can do that process? -The documents I intend to make in Illustrator as templates, final dokument will be made in print-friendly pdf.
Hi.I made a script that import data from one PDF form to another : works fine.I extend this script to import icons from button fields also : General error - Operation failed(lines 11 to 13 in the script below)Since I use an exemple copied from the "JavaScript™ for Acrobat® API Reference" I don't understand where I made a mistake.Can you help me?Here is my script (executed from a script embedded within the document) :// get target documentvar docCible = this;// get source documentvar cFileName = "/blablabla/myDoc.pdf";var docSource = app.openDoc({cPath:cFileName, oDoc:this, bHidden:true});// list source document fieldsfor (var i=0; i<docSource.numFields; i++) { var oFld = docSource.getField(docSource.getNthFieldName(i)); // if the field exist in both documents if (docCible.getField(oFld.name) != null && docSource.getField(oFld.name) != null) { if (oFld.type == "button") { &nbs
Hi.I'm working on a pdf file created in inDesign. It is a document (pdf) with which we let people make declarations. Thay can put the description and amount in the document en it will count al the bills as one total.I thought ok that's easy with Acronbat Pro DC en the calculate field etc... but I'm keeping the error 109 with saving. And then It won't save.In the preview file it works.....The 0,00 won't work... it's says >> This default value does not match the format (Number) specified. Please enter a default value that matches the format or change the format in the Format panel to match this default value.I need to count up 31 fields
I have a checkbox that if selected on the first PDF page it uses text from another hidden text form field and saves it as read only when checked.I still want the user to be able to unchecked the box and fill data in if needed.Everything is working fine on the first form field but the second field is not working. Below is the script and an what im trying to do.Check BoxH_SERIAL_NA_CHECKBOXFirst text form field (When "H_SERIAL_NA_CHECKBOX" is selected the value "N/A" needs to be added to the field and set to read only, But when unchecked the user is able to change the value if needed)SERIAL_2Second text form field (When "H_SERIAL_NA_CHECKBOX" is selected the value "N/A" needs to be added to the field and set to read only, But when unchecked the user is able to change the value if needed)SERIAL_1Custom Calculation Field in "SERIAL_2" and "SERIAL_1"event.value = this.getField("H_SERIAL_NA").value;event.rc = this.getField("H_SERIAL_NA_CHECKBOX").isBoxChecked(0);event.target.readonly = event
Hi there,I need to insert blank pages in a large PDF doc only once after it finds a specific word on that page and is odd.For eg: If the page has the word "Print this document" and the page number is 5, then insert a blank page only after it. If the page has the word "Print this document" and the page number is 6, then insert a blank page before and after it. If the page does not have the word "Print this document", do nothing.The code sounds simple but I am just not sure. Thanks if anyone could help would really appreciate it.
I am creating a grade sheet to report exam scores to students, and I'd like to simplify things using JS. Unfortunately, I have little knowledge of JS, and I've been sitting here trying to make it work for me. Alas, it's time to turn to the forum.I'm stumped on this problem: I need the colour of the text to change based on the relationship between two fields.1. Field 'Gr_Score' is the score earned by the student.2. Field 'Gr_Points' is the number of points for that section of the exam.If the ratio (i.e. the result of 'Gr_Score' divided by 'Gr_Points') is less than 60%, the text in 'Gr_Score' needs to appear red. If the ratio is greater than or equal to 60%, the text in 'Gr_Score' needs to appear green. (The text in 'Gr_Points' does not change colour.)For example:Gr_Score = 6.0Gr_Points = 10Ratio = 6/10 = 0.6Gr_Score displays as greenGr_Score = 5.9Gr_Points = 10Ratio = 5.9/10 = 0.59Gr_Score displays as redThe code currently looks like this:--var s = this.getField("Gr_Score"); // retrieve
Know the location of the point, how to create a Markup annotation through COS_Layer, it is better to have the code of the demo, I am a newbie, thank you very much!
How is this Exdata dictionary defined? I want to do 3D MarkupThe effect is as shown below
I am very new to this but trying to learn. The task I've been given is this:Have a button on a page that when pressed will open a custom dialog with 4 buttons.Each button should open a different external pdf file in a new window.I feel like it's getting close but just can't get there. Any and all help will be greatly appreciated!var Dlg ={ description: { name: "Select File To Open", elements: [ { type: "view", elements: [ { item_id: "Header1", name: "Select Document To Open", type: "static_text", }, { item_id: "Button1", name: "IOM", type: "button",Button1:function(dialog) { app.openDoc("/IOM/IOM.pdf", this);}, }, { item_id: "Button2", name: "Submittal", type: "button", }, { item_id: "Button3", name: "Owner's Manual", type: "button", }, { item_id: "Button4", name: "Test & Balance", type: "button", } ] }, { type: "ok",ok_name: "Close" }, ] }};app.execDialog(Dlg);
I found the script below on this site and I would like to get it working for me to see if it's what I'm trying to accomplish. I have it attached to an mouseUp action of a button and it pops out a window. I click to open a file and click OK and that's all it does. No opens any file. Would someone take a look at this script and show me what's wrong or what's not right? I sure would appreciate it. I just wanna see it, I feel it's so close to working. Thanks, folks.The script:var docTypevar Dlg ={description:{name: "Select File To Open",elements:[{type: "view",elements:[{item_id: "Hdr1",name: "Select File To Open",type: "static_text",},{item_id: "Btn1",name: "File1",type: "radio",group_id: "rdgp",},{item_id: "Btn2",name: "File2",type: "radio",group_id: "rdgp",},{item_id: "Btn3",name: "File3",type: "radio",group_id: "rdgp",},{item_id: "Btn4",name: "File4",type: "radio",group_id: "rdgp",}]},{type: "ok_cancel",ok_name: "Open"},]}};commit:function (dialog) { // called when OK pressed &nbs
I have various annotation elements that have a State set using the transitionToState method. I want to remove all state(s) from an annotation using JS, however I can't see any method in your SDK manual that allows you to remove State information?ThanksSimon
I need to place a JavaScript in Document Actions in a PDF form filler I created. I have created several fields that I listed as "required fields" in the form. I was hoping that I could insert a Script that will return a message informing the user that they have not filled out all of the required fields when they try to click Save as or Print. I have the document saved as a read-only. It is my intention that the user will not be able to save a copy or print a copy of the document until they have filled out the required fields.P.S. You would think that it wouldn't be very hard to remember to fill in your address and phone number but here we are.
I know I have seen this post but nothing is as specific as I need it to be and I know I am doing something wrong. I made this form in Word and transferred it over to Acrobat Pro DCIn the drop-down box (Emergency Landing / Crash) I have 3 options. When I pick one, I am trying to get a new fillable PDF form to appear. I have each form needed on the same PDF page. This is one of the forms that I need to "appear" when I click one of the options:So I've Inserted the JS into the Validate area:if (event.value == "Emergency Landing / Crash Form"){this.getField("form1").display = display.visible;this.getField("form2").display = display.hidden;this.getField("form3").display = display.hidden;}else if (event.value == "Incident at Aircraft Destination Form"){this.getField("form2").display = display.visible;this.getField("form1").display = display.hidden;this.getField("form3").display = display.hidden;}else (event.value == "Medical Emergency Form"){this.getField("form1").display = display.hidden;thi
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.