Unlock the power of Acrobat SDK through our community.
Nyligen aktiv
Box 1 and Box 2 are dropdown boxes with the first value as default which is a blank line. I would like the Box 2 value to show the 2nd item in the dropdown list ("E") by default anytime Box 1 has been changed to another value than the default or blank line value.
At work, I use Acrobat Standard XI. I use Javscript. My task is to create a PDF file which on the Acrobat Reader page will be able to hide or display an existing Template. I use: this.getTemplate (name) .hidden = false; this.getTemplate (name) .hidden = true; In AcrobatReader, NotAlloweError is displayed. My task is to create a PDF file for submitting applications. The structure of the document is such that depending on what I choose to display a specific Template. What I need to do to hide or display the template is to be possible on the AcrobatReader page
I use Acrobat Standard XI. There are seven pages in the PDF document, three pages used at the start. I use AcrobatReader. At the start 4,5,6,7 page is invisible. In AcrobatReader I have to display page 4, 5 or 6 after selecting individual commands. By executing the command in AdobeReader - Javascript this.getTemplate (name) .hidden = false I get the message NotAlloweError. What should I do to exclude this?
I am working on creating a vba script (Excel) that will create a pdf and fix the width of the document to size of the view port. I reviewed the Interapplication Communication API Reference documentation that list all of the methods and properties of the api. I want to use the “SetPreferenceEx” method to set the Zoom preference to a value of Fit Width. In the instructions (page28), the method provides the data type and description of the parameters. The first parameter is expecting an application preference to be provided, for example, I would expect to be able to pass “Zoom” into this parameter. I have been unsuccessful in trying to set this parameter. The description says to go to the Acrobat and PDF Library API reference for a list of preference items. I found the document here , the issue I am having is that document has over 6,000 pages and I have been unsuccessful in finding the list of preferences. I was hoping you
I am attempting to fill multiple form entries (mostly text boxes, some drop-downs) using a button.The button is correctly resetting the hidden fields which generate the required random numbers, but attempting to change other field values is where it's breaking.I'm using:this.form.elements("Fel_Roll").value=Fel;I've also triedthis.getField("Fel_Roll").value=Fel;Fel is holding the random number and Fell_Roll is the field I want to have it input into IF the button is pressed.I have also attempted it without the reset function, simply using the values currently in the (will be) hidden fields.
I have a document with three dropdowns and I need to populate a text field based on them.One drop down is a description, one is size, and one is the color. I need different combos of these fields to populate a text field with the correct item code.For example: If a user selects "boots" from the first drop down, "7" from the size dropdown, and "blue" from the color drop down ---it should show the item code BB7456 in the item code text field. This item code would also be different if a different size or color was chosen.
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.
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.