Unlock the power of Acrobat SDK through our community.
Als letztes aktiv
I want to be able to type a word in one text field and have several others auto populate with the letters of that word. For example, I want to type the word "christmas" in the text field "word1" and have a script turn the string into an array and autofill text field "word1a" with the letter "c", "word1b" with the letter "h", etc..Is this possible with the javascript installed in acrobat? Would the file built in Acrobat DC be able to be filled in by someone else on another computer with only Reader.I know this is possible with javascript, just not sure how to make it work with Acrobat.What I have been trying is (which does not work):var w1=this.getField('word1');var w1a=this.getField('word1a');w1a.value=w1.charAt(0);I have also tried to convert the string into an array, but have not had any luck. Is this something that would be done in the Document Javascripts or can you do it in the "custom calculations scripts" for the text field.I have been able type each letter in
Several users are having issues with their printing not working in Adobe. They can Print Word, Excel, but not PDF files from Adobe. Also the Adobe PDF printer randomly stops working for these same people. Their computer's acted fine, until we upgraded their professional from X to DC? Usually stopping and restarting the print spooler will work, reboot will usually get it going again. BTW, running on Windows 7 Pro.Happens most often if:The user has more than one PDF open. Sometimes closing all but the one they want to print helps.Finds it interesting that he cannot print a PDF from a shared file location but can go to an internet location with the same file and print it just fine.
Good evening, I am attempting to extract multiple variables in a line which is separated by tabs.Here is an example of the line: ALPRAZOLAM XANAX ANXIETY F41.1 ALPRAZOLAM XANAX DEPRESSION F33.0How would one go about extracting the individual values from this line?
Here is the script I am trying to use but i recieve an error message: SyntaxError:missing) after condition 6: at line 7. What am I doing wrong?var RB1 = this.getField("RatingBox1").value;if (RB1 = Exceptional) { event.value = "4";}else if (RB1 = Very Good) { event.value = "3";}else if (RB1 = Satisfactory) { event.value = "2";}else if (RB1 = Marginal) { event.value = "1";}else if (RB1 = Unsatisfactory) { event.value = "0";}else if (RB1 = N/A) { event.value = "0";}if (isNaN(RB1) || RB1 === "") { event.value = "";}
As you can see on the left, I want to populate those text fields with pre-defined values when a user selects an option. Those value will change depending on the option selected. Thanks for any help you can offer!
PDF file has version 1.5,1.6,1.7 I had try get in Info object , but it not exist:console.println( this.info.toSource());How can detect PDF version by js or IAC?Thank you.
Good evening, I am creating an array that will allow total automation of our company's work.However, I am running into the problem of not being able to find the Index of values, which are grabbed from the form fields in the PDF.Here is my code: this.importDataObject("MEDDIAGNOSISICD-10.txt", "C:\Users\dell\Documents\tab excel\MEDDIAGNOSISICD-10.txt");var oFile = this.getDataObjectContents("MEDDIAGNOSISICD-10.txt");var cFile = util.stringFromStream(oFile, "utf-8");var fileArray = cFile.split('\n');var Med = this.getField("Medications 1");var Index = fileArray.indexOf("Med.value");var Search = fileArray[Index.value];console.println(Index);The results always come back as "-1."Any help would be greatly appreciated!
Good evening, I am trying to find a way to read lines from a text file within Acrobat Javascript, more specifically, to search for a line among hundreds of lines.I have looked over the Acrobat JS API reference, and I found that import/export text may not be the best idea since we don't use hundreds of text fields in our documents.Any help would be wonderful, thank you!
Hey everyone,Wanted to know if there is a way to batch create portfolios in Acrobat Pro DC (function or script). Here is what I have.500 folders with files inside them.I want to batch create 500 portfolios from these folders and have 500 individual portfolios in the end basically. Right now ACRO only lets my create 1 portfolio at a time.Also, if possible when the portfolio is created, that it take the name of the folder.Thanks alot
I want to develop a plug in for Adobe Reader in which the documents will be signed and the certificates will be stored in the cloud. What are the steps that i must take in order to accomplish this?
Im building a spreadsheet for a gaming character sheet and Im having trouble implementing a javascript to do an "if-then command.I have a pulldown list and I need a text field box to refer to which selection was made and then implement one math problem (adding up separate fields) or another.For example under Race Pulldown there is Human or Halfling. If they pick Human then text field box needs to show the total calculation result of text field A+B. If it shows Halfling then it needs to show the result of text field A+C.I tried using:if (this.getField("Race Pulldown").value == "Halfling"){ event.target.display = display.visible;}else{event.target.display = display.hidden;}and replacing event.targeting.display with the math calculation but I couldnt get it to workThanksChad
Hi,I am attempting to implement AVDoc.FindText in an excel VBA script to find and highlight all instances of a search term in a document. Here is the code I have:Dim AcroApp, AcroAVDoc Dim gPDFPath, bReset, nCount gPDFPath = "PATH TO FILE" ' ** Initialize Acrobat by creating App object Set AcroApp = CreateObject("AcroExch.App") ' ** show Acrobat Call AcroApp.Show ' ** Set AVDoc object Set AcroAVDoc = CreateObject("AcroExch.AVDoc") ' ** open the PDF If AcroAVDoc.Open(gPDFPath, "") Then Call AcroAVDoc.BringToFront bReset = True: nCount = 0 Do While AcroAVDoc.FindText("Text to Find", True, True, bReset) bReset = False: nCount = nCount + 1 Loop...End SubBut the problem is that the Do While
Using an Epson photo flatbed scanner, I can scan and save jobs as JPGs, but when I try to save as a PDF the program shows the scan in progress box for a few seconds, the scanner makes noise, then the progress box closes itself and the scan job fails/is not saved. This only happens when trying to save as a PDF. I contacted Epson and after troubleshooting, they said the issue is not with them, but with the PDF reader (in this case Acrobat) not converting the scan to PDF. Previously, I was able to scan to PDF.I have reinstalled Acrobat but still have the same issue. Is this problem truly with Acrobat? I am on Windows 7/latest version of Acrobat.
Hi.I am creating an application to sign a pdf from c #.I am currently having the following problem:System.Runtime.InteropServices.COMException: 'Nombre desconocido. (Excepción de HRESULT: 0x80020006 (DISP_E_UNKNOWNNAME))'This is the code: Type AcrobatCAcroAppType; AcrobatCAcroAppType = Type.GetTypeFromProgID("AcroExch.app"); Acrobat.CAcroApp gapp = (Acrobat.CAcroApp)Activator.CreateInstance(AcrobatCAcroAppType); Type AcrobatPDDocType; AcrobatPDDocType = Type.GetTypeFromProgID("AcroExch.PDDoc"); Acrobat.CAcroPDDoc gpddoc = (Acrobat.CAcroPDDoc)Activator.CreateInstance(AcrobatPDDocType); &
Hi there!The ultimate goal of this script is to set various field values throughout a form depending on what branch is chosen from a radio button group on the first page. I'm testing out the functionality with just two attributes - location name and address.In my tests, I selected "KBAN" as my location and ran this in the console. It did not set the field values of ("LOCATION_NAME") and ("LOCATION_ADDRESS"), but it did return "321 XYZ Road" in the console window.Any ideas why it won't set the field values?Thank you!var Location = this.getField("LOCATION").valueAsString; //radio button groupvar arrLocations = ["KPOR", "KBAN", "KCON", "KBUR", &nbs
I have a file pdf : Attribute [Fast web view ]= Yes,i call js save as filethis.saveAs("D:\\tmp\test.pdf")[Fast web view ] had change to "No" in result fileHow can keep fast web view when save as?Thank you.
Good morning,I need to modify a macro in VBA so that it prints pages 2 to the end of a PDF document. The problem is how to specify the last page of the document, which varies with every document the macro has to process.Can you please explain how to do it? Maybe it requires getting the lenght of the PDF document first, which I don't know exactly how to do it.This is the macro code so far, which would only print from page 2 (first parameter) up to page 3 (second parameter): ad_ac_doc.Open ("DocName.pdf"), "" pri_err = ad_ac_doc.PrintPagesSilent(1, 2, 2, 0, 0) ad_ac_doc.Close 1 ad_pd_doc.Close
Good evening. I am curious as to find a way to edit the values of a form field based on an excel sheet.Our company deals with many different medications, and cancers. We have master excel sheets to reference the cancers and their codes, and medications, etc, for our employees.Is there a way to access an excel sheet through JS?Thank you!
Good evening, I am trying to create a program which will export the PDF document as a FDF file, add pages, then import the FDF file back into itself.Here is my code, as a javascript action in adobe:var Pgx = ("G:\Team Drives\GENETICS\LOGISTICS\REC FORMS\REC FORM SHORTCUT\1-LS PGX REC FORM.pdf");var Cgx = ("G:\Team Drives\GENETICS\LOGISTICS\REC FORMS\REC FORM SHORTCUT\2-MHS CGX REC FORM.pdf");var File = (this.documentFileName.replace(/.pdf/,""));this.exportAsFDF({cPath: File(".fdf")});this.insertPages({cPath: Pgx});this.insertPages({cPath: Cgx});this.importAnFDF({cPath: File(".fdf")});I have tried looking up for what I could find on the forums, and internet, but it seems that my program does not want to add pages, OR export/import FDf files. Any help would be appreciated! I apologize for my lack of coding skill with Java/Javascript.
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
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.