Questions
Recently active
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
Can someone help me out with this one? I would like to import a text file (which has names, addresses, city, state, etc) into a text field in a pdf doc instead of copying and pasting the info. I've seen similar scripts but for the life of me, cannot find them now. Does anyone know the javascript that will get the job done? I'd like to create a button and when clicked it would show the files on the desktop available to import into the pdf doc text field. I would appreciate an example if you know. Thanks so much.
Hi, I work on ACROBAT DC forms and I don't control JS language. I want to hide or show pictures on the same pdf file depending on the user's score…Thank for links or advice to help me !Steph.
Good evening, I am wondering how one can call a folder level action in Acrobat from C#? I know it is possible, I just do not know the code used to call said functions?Any help would be wonderful!
Hi Guys,I wanted to know, Is it possible to create a Javascript Function based calculation for a timesheet that also includes amount of people working during that time period.Example.StartFinishNumber of workersTotal HoursStart1.0Finish1.0Workers1.0Totalhours1.0Start1.1Finish1.1Workers1.1Totalhours1.1Start1.2Finish1.1Workers1.2Totalhours1.2My function would be something like CalcHours() ….. which would yield something like would calculate like this (Finish1.0 - Start1.0) * Workers1.0your helps would be greatly appreciated.
Good evening, I am trying to figure out if it is possible to invoke a JS file on a PDF, from a windows batch process? We are trying to see if it is possible for us to process documents outside of Acrobat.Any help is welcome!
Hello,I want to Create PDF3D from OBJ format, but I don‘t want to concert it manually using adobe’s 3D toolkit.Is there a way to convert it to u3D automaticall? Using code or advanced software that can do this faster the 3D toolkit?I‘m using version 18.9.20044.251705
I have a form field, Zip Code, that I would like to export as text when I export the data onto a CSV file.This information will be uploaded into an access database that already has the zip code field notated as "short text".When I format it as zip code, or zip code + 4, the exported value is a number (leading zeros are dropped). There doesn't seem to be an option to format it as text, and support was no help. Is there custom formatting script that will allow me to do this?Is there a way of creating another type of field that will allow for text as an option?Thanks!
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.