Unlock the power of Acrobat SDK through our community.
Recente
Hello,Can someone please redirect me to an example or documentation to call a VBA Script within Javascript. I would like to set up such that when you press a button on the Acrobat pdf file it runs the VBA code.I would like to send a string of data from a text field in Acrobat into my VBA code and then return the result (text string) of my vba code back into acrobat pro. Please advise!
Hello all,I have searched for this issue and see a couple of entries, but neither of the discussions solved my problem. I take a document that is already a PDF and try to use the "Recognize Text" feature so that I can copy text and paste it into other documents. The feature works, straightens the pages, and makes the text copyable, but it inserts horizontal lines throughout the document. I have tried everything from different ways to save the document, to canceling "clean up" etc. I don't have a "pre-flight" in my version of Acrobat X Pro, but have tried all the choices in the "Action Wizard" and I also have tried "Optimizing" the document before character recognition, but it still does it.Anyone ever finally solved this problem? Thanks for any help.Jeff
I'm used the script below to detect unfilled fields on my forms. It works great however it can't detect unfilled drop downs they are set to be required. Any help would be greatly appreciated!var emptyFields = [];for (var i=0; i<this.numFields; i++) { var f= this.getField(this.getNthFieldName(i)); if (f!=null && f.type!="button" && f.required ) { if ((f.type=="text" && f.value=="") || (f.type=="checkbox" && f.value=="Off")) emptyFields.push(f.name); }}if (emptyFields.length>0) { app.alert("Error! You must complete the following fields:\n" + emptyFields.join("\n"));}
If I open a PDF that has no custom meta data under document.info, I can add a new meta data entry by running the following code in the console:this.info.foo = "bar";If I then save the document the "foo" meta data entry persists. However, if I try to delete the meta data entry by running the following code in the console:this.info.foo = null;Right after running this code to delete the meta data entry, if I look in Document properties the entry no longer shows. However, as soon as I hit Save the "foo" meta data entry shows up again. It seems there's no way to persist the removal of metadata entries.Is there something I'm doing wrong?
Pakiet Adobe 6Zapłaciłem prawie 8 000 zł za coś co non stop problem.W windows xp jakoś działa.Ale w win 10 non stop problem z acrobatem.nie rozpoznaje numeru seryjnego, nie łączy się z kontem, nic nie można zrobi, nie działa, a kontakt z serwisem ...??????tylko on line i w języku angielskim?Kpiny z pieniędzy które się płaci za program.Może będzie ktoś kto przeczyta po polsku i nie da się nabrac na tak kiepski produkt.Nie polecamgdyby miał ktoś coś to piszziz@rubikon.pl
Hi, I am trying to use Excel VBA to add some text to the bottom of some PDF files. Everything works great, except that the file size is extremely large after calling addWaterMarkFromText multiple times. 'Confidentiality Call jso.addWaterMarkFromText(Replace(oSetting.Confidentiality, "\r", vbCrLf), jso.app.Constants.Align.Left, _ jso.Font.Helv, 11, _ jso.Color.Black, 0, intPgCount - 1, True, True, True, _ jso.app.Constants.Align.Left, jso.app.Constants.Align.Bottom, _ 5, 5, False, 1, False, 0, 1) &n
I'm using the "document will print" action to generate a date & time when the document gets printed. What I'm trying to do after wards using the "document did print" action is return the date & time fields back to an empty state so I don't have to save when closing the PDF.I was heading n this direction...I was just trying to get the date to disappear after printing which I did by placing the following in the "document did print" action boxthis.getField("Time").value = ""this.getField("Date").value = ""BUT i still get the prompt to save the file afterwards...I guess there's no way around this without disabling the save prompt?
Greetings,I am working with a client on a fairly long form for manufacturing process validation. It's 115 pages and has nearly 4,000 user editable fields.They want to be able to verify when each field has been entered by users. While we can certainly use signatures to confirm that fields were filled in before the signature, the order in which fields are completed and the time between field completion matters to them from a process management standpoint.My (perhaps simple) question is this: does Acrobat track the time when a field's content was last updated? If it does, does it also track the user name? Since it knows what's been changed since a signature was applied I'm hopeful that it's tracking that information internally and I can access it programmatically.If not, has anyone ever used Javascript on the fields to try and accomplish the same thing?Thanks!
I have some PDF files and would like to split them into different pdfs as per the TOC given in the file. Using JavaScript, would like to create an action which can read TOC from the pages it is available upto and then split the files as per the TOC.I am new to JS on acrobat. Any help would be appreciated!!Thanks,
I have a licence product of adobe acrobat installed in my pc. I want to use the feature 'save pdf as docx' from windows/linux command line. Is there any way to achieve this?
Hi there,I'm looking for an automated solution creating Bookmarks.My PDF is a raw document. I mean, on the first page begins the reporting for the first customer, let's say it finished to the 4th page.Right after, on the 5th page, begins my 2nd customer, let's say it finished right here (one page for this one).It means then, the 3rd reporting (for my 3rd customer) begins to the 6th page etc...I think you got it...To differentiate this reportings, on each page I got on the first lines of the page "Libellé client :" follow by the name of the customer.For example, by using my previous explanations :page 1 : Libellé Client : NameOfTheCustomer1page 2 : Libellé Client : NameOfTheCustomer1page 3 : Libellé Client : NameOfTheCustomer1page 4 : Libellé Client : NameOfTheCustomer1page 5 : Libellé Client : NameOfTheCustomer2page 6 : Libellé Client : NameOfTheCustomer3etc...It also means, all my Bookmarks are the same level (just under the root level I guess).My customers follow each other...and I n
Using Acrobat DC SDK in C#, with following code Type PDFType = Type.GetTypeFromProgID("AcroExch.App"); CAcroApp AcroAppObj = Activator.CreateInstance(PDFType) as CAcroApp; AcroAppObj.Show(); CAcroAVDoc AvDocObj = AcroAppObj.GetActiveDoc() as CAcroAVDoc; CAcroPDDoc PdDocObj = AvDocObj.GetPDDoc() as CAcroPDDoc;I am able to get an opened document, How can I open PDF document in this existing instance through C#?
Dears,I am using the below script (which I found online) to print the first page of multiple PDF's. It is working great, but the only thing missing is that I need to print in grayscale. Can anyone help? Below is the script:/* Print 1st Page *//* This sequence prints the first page ofeach document selected to the default printer.*/this.print ({bUI: false,nStart: 0,bSilent: true,bShrinkToFit: true});
I have an action script to create a report listing the document file names from multiple pdf files.The script is creating multiple reports for each pdf file, instead of appending each document file name in the single report.If anyone can help to amend the script so that a single report is created will be most appreciated// Begin jobvar docfile = this.documentFileName;if ( typeof global.counter == "undefined" ){global.counter = 0;}// Main code to process each of the selected filestry {global.counter++global.report = new Report()global.report.writeText("Report on File \#"+global.counter + docfile + "\r\n");global.report.open("job report")} catch(e) {console.println("Batch aborted on run #" + global.counter);delete global.counter; // Try again, and avoid End Job codeevent.rc = false; // Abort batch}// End jobif ( global.counter == global.FileCnt ) {console.println("End Job Code"); // Insert endJob code here// Remove any global variables used in case user wants to run// another batch seque
Hello out there!Ok, so I know just enough to get myself in trouble sometimes and don't know how to write scripts 😕😕I'm looking to set up a form for my business to make quick work of estimating and am trying to create what I believe to be a simple calculation as follows:Form field 1 is a drop down named "Box Type" and may contain the following drop-down options: "Frameless; Faceframe; Inset"Form field 2 is a text box called "Base Amount" with the Format set as "Currency", and I want that box to display a dollar amount based on the option displayed in form field 1.Hope I've made sense here! (not meant to be condescending to anyone on this forum, I just dont know that I've stated my request properly)
Hello, I have created a character sheet for a game and I am stuck trying to translate drop down menu choices into numerical values to work with. The point is that a character is supposed to gain different bonuses according to the race chosen (as shown in the human/elf example below). Now I have the dropdown menu "Races" and I would like to have all the "racialmodXXX" added to the corresponding text fields (for example the "Agilitytotal" text field should be computed by adding the entered value in the "Agility" text field + "racialmodagi".)This is what I have entered into the validation box of the "Races" dropdown menu:var racetype = this.getField('Races');var racialmodbody = '0';var racialmodagi = '0';var racialmodreac = '0';var racialmodstr = '0';var racialmodwill = '0';var racialmodlog = '0';var racialmodint = '0';var racialmodcha = '0';var racialmodedge = '0';var racialmodmag = '0';if (racetype.value == 'Human') {racialmodbody.value='0';racialmodagi.value='0';racialmodreac.va
I´m trying to create a java-instruction, that, when I press a button, save the current PDF-form under a nwe name. The name of the PDF will be fetched from a field within the PDF-form.BUT - I can´t get the "saveAs" function to work!I´m using the Adobe Acrobat Pro DC.I want to use the java-command because I need to be able to name the new file from a field in the form.I´ve been trying a couple of different syntax:this.saveAs();this.saveAs("file1.pdf");event.target.saveAs();event.target.saveAs("teat.pdf");...I am lead to belive that it is a problem with security, a saveAs or save function might be able to change data on the computer without the users controll. BUT - the command exists - how do I set it up to work?!The form will later be mail to different recipients, where I need the same function to work. SO - I can´t place a script in the Java-folder since it won follow the document to the new user?!
I need JS codes for the create date of a pdf formular and a code that takes the windows user that oppened the documente.I use "Adobe Acrobat Pro DC"Where can I fill in the JS codes in the pdf document?1) tools, JavaScript, under add the code right?, under Skriptname any name right? and how can I fill it in in the pdf formular after I did this?2) tools, Formular prepare, dobble click a description field, format, user-defined, user-defined key input, edit, give the code in and how can I fill it into the pdf formular now?If non of those two versions work can you tell me howI can fill it into the pdf correctly?If one of those versions work, can you tell me than how to get them into the pdf that I see them?Thanks for helping in advanceYannick
I have multiple forms with document level scrips. I need to find a way to have the document fully open PRIOR to the cripts running. Is there a way to do this or do I need to copy all my scripts in the Page Open area
If anyone can help with a scenario that I'm struggling with I would be eternally grateful. I am learning how to write in Javascript but am very new to this. I'll do my best to describe what is happening and how I'm trying to write the script. Below is the breakdown:Line "J10" is a sum of 5 lines. Line "J13" is the sum of line "J10" and "J12" ONLY if Line "J10" is greater than 0. If Line "J10" is a negative number then Line "J13" should return 0. I've written the script so many different ways I think I've thoroughly confused myself. At one point, I thought I solved it. When I enter the number and it gave the result I was looking for on the positive side and then changed the number to a negative but the result from the previous script didn't change but stayed the same. I want to be able to write the Javascript so if I test it with a positive result it gives the result I'm looking for and if I change the test number to a negative number that
Hello,Can someone pls help me with the below error:AcrobatProDC install fails with Error Not Enough Disk SpaceI actually got only 1.7GB left on my C Drive, But I do have enough space on D drive (18GB). How will I change the Acrobat to install on D drive?Thanks, Siva J
Is there a way to search, highlight, extract, but instead of extracting the entire page, I only want to highlight/extract the sentence or paragraph the term is contained in?I ultimately want to be able to export a "summary" into excel of a predefined set of search terms and pull the surrounding sentence or paragraph so that this exported list contains the context of how the term is being used in the document.Is this possible??Thanks,
HelloI am trying to import multiple (6) rows into a text field from a text file. If i add 2 or more rows it gives me an ouptut of 0. Is there another way to achieve this?I have tried this:var i; var full;for (i = 0; i < 7; i++) { full += importTextData("/C/Users/testfile.txt",i);}event.value = full;This only read the 6th row in the file.I have also tried this: var a = importTextData("/C/Users/testfile.txt",0);var b = importTextData("/C/Users/testfile.txt",1);var c = importTextData("/C/Users/testfile.txt",2);var d = importTextData("/C/Users/testfile.txt",3);var e = importTextData("/C/Users/testfile.txt",4);var f = importTextData("/C/Users/testfile.txt",5);event.value = a+b+c+d+e+f;This only outputted the last row in the file.Please advise.
My alternate email address is sending the email with the newly created pdf. How can i change the sending address to my principal email address?Principal email address is gloving@npgcable.com
This is the area that I want the numbers. Each time I open the pdf document create a different billing number. I think that the code is in Javascript but I don't know.I'm going to use 10 digits. Where I place the code?Thanks for your help.
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Você já é cadastrado? Entrar
Ainda não tem uma conta? Crie uma conta
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.