Unlock the power of Acrobat SDK through our community.
Recently active
Hello All, I am working on a timesheet that has In/Out In/Out and am having NaN errors with my code. This is the first time I've tried this so I am going at it blind. The DOCUMENT JavScript is: function Time2Num(sFormat, sTime) { if(sTime == '') return ''; // exit // get date time for Epoch date and sTime var oTime = util.scand('mm/dd/yyyy ' + sFormat, '01/01/1970 ' + sTime); // convert UTC Offset to milliseonds for adjustment var fTZOffset = oTime.getTimezoneOffset() * 1000 * 60 // time since the start of the day in millseconds var fTime = oTime.valueOf() - fTZOffset; // convert to seconds and return value return Math.round(fTime / 1000); } function TimeDiff(cStartField, cEndField) { var sTimeFormat = 'hh:mm'; var fDiff = 0; // get the start time var sStart = this.getField(cStartField).value; // get the end time var sEnd = this.getField(cEndField).value; // complete script only if we have data if(sStart != '' & sEnd != '') { // convert sStart stri
Hi,I need my fillable form to automatically divide two sub-totals. What is the javascript code that I need to place in the last line to get these two subtotals (Cash Availability/CashNeedsFor30Days) to divide? Thank you in advance!
Hello Everyone, I want to create a site for attorneys and users who does a lot of legal paperwork. It saves their common information in database - think of first name, last name, address, license number etc. Thereafter, any form that needs such information will be auto-populated. Here's on such form:https://www.uscis.gov/sites/default/files/document/forms/g-28.pdf Seems like all such government forms are protected with owner password. Can someone please shade light on how can I achieve this goal? Thank you!Pratik
I have a form that with a due date field that is read only and a calulation that info is due 2 weeks after filling out this form. Once submitted I don't want this field to change as it is set to add 14 days to today. How can I do this?
Hi, I have a PDF containing multiple report cards, and each student's report card is bookmarked. Some report cards have an even number of pages, and some are odd. That and the number of pages vary depending on how much was written on the report card and the student's grade level, therefore it is not a set number of pages. I would like to insert a blank page after each report card that ends on an odd number of pages, so that the entire PDF can be printed double-sided. These PDFs are generated from our Student Information System. The SIS Tech Support is not giving me a solution to do this directly from the system, therefore I am trying with Adobe Acrobat Pro DC. I am not familiar with Javascript. I have found how to add an action to "Execute Javascript", but I do not know how to write the proper code to do this, if it's possible. I have found codes to add pages at the end of odd docs, but not the end of bookmarked sections. Does anyone have any suggestions? Pleas
I want to calculate the future date from todays date plus x number of days. Never having used Java Script before what steps do I follow to incorporate the calculation into the PDF Document. When I attach the PDF Document to an email I don't want the field to be updated for the recipient but remain effectively at the original date. It represents the expiry date on a Membership Card and we don't want it to change each time the recipients opens the attachment.
Hi All, After we upgrated java from java 8 to java 11 in AEM , we are getting below severe error logging as below javax.net.ssl|SEVERE|28|CM Event Dispatcher (Fire ConfigurationEvent: pid=org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl)|2020-10-21 10:28:59.415 PDT|TransportContext.java:319|Fatal (INTERNAL_ERROR): closing inbound before receiving peer's close_notify ("throwable" : {javax.net.ssl.SSLException: closing inbound before receiving peer's close_notifyat sun.security.ssl.Alert.createSSLException(Alert.java:133) I have attached the entire log . Please give your input on this issue. Appreciate your help. regards,Harish
Hi , Is acrobat reader pro provide scripting feature to run and add password to PDFs file via scripting (cmd , bat) ? Thanks.
Hi,I'm trying to read the annotations of a pdf fileSub ReadAnnotationsTest()Dim AcrApp As Acrobat.AcroappDim AcrAvDoc As Acrobat.AcroAVDocDim pdDoc As Acrobat.CAcroPDDocDim Jso As ObjectDim Annots() As VariantDim Annot As ObjectDim Props As ObjectDim strContent, strSubType, strAuthor, strSubject As StringSet AcrApp = New Acrobat.AcroappSet AcrAvDoc = AcrApp.GetActiveDocSet pdDoc = AcrAvDoc.GetPDDocSet Jso = pdDoc.GetJSObjectJso.syncAnnotScanSet Annots() = Jso.getannots ‘ HERE I GET THE ERROR "impossible to assign to the matrix" and the procedure blocksFor Each Annot In Annots Set Props = Annot.getprops strAuthor = Props.Author strSubject = Props.Subject strContent = Props.contents strSubType = Props.Type Call WriteTable(strAuthor, strSubject, strContent, strSubType) ' this is an external routineNextSet Props = NothingSet Annot = NothingSet Annots = NothingSet Jso = NothingSet pdD
Our company has upgraded to Acrobat Pro DC from Adobe Pro X and the following line of code no longer functions to open Adobe in Scan mode:AdobeAcro.MenuItemExecute("Scan")Can someone direct me to help files for coding with Acrobat Pro DC with VB.NET? Thank you,Anthony
We are placing static stamps on several pdf files and I would like to automate this. I am looking into javascript and trying to figure out how to set up a code. I would like a code to take a stamp named "Draft" and place it 50 mm from bottom and 50 mm from right. I have tried to use add watermark and use the stamp as source file (and apply to multiple files) but it is not as easy to move the watermark, if necessary (for example if it is placed over something else). If the source file is added as a stamp and then the stamp is placed on the drawing it is much easier to just grab and move the stamp around.
I often need to revise a PDF form that already has form fields on it. First I open the form. When I click "Prepare Form" in Acrobat DC, Acrobat first wants to know which PDF I want to use. When I choose the PDF I currently have open, it then tries to detect form fields, and finally I'm able to edit the PDF form.Is there a command that I can choose, like "Edit PDF Form" so I don't have to go through multiple steps and choices before I can edit the PDF form I have opened in Acrobat?
Hello,I'm new to using JavaScript (no training at all) and am trying to take a field that the user enters as a negative number and convert that number to a positive and then multiple by another field.This is what I wrote, but it is not working correctly so I think it has to do with the order.The first thing I'm trying to is to multiple by -1 to turn it to a positive number and then multiple by the other field.event.value = this.getfield("*S7 Special Functions Costs").value *-1 * this.getfield ("S5Total Meals"); The first thing I'm trying to is to multiple the field "*S7 Special Functions Costs" by -1 to turn it to a positive number and then multiple by the other field "S5Total Meals". I'm using the this.getfield because my field names have spaces and I used the '*' in my field names to denote fields that were used in other spots, which made sense when I started since its a multiple page Projected Operating Costs and that was before I started doing math in the form. If a
I have a textbox that holds a time like "1:00 pm". I have another textbox below that I want to display 5 minutes added to the first box (1:05 pm). I've been looking through multiple forums trying different code, but the second text always displays "Invalid Date5". Here is the code I am using. var dater = "1/1/2020" + " " + this.getField("Start1").value var previousDate = util.scand("m/d/yyyy h:MM tt", dater); previousDate.changeBy({"minutes": 5}); event.value = util.printd("m/d/yyyy h:MM tt", previousDate);I'm very basic in Javascript so any suggestions or help would be appreciated. Thank you!
As soon as I open Acrobat Pro DC 2015 it automatically switches from onboard graphics (INTEL) to my discrete GPU (NVIDIA) which uses a lot of battery power. Is there a way to stop this so it only uses the intel? What does Acrobat need High Performance GPU for?Thank you.
When I am trying to create a calculated field in Adobe Acrobat I am unable to mark the fields for calculation. I can select the field but I cannot check the field to identify it as one of the fields I would like calculated.(Image One) I can however choose select all and all the fields get a check mark.(Image two) When I do this it seems to start multiplying random numbers (Image three)I am test driving this for my job at a Public Library and so far I am not impressed.Image oneImage twoImage ThreeThank you for your comments.Robin
I created a custom script that equates a percentage and that works fine. However, I get the error message of "the value entered does not match the format of the field". I believe that by other discussions I have read that I need to set a script that ensures the field has a non-zero value but don't know how to write it. My current calculation is: event.value = this.getField("Sponsor Total").value/this.getField("Overall Project Total").value
I have two form fields. One is called SOP No and one called Version No along with a digital signature. I need acrobat to save my document with the Date/SOP No/Version No once digitally signed and save it. Can you tell me how I would do this? Thank you in advance.
I'm new to JS. I know it should be easy to do that but I didn't find my answer anywhere.I have a check box that I want to be checked only if there is a value in either one of my three drop-down list. Every script I tried didn't work out. How should I write it ? If Drop1 or Drop 2 or Drop 3 is not empty, check Box 1Thanks again,
Has anyone got any answer to why we have yet another Adobe developer domain using a British Indian Ocean Territory domain - Adobe IO. What is wrong with devnet?
Hey all, I've been using this code in a JavaScript file saved in the application folder and calling the function from the Action Wizard but I want to paste the code from the JavaScript file into Action Wizard so I can transfer the Action Sequence across multiple computers and not have to worry about the JavaScipt file as well. Any ideas on how I would change this so runs inside of the Action Wizard? Thanks 🙂 // Enter and validate 8 digit numeric case number and add to bookmarks function enterCase() { if (this.bookmarkRoot==null || this.bookmarkRoot.children==null || this.bookmarkRoot.children.length==0) { app.alert("Error! There are no bookmarks in this file.",0,0,"COMPANY NAME"); event.rc = false; return; } var resp = ""; while (resp=="") { var dialog1 = { initialize: function (dialog) { }, commit:function (dialog) { var results = dialog.store(); resp = results["txt1"]; }, description: { name: "COMPANY NAME",
Greetings!I have created a fillable form for my company. I have radio buttons that toggle on and off layers and interactive fields depending on what marketing piece the person wants to request. If the person selects the "Flyer" radio dial, the form shows the only the layer and fields for Flyer-specific questions. It works great but for one issue: It does not save the last layer configuration after the form is saved and closed. It does save the filled-in fields. The form default is to not have any questions showing (forcing the form-filler to select a radio dial). But after the form is filled out AND saved, I want to the form to open on the layer that was saved. It currently reverts back to it's default blank state. I am a novice (literally brand new) to the world of Javascript. Does anyone have a javascript code to fix my issue? Something I can copy and paste? Also, please specify HOW/WHERE to place the script in the document or attach it. I've tried o
Hi,I m trying to add the rectangle annotation to the existing PDF but not able to achieve that.Please help to solve this. I m using Adobe Acrobat 9 pro. I tried with the below C# code,string inputfilepath="C:\\RedLine.pdf"//Object for Adobe application and DocumentAcroApp gApp;AcroAVDoc acroAVDoc;//Initialize Acrobat ApplicationgApp = new AcroApp();//Open PDf DocumentacroAVDoc = new AcroAVDoc();acroAVDoc.Open(inputfilepath, "output");//To show the ApplicationgApp.Show();CAcroPDDoc acroPDDoc = (CAcroPDDoc)acroAVDoc.GetPDDoc();//Rectangle boundsAcroRect acroRect = new AcroRect();acroRect.Left = 906;acroRect.right = 815;acroRect.Top = 377;acroRect.bottom = 142;CAcroPDAnnot acroPDAnnot = acroPDPage.AddNewAnnot(2, "Rectangle", acroRect);acroPDAnnot.SetContents("Testing the Acrobat Redline");Thanks in advance,SASIKUMAR
Hi, I'm looking to automate the calculation of this form with simple check fields. These fields would each have their own assigned value and, at the bottom, the total sum of the fields selected would display. I'm new to acrobat and have found it hard to crack the javascript needed for this.Here's an example:+(The idea is that the value is displayed at the end instead of the client having to do the math on their end)
we integrating convert html to pdf function in .Net using DocumentServices.PDFTools library but facing one issue. we are not able to remove header and footer in pdf. we tried with CreatePDFOptions IncludeHeaderFooter set to false but not working.
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.