Unlock the power of Acrobat SDK through our community.
Als letztes aktiv
I added some javascript that worked yesterday but now it is not working. When the oh.value is a certain number checkboxes are checked.var oat = this.getField("OrderAmtTotals");var oa3 = this.getField("OrderAmt3");var oa4 = this.getField("OrderAmt4");var hr = this.getField("HostRetailTotal");var oh = this.getField("OrderPlusHostRetail");if ((oa4.value !=null) || (oa3.value !=null && hr.value !=null)){if (oh.value < 150.00){event.value = 0;getField("HalfPrice1").checkThisBox(0,false);getField("HalfPrice2").checkThisBox(0,false);getField("HalfPrice3").checkThisBox(0,false);getField("HalfPrice4").checkThisBox(0,false);getField("HalfPrice5").checkThisBox(0,false);}else if (oh.value > 149.99 && oh.value < 300){event.value = oh.value * .10;getField("HalfPrice1").checkThisBox(0,true);getField("HalfPrice2").checkThisBox(0,true);getField("HalfPrice3").checkThisBox(0,false);getField("HalfPrice4").checkThisBox(0,false);getField("HalfPrice5").checkThisBox(0,false);}else if
Hi,I'm trying to create a loop that effectively goes through a folder containing multiple pdf documents. This script is essentially meant to open and extract specific data from each pdf and export it to a single .txt file. The data export script has already been written, but I am having issues with setting up my loop to work through the folder.This is the general layout of the loop I am currently working with:while (***FOLDER HAS NEXT FILE***){ var thisFile = ***SAVE FILE NAME AS STRING VARIABLE*** app.openDoc(thisFile); (insert data extraction and export script)}If this initial approach is ineffective, or if there is a more efficient alternative, please share! Thank you!
I created an if statement with OR but it doesn't seem to be working. Here is my javascriptif ((oa4.value > 0) || (oa3.value > 0 && hr.value > 0)){then do what's next...I have order amount lines and lines 1-4 are filled in then other things can happen. Also if line 1-3 are filled in with values and another total value is not null then that counts too.
(the signature is in WMF format)Need to print a PDF and either merge or append with a signature file(the signature is in WMF format). This needs to be an automatic process because I need to repeat it many times
Is there a javascript that can access "use local fonts" in the Preference window? I want the user to uncheck that option so all the fonts I used in the creation of the form will be used. At this point I just don't want any pop out windows saying, "Helevetica Bold cannot be used" (something like that). I'm trying to figure this out. I thought, all the fonts I selected to use in the form creation would be available. The only thing I can think of is to uncheck the "use local font" option. Any other suggestions out there?
Many users have non-Adobe default pdf readers installed on their computers. Even though I provide explicit instruction about installing the latest Adobe Reader, and that it is required to open and operate our forms, the users default pdf reader is still set to open it even after they install the Adobe Reader program. I include in the instructions how to open the form with the reader too.Sometimes the user does not read the instructions carefully and do not realize that our form is being opened on their computer by their default pdf program. They would then complete the entire form only to realize by the end that it will not work properly.Also, JavaScript can't be used with most other pdf viewers... is there some way to detect that Adobe Reader is not being used to open the form and warn the user up front not to proceed?
Hello Guys,Please get a few mins to read all.I am creating a pdf version of loan and mortgage calculator originally created in excel. This calculator spans more than 1600 rows across 12 columns and out of which 1560 rows are used only for payment/amortization schedule. This part is actually causing problems. Excel sheet is having multi-level nested(to excel's limit) if else largely and some other simple calculations e.g PMT, MOD. I have converted all excel formulas in livecycle javascript and are working fine but the pdf form calculation speed is far from that of excel. Even if we use the short term for loan e.g 3 or 4 years it take time while excel sheet is designed to calculated till 1560 total number of payments and takes no time to calculate all data.I used repeatable subform feature and depending on the total number of payments rows are generated during runtime. I used this to keep document length optimum and escape from calculating unnecessary rows that are not required when loan
JavaScript slently print HELPTranslate googleI have 2 printers, print PDF file size is 430mm * 310mm, and need to be marked with 0001-00100 each number, you can manually double-sided printing on the 450mm * 320mm, but I and JavaScript silently print, only print Double sided A4 size paper. Plus "pp.flags | = fv.setPageSize;" can print out the A3 size red, but not the first time to print the parameters to print correctly. That is, the last print setting parameter is not recorded when silently printing.The code is as follows:var l= 4; var s = 5; var p=0;for(var i = 1; i <= s;i++) { this.getField("Text1").value=pad(i,l); this.print({bUI: false, bSilent: false, bShrinkToFit: false}); }function pad(num, n) { var len = num.toString().l
Dear Adobe, please include PDF-preflight in your Acrobat for iOS versions!!!! That would be extremely helpful and an overdue addition to your staggering development of prepress functionality! Remember your roots. Thanks, Tim
Hello, I have been struggling with this for a while and can't find my exact situation out there.How can I hide 2 text fields and 2 checkbox fields based on a particular date range?I have a form that includes a date field, after a certain date I don't want the fields to be available so I would like to hide those fields. I tried the following, but I don't think I have the date syntax right. What am I doing wrong?if(this.getField("Date").value >= "9/21/17"){ this.getField("Text3").display = display.hidden;}else{this.getField("Text3").display = display.visible;}Thank you so much in advance!
I recently learned of the Javascript Console in Acrobat, and am having a lot of trouble figuring out what the error messages mean. I am getting 2 in particular that confuse me.First, no matter what field value I change I get several errors saying:TypeError: this.getField(...) is null1:Field:CalculateHow am I supposed to know what field is being referenced? Shouldn't there be a field name instead of "(...)"? I have over 100 calculated fields, so not knowing where this error is coming from makes my life way more difficult.Separate question for clarification... say fields A + B = C. After entering a number into "A", will I get that error code if nothing has yet been entered into "B"?The other error I get...InvalidSetError: Set not possible, invalid or unknown.Event.value:7:Field PAYOFF.0:CalculateFor the life of me I can't find any explanation on what these error messages could mean. Is there some sort of reference manual I'm missing?Any help would be awesome before I pull my hair out! Th
How can we tell what the dpi is for a pdf document? Using adobe acrobat X Pro?
Hi,I have some code I created in Word VBA to combine several separate PDFs into a single PDF. The code works fine with the Adobe Acrobat 9.0 Type Library and Adobe Reader 9.0 installed.But, with the Adobe Acrobat 10 Type Library and Adobe Reader 10 installed, the code fails at the marked code below. Any suggestions?? Dim acrobatApp As Acrobat.acroApp Set acrobatApp = CreateObject("AcroExch.App") Dim mainPDF As Acrobat.AcroPDDoc Set mainPDF = CreateObject("AcroExch.PDDoc") ****THIS IS WHERE THE CODE STOPS WITH A "TYPE MISMATCH" ERROR**** Dim nextPage As Acrobat.AcroPDDoc Set nextPage = CreateObject("AcroExch.PDDoc") Dim numPages As Integer 'Loop through all selected VLS, and add each one to the end of the main PDF For i = 0 To lst
Hello!I have 5000 + PDFs and I need to make the text size "Auto" for two specific fields in many PDFs and to save them without a prompt. I can't find the solution anywhere. I use Adobe Acrobat DC and the files I need to edit are stored locally. Here's what I have tried. Can someone edit my script? It is not resizing the fields and I am being prompted to save each one rather than the "Save" function happening automatically. Here are samples of what I tried that don't work. This gives you a clue as to how amateur I am :-):var f = this.getField("HHMember9-Ethnicity-5")f.readonly = falsef.textSize = Autof.readonly = truevar f = this.getField("HHMember8-Ethnicity-5")f.readonly = falsef.charLimit= 3;f.textSize = Auto.sizef.readonly = trueI wonder if the character limit is overriding the text size, or if I am just using the wrong
I am able to get the Image Path in adobe acrobat pro. I am able to upload image with below code. But not getting image path of the same uploaded. var f = this.addField(fieldName, "button", p, r); f.setAction("MouseUp", "event.target.buttonImportIcon();");
I have an interesting question. I have an excel sheet that generates a pretty complicated JS script for Acrobat based on a bunch of user inputs in the spreadsheet. I wrote an excel VBA macro that takes this script, opens the desired PDF, opens the JS console, and pastes the code generated code in the console. However, I can't figure out how to actually run this code once it's in the console. Any ideas? Is it possible to make my VB excel macro force Acrobat to execute a JS?So far this is what I have. My code is in column 1, anywhere from 10-500 lines long which is why I did the If statement in the loop to remove blank cells. How do I make the console execute the code?Sub Open_Acrobat()Dim OpenDoc As StringDim gApp As AcroAppDim gPDDoc As Acrobat.AcroPDDocDim jso As Object OpenDoc = Application.WorksheetFunction.Concat(Cells(2, 3).Value, "\", Cells(2, 2).Value, ".pdf") 'This line generates the filepath of the doc to open Set gApp = CreateObject("AcroExch.App") Set gPDDoc = CreateObject("
I am using Adobe Acrobat DC (OEM install on Dell latitude E7470) with Office 2016. Whenever I right click to create PDF with PDF Maker, I get the error message:"An unexpected error occurred. PDFMaker was unable to produce the Adobe PDF"My Office and Adobe are up to date. I have uninstalled and reinstalled both, and I have run acrofix and a repair on Office. I can confirm that Save as PDF, Printer to PDF, and the Acrobat Tool bar for office are all working. I have spent hours trouble shooting this.If this is just a bug with 2016 I need to know so I can stop wasting my time. Anybody have any ideas?Thanks
Hello,I have 300 pdf files approximately. I need to delete crop and bleed marks present in the document. I am doing now with pitstop. Is it any way to this via javascript? I am novice in Acrobat scripting.Thanks,K
Here's the quick version of my question. I have an excel spreadsheet that writes a JavaScript script in column A of my spreadsheet based on user inputs. I want to be able to run a vba macro in excel that opens acrobat and runs that javascript. I've already figured out how to open Acrobat using VBA in excel, but have not figured out how to open the JS debugger, paste my code in, and run it.In summary: How can I open the acrobat debugger and run my code using an excel VBA macro?Any help would be much appreciated.Thanks
Hi, I'm new to the advanced tools and JS in Acrobat. I have this project that I need to do and I hope you can help me.I need to create a button that when I hover/click my mouse on it, a textbox will appear and people can add/edit/delete texts, and can be multiple lines of text.Pretty much the same as the sticky note/comment tool on PDF, but this needs a more "advanced" approach.Is this possible?Thank you so much in advance!
I'm still learning JS. I would like to have a dropdown menu in a PDF form where the user selects from the dropdown but when he clicks on it, a different output occurs. Example, user selects "G2 - Security" in the dropdown but "ARNO-G2" is what's displayed on the form. Is this possible?
I have been trying to follow instructions on how to create combo which auto pop another combo and intern that combo box auto pop other cells. I used an existing sample script and tried to replace there var and objects with mine but it not functioning. Can someone review my script?I have 6 cells goals, tactics, results, budget, action, tips. Both goals and tactics are combo boxes/drop boxes and the remain four are auto pop from the tact selection.Please note i am very new to coding and trying my very best.******var oTactRef = { "Everyday client meetings":{result:"5 referrals", budget:0, action:"Make asking for Introductions a regular part of the client meeting.", tips:"Use these meetings to initiate your new Value Discussion initiative"}, "Phoenix Conversations": {results:"10 refferrals", budget:100, action:"Reignite your current client base by booking meetings to discuss your new brand in-depth", tips:"Let them know that their experience is val
Hey,I am getting "Acrobat could not compare the document completely. Do you want to see the report anyway?" error.Before it was working fine but after upgrading to windows 10 it stopped working.Operating system: Windows 10 ProAcrobat version: Adobe Acrobat XI Pro (11.0.17)Under File->Properties->Description->Advanced->PDF Producer it says "Python PDF library - http://pybrary.net/pyPdf/After selecting first document it will automatically select "Presentation decks, drawings or illustrations" but it should stay on "Reports, spreadsheets, magazine layouts".I have tried reinstalling Adobe Acrobat DC Pro but it didn't help.It works if i open pdf with word and save it as pdf but our client doesn't want to make those steps, because it worked before.
I try create catalogue with buy option and i stuck on the one thing I need to create java script which after clicking on add to cart button will transfer Qty (filed by customer) to last page where is order .At the moment when customer click on cart code, product description and price are transferred just stuck on Qty.
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.