Unlock the power of Acrobat SDK through our community.
Recently active
I have been reading up on this quite a lot and have found ones that give answers but I am still quite confused on exactly how to accomplish this. Even with the answers given I am still not sure where to even start. I am reletively new to working with acrobat and using java with it. I am trying to make an action button lock the text fields in the document and then save it in the alotted location and have the name "xyz.date". I found the way to lock the fields in the document and that is working well, but I am really struggling to understand how to get the file to save somewhere on its own. Any step by step of exactly how to do this would be much appreciated! Thank you!
Every document I run the script, the height changes to 35 cm and the width remains the same.For example:I have a document size 10 width by 21 height, I want to change the height to 35.The media size, not the crop size.another example:Document size 15 width by 20 height, I want to change the height to 35. The script will be inside the menu in Acrobat.
Hello to the community,Have created a form and would like it to open an info window with the form where a certain info text is.Close info window manually or automatically after 5 seconds.How can I do this with Acrobat DC (2015 Clasic / Version 2015.006.30527) or would it be possible with Java script?If so, please include the code. OS is Windows 10 (2004).Any idea / help how I could do it is welcome 🙂 Thx in Advance
I am creating a print button to automatically print a document with mixed pages sizes.The printer has both Letter and Legal size paper available in different trays.How can use javascript to fit a page that is 7" x 12" to Legal size paper but a page that is 6 1/2" x 8" to Letter size paper?
Hi there, I have found many replies to this kind of issue but none helped me so far. So here is what i work with and what i did so far. I have a form of 1 page (intropage). To this 1st page can be added 3 different templates. - interior checkup-exterior checkup- final page (for signatures, annotations etc) I have added 3 buttons on each template with javascripts to "add" the page model, when needed.The javascript looks like this: this.insertPages({nPage:this.numPages-1, cPath:"MODELNAME.pdf"}); The "Modelname" is for showcase here, I use the specific file name of the int/ext/final page. Depending of the situation, I need my first page and, for this example, 4 interior check templates and 3 exterior check templates - and of ourse the final side for signing. Actually my page numbering is scripted in a text field (custom calculation) as follows : var pnum = this.pageNum+1;var numpag = this.numPagesevent.value
I recently purchased Adobe Acrobat Pro DC ( Order Number: 12152877759 ) for MAC. I followed the steps to download the program. When I reached to Serial Number page in the installation steps, a yellow massage appear on the top of the page with : "We are unable to validate the serial number of Adobe Acrobat. Pls contact Customer Service" even before I enter the serial number. When I entered the number sent by the receipt email, the same massage sill on the top of the page without any progress. I tried many times to uninstall all the related acrobat folders, restart the system & download the program from link Download Pro or Standard versions of Acrobat DC, XI, or X But Same Problem was Repeated. I also changed my Adobe account & used a new one & still the same problem accrued. I mentioned this problem from yesterday & had been connected with meenakshin83966505 all day long without any solution progress & it end up with this massage (If you still get erro
Hello: I have a script such as this: var dialogComm01 = { initialize: function(dialog) { dialog.load({"comm":this.strComm}); dialog.load({"rd1": true}); this.ServArea = true; dialog.enable({ "rd1" : this.ServArea, "rd2" : this.ServArea, "rd3" : this.ServArea, The first radio button "rd1" is the default. I would like to set the default via a variable or global variable instead which might be rd2 or rd3 etc. such as like this: var dialogComm01 = { initialize: function(dialog) { dialog.load({"comm":this.strComm}); dialog.load({global.defSA: true}); this.ServArea = true; dialog.enable({ "rd1" : this.ServArea, "rd2" : this.ServArea, "rd3" : this.ServArea, But it does not fly. Any direction wou
Hi all, Using Adobe Acrobat Pro DC v 2020.012.20048I am trying to search pdf files for a string and log the results so I can review the files that return True.The files are on a \\Server\Share\ I tested the code below on a local folder with 3 pdf files and everything worked as expected.I then changed the path to the \\server\share\ . I did get results for 3 files, then I received an error:[quote]Run-time error '-2147023170(800706be)':Automation errorThe remote procedure call failed[/quote]Here:blnSearch = AVDocObj.findtext(szText:=searchString, _ bCaseSensitive:=False, _ bWholeWordsOnly:=True, _ bReset:=2) Any ideas on what else I can try, or do I have to download all files to local first (64K files) thanks,-w complete code:Sub Search_PDF_For_String() 'https://software-solutions-online.com/how-to-search-a-pdf-for-a-string-using-vba-for-excel/ 'Objects Dim wb As Workbook Dim ws As Worksheet Dim appObj As Object Dim AVDocObj As Object Dim fso As Object Dim f As
I would like help with the following please: Radio button group 'Soort' existing of options 'New' and 'Damaged'.When 'Damaged' is selected, 4 checkboxes appear: 'VZ', 'AZ', 'BZ', 'PZ'.When for instance 'VZ' is selected, checkboxes 'V1', 'V2', and 'V3' appear, each containing a different value. Same for 'AZ' ('A1', 'A2', ...) and the other ones.'Total' is the field for the result of the calculation, based on the input. When 'New' is selected the calculated value of 'Total' must be overwritten with value '795', otherwise the values of 'V1', 'V2', 'V3', 'A1', 'A2', and so on must be added up to 'Total'. I currently have place this script to the 'Total' field (tab Calculate, alternate calulated script), but keep getting errors when 'Damaged' is selected (possibly because the underlying options are not selected yet?): var soort = this.getField("Soort").valueAsString; if (soort=="New") { event.value = "795"; } else if (soort=="Damaged"){ var v1=this.getField("V1").v
I am working on a script which both resizes pdfs and adds notations. I'm running into problems with regards to the origin point. Even if I can assume that the origin initially coincides with the MediaBox (and that is not always the case with the files I'm working with), the resizing I need to do requires me to adjust the MediaBox. Once I do that, I'm unsure as to how to obtain the origin point in order to properly place my notations. Is there a way to reset the origin within javascript? If not, is there a way to return coordinate values of the existing origin as they relate to the page boxes?
Good Day may i ask for help if the sent email format in adobe fill and sign can be modified, wherein the review and sign tab buton Can be at the buttom after the message. Just like this attached jpeg.
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
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.