Unlock the power of Acrobat SDK through our community.
Nyligen aktiv
I have a work order form I've built and at the end of the form is a checkbox to check if the sale is sales tax exempt. The fields used are as follows (in the order they appear in the document/tab sequence):Pre_Tax_Subtotal (the field for getting the subtotal before tax is calculated)SalesTax (the field that calculates the sales tax; custom calculation provided, below )GrandTotal (the field for getting the total; basically the sum of Pre_Tax_Subtotal and SalesTax)SalesTaxExempt (a checkbox field that returns '1' if checked)Pre_Tax_Subtotal just takes the sum of line items, which works as expected (using the simple calculations provided by Acrobat).SalesTax uses the following formula:if(this.getField('SalesTaxExempt').isBoxChecked(0) == '1'){ event.value = 0; } else { var taxRate = .0825; var subTot = this.getField('Pre_Tax_Subtotal').value; var stc = subTot * taxRate; event.value
We utilize a non conventional way of rounding and I would like to format the calculated fields in my form to this rounding method:Example: 0.45 rounds to 0.4 0.35 rounds to 0.4It's called "Odd to Even" rounding. If the place being rounded (tenths place) has a five in the hundredths place and the number in the tenths place is even it rounds down and if the number in the tenths place is odd it rounds up.Any help would be greatly appreciated. Thanks!
Hi, I have used the below code in applescript. Its working in few systems and not working in few system. When I am checking I came to know Adobe Professional 8 is not support. I don't know the root cause of the issue? Is it related adobe version? set pgNum to do script "this.getPageLabel(0);" // But getPageLabel is working in acrobat javascript How can i call the javascript in applescript for Adobe professional? Can anyone suggest me..Thanks,Sudha K
I have documents that i scan from our printer to my email in PDF format on a daily basis and then every two weeks i take all those files and merge to one large document. Each time i scan the files i make sure that they are rotated correctly when i save them. but when i merge them some are rotated and some are not causing me a sever headache. I am looking at approxi 135 pages once merged so this is very frustrating, what am i doing wrong and how can i correct it?
Any help would be greatly appreciated. I need a java script to get the percentage of 2 numbers. I am including a picture below. For example, I need the number for Conventional Conforming divided by the Total to get the percentage used. Can anyone help?
I will extract the note in PDF file.When calling Acrobat API from VB.NET, the file will remain open and locked. Also, if I check the task manager, the Acrobat process may not finish, there may be a considerable time lag by the end.In the code, it seems that PDF has been opened in Acrobat even though processing to close PDF is included.It is OK even if Acrobat is left in the process, but I want to realize the process of closing the file immediately and releasing the lock as soon as the use of the file is over. What kind of code should be assembled to start Acrobat hidden in VB.NET and close the file opened with AcroPDDoc?sample code : Private Function GetNoteOnPDF(ByVal filepath As String) As String GetNoteOnPDF = "" Dim objAcroApp As New Acrobat.AcroApp Dim objAcroPDDoc As New Acrobat.AcroPDDoc Dim objA
How to you troubleshoot the error "the value entered does not match the format of the field"? The message is being generated more than 50 times in the file. You have to click OK on each of the messages before you can do anything else in the file. When you edit the javascript you get the same error message but may reference another field.
Apologies if this has been asked before... I searched and couldn't find an answer.I have several fields that need to be dynamically formatted based on a user's input. Each field should allow a user to enter text (most always will be "N/A") OR be formatted as a number with a currency symbol.I've been playing around with the following code but am not sure if I'm approaching this correctly, and can't figure out where I should place it (Keystroke, Format, Validation, all three)?function formatSwitch() { if (typeof event.value =="number") {AFNumber_Keystroke(2, 0, 3, 0, "$ ", true);}Thank you!
It's really an important problem for me, I've been bothered for two days, and I've read the API reference of Acrobat as well as all the relating discussions in this forum.I'll be very grateful if someone could help me.Here is the problem:I am trying to deal with almost 3000 PDFs, using AcroExch to automatically save them as txt in Python 3.6.The code works, but the memories that Acrobat takes continues to raise while running, and then it will stop when the Acrobat cannot afford such big memories.The Acrobat will tell me that something wrong when opening this document, because too much documents are opened, I need to close some.I've already used PDDoc.close(), AVDoc.close(1), APP.CloseAllDocs(), app.Hide() and app.Exit()But it doesn't works, the first four methods returns "True" while the app.Exit() returns "False" all the time.Here is my code:import osimport win32comimport winerrorfrom win32com.client.dynamic import Dispatch, ERRORS_BAD_CONTEXTdef txt(path): ERRORS_BA
Calculate x - y then if result is < 0, enter 0
Good evening, I am trying to find a way to print the strings in my Javascript into the console log, that, or print the strings into a txt file.Here is what I have so far:var File = this.documentFileName.replace(/.pdf/,"");var First = this.getField("First Name");var Last = this.getField("Last Name");var Middle = this.getField("Middle Initial");var State = this.getField("State");var Lab = "MDV";if (State = "AL" && "CT" && "FL" && "GA" && "HI" && "IL" && "KY" && "LA" && "MD" && "DC" && "MI" && "MN" && "NJ" && "NM" && "NC" && "OR" && "SC" && "TX" && "UT" && "VA" && "WY") { lab = "HELIX";}var Patient = Last + ", " + First + " " + Middle + " - " + Lab + " - " + State + " - " + "REC FORM";I am looking for a way to print the variable, "File" so that we can see which files are not correctly spelled, a
I bought Acrobat DC Pro from Best Buy. I received a redemption code and located my serial number. When I try to install Acrobat I am told I am using an invalid serial number. What do I do now? Help!
I keep getting this syntax error, "Syntax error: "Missing ; before statement 3 and 4." Basically, I doesn't like, String Last = this.getField("Last Name");Here is the code I have:this.documentFileName.replace(/.pdf/,"");String First = this.getField("First Name");String Last = this.getField("Last Name");String Middle = this.getField("Middle Initial");String State = this.getField("State");String Patient = Last + ", " + First + " " + Middle;The goal is the code to compare the file name to the patient's name in the PDf form fields. I haven't written the rest yet until I can get this syntax error sorted out.Any help would be appreciated!
Hi there,I apologize in advance in this not a solution that requires JavaScript and if so please let me know.I have a form that currently has a Required or Not required option. If the user selects Required then they fill out the fields associated with it. If the section is not required, they can complete the form without entering anything. I don't have this set up so that selecting Required and Not required are connected to the fields, other than Not required will clear any fields that were filled out.My first question is, if a user selects Not required but later decides they wish to fill in the form, is it possible for it to change to Required as soon as they select the checkbox(es), radio buttons or enter on any field? It currently keeps Not required selected (since they're not actually connected so to speak and Not required only clears any fields that were entered.My second question is, if a user selects Required, is there a way to state that everything in that table (checkboxes, fi
Adobe properly created a form from a Word document. It used the text in the original Word document to create nice and accurate fillable fields in the new PDF and all looks correct.Now I would like to programmatcally change some of the 'titles' that precede the fillable fields. (It was these titles from which the fillable-field names were created) in order to give the title a friendlier name. I know how to cycle through the fillable-field names and change them at will, but is there a way to cycle through the 'titles'? (I can get to these titles chosing to 'Edit PDF' (and showing the bounding boxes, but not sure if this step is needed). I can also manually search for text snippets using CTRL-F, and I successfully replace text that is found one item at a time. Can I automate this 'find' and 'replace' routine.
What I am trying to do is use part of a field that is filled in by a user to fill in another field. The two examples I am looking at working with are social security numbers and dates.I have one field that the user inputs the full social security number into. On other pages, I only need the last four digits of the number. Is there a way that this can be done?My second one is a date that is inputted by the user in a YYYYMMDD format. Some of the pages need each digit added to a single charter block and some of them need a date that takes up two lines, year on top and month date below. Is there a way either of those can be done?My experience with Java is very limited so I would prefer to be pointed in the direction so I can learn the info over just being given the answer if possible.
I want a dropdown box to populate with a list of names that comes from our Active Directory list in a certain area, but I'm not sure if it's possible or how advanced that would be to script something like that.
Hello,I added a simple JS function in Acrobat Pro DC, that creates a bookmark when a button is clicked. It works fine in Acrobat Pro, but when my client opened it in Acrobat Reader it didn't.I also added some debugging alerts before and after the bookmark function to check whether the function is called in Reader and to exclude that there is an error in the line itself. Both were fired.Here is the code:function addBookmark(label) { var index = bookmarkRoot.children ? bookmarkRoot.children.length : 0; //bookmarkRoot.createChild(label, "this.pageNum = " + (this.pageNum), index); alert("bookmarkRoot'"+this.bookmarkRoot.children[0]+"'"); this.bookmarkRoot.createChild("Bookmark label", "this.pageNum = 4"); this.bookmarkRoot.createChild("Bookmark label2", '"this.pageNum=4"'); alert("finished"); }Any ideas why the bookmarks aren't created and how can I proceed with
I need to remove the #number on forms after pages are added for scripts. All pages after the first are identical ordering but scripts will not work after first page. Page 1Page 2EXAMPLE SCRIPTGLOBAL// initialize the auto-populate data to an empty object.var oContactData_Ex7 = {};// Read contents of file attachment into a string// Assume there is only one file attachmentvar stmCSVFile = this.getDataObjectContents(this.dataObjects[0].name);var strCSVFile = util.stringFromStream(stmCSVFile);// Parse data into object// First Split into linesvar aLines = strCSVFile.split(/[\r\n]{1,2}/);// Grab column namesvar aColNames = aLines.shift().split(",");// loop over lines and fill objectfor(var i=0;i<aLines.length;i++){// only operate on non-empty lines if(!/^\s*$/.test(aLines)) { // split out data items on line var aEntries = aLines.split(","); oContactData_Ex7[aEntries[0]] = {}; &n
Hi im creating a form in which i need to limit the input into a text box based on the value of another text box. for example if text box "wpds" has UB36 input into it, I then want text box "pass" to only allow the input of "Root","Hot", "Fill" or "Cap". But if text box "wpds" has UF49 input into it, i want text box "pass" to only allow the input of "Layer1" "Layer2" or "Layer3". Any input into this will be greatly appreciated. thanks
I have Date and Time Start "DT1SI have Date and Time End "DT1EI want to DT1E - DT1S and show the result as decimal hours rounded to 1 decimal point as in XX.xI am using Adobe Pro for Mac on my MacBook Pro using High Sierra.I have it done on my Excel version of this form, but I want to create a Fillable PDF version of the form and I have searched high and low on how do do this in PDF.In Excel it is simply =Round((DT1E-DT1S)*24,1) with the result field formatted as a number to 1 decimal place.Hope someone can make it that easy for me in PDF using "Simplified Field Notation" or last but not least "Custom Calculation Script".
Hello,I need to add on my fillable PDF form a printing button that would automaticaly print the file with PDFcreator. I'm using Adobe Acrobat Pro DC.I know how to create and run the button on Adobe, but I'm new to Javascript coding.Can someone help me with the code?Thank you
Is it possible to divide a single multipage PDF into two PDFs?
Hello am trying to redact particular information from a files, is there any options where we can automate redaction by running scripts. Please let me know
Hi,according to the sdk documentation, the class CAcroApp can be used to control the application via COM.However, any function call seems to have zero effect.I put these lines into the BasicIacVc example provided with the sdk acroApp = new CAcroApp; acroApp->CreateDispatch("AcroExch.App", &e); if (!acroApp) { AfxMessageBox("Creating Acrobat IAC acroApp failed in BasicIacVc sample."); return FALSE; } acroApp->Exit();Could you give me some advice?My goal is to the get the current preferences like the Page Display mode.Thanks
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Har redan ett konto? Logga in
Har du inget konto än? Skapa ett konto
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.