Unlock the power of Acrobat SDK through our community.
Als letztes aktiv
HiI am experiencing many broken links in the Acrobat SDK Library API reference. I am trying to find some information about ASFileSys but all I get is a 404.Many other links are broken too. Do I have the wrong URL? Is it somewhere else I can download this information?Acrobat and PDF Library API ReferenceThanks
Hello, this may be a scripting question. I also am not sure if I should duplicate the pages in Indesign or within acrobat.I have a large document for printing created as a merge in Indesign from CSV.I need to provide a proof with only one instance of each pageWhen we are ready to print, the pages need to be duplicated based on data from the original CSV.My thinking is I bring the number of copies required for each page as a field, non printing, screen only. This way the proofing process can also check and potentially amend the number of copies required while the content is being checked.I then need a method to duplicate the pages based on that field value.Alternatively...... Please give me a suggestion.Thanks
@Thom Parker The following code works well on previous acrobat revision, but now on acrobat DC doesn't work. Please give some help tips, thanks!doc = app.openDoc({ cPath: "/C/temp/doc1.pdf" })// List of files of different extensionsaFiles = new Array( "doc2.jpg ", "doc3.jpg ", "doc4.pdf");for ( var i=0; i < aFiles.length; i++) {// Open and convert the documentnewDoc = app.openDoc({oDoc: doc,cPath: aFiles,bUseConv: true})// Save the new PDF file to a temp foldernewDoc.saveAs({ cPath: "/C/temp/tmpDoc.pdf" });// Close it without noticenewDoc.closeDoc(true);// Now insert that PDF file just saved to the end of the first documentdoc.insertPages ({nPage: doc.numPages-1,cPath: "/C/temp/tmpDoc.pdf",nStart: 0});}RaiseError: This file is already open.Doc.saveAs:12:Console undefined:Exec ===> This file is already open.undefined
I want to retrieve Excel fields from a PDF Form every 60 seconds. What JavaScript code fits my needs?
I would like to use a value entered in one or two number entry fields to populate a specific area on a form with graphic images based upon those values? Any suggestions would be helpful.insertThis would ideally involve two 2-digit integer number fields that indicate the images desired.The images are scaled to fit the desired space however I need to first determine if just one or both fields are populate with a value. Then if only one value is present, that designated image is inserted in the desired space on page two of the form and horizontally centered. If two values are present, then both images are placed side by side in the space on page two and horizontally centered.Thanks for any input.
How do I capture the print button OnClick event so I can see if an user has printed something?
Hello my dears, I'm looking for a script for a text box in which I enter the time. At the moment I have assigned the field a format (HH: MM), and if the user enters HH.MM he gets an alert. But I would like the field to automatically switch to my chosen format (similar to an Excel spreadsheet). So: the user types 9.30 and in my text field appears 09:30. Is there a script for it? (Acrobat Pro DC 2018) Can someone help? Thanks in advance!
As you can see, there is a submit button trigger action to submit form. how can I change the url when this button is clicked, for example append datetime to the url so the form data will be send to button.ca/reports?datetime=20170727091214 instead of button.ca/reports
hello community,i am looking for a solution for a special requirement and hopefully you can tell me if it's possible ort not.We want to automaticly analyze a defined part of a pdf file to find out, where is the best area (visibility) to place a stamp or a watermark.This should work as a batch job.Thanky for your answers!
Hi I'm currently trying to make a pdf spawn different page templates based on the selections from a dropdown and I can't seem to get it to work:I have the drop down named "Brief Type 3" containing 5 items with export values from 1-5. I also have a button to receive these values.I have 5 page templates named 'spawn1', 'spawn2' 'spawn3' 'spawn4' 'spawn5'.I'm using the following:var sel = this.getField("Brief Type 3").value;var templateName = "";switch (sel) { case 1 : templateName = "spawn1"; break; case 2 : templateName = "spawn2"; break; case 3 : templateName = "spawn3"; break; case 4 : templateName = "spawn4"; break; case 5 : templateName = "spawn5"; break;}if (templateName != "") { &n
How to display number 3000000 ? currently it is coming 3.0E6
I have set a character limit for a Textfield.i try to show the remaining characters without success.alternatively i try to show an error message when the limit is reachedvar laenge = this.getField("Overline").value;event.rc = true;if (laenge > 10) { app.alert("Max. 40 characters incl. spaces"); event.rc = false; }else { event.target.textColor = color.black; }Is there a way to display the remaining characters?if not, what am I doing wrong with the code here?
I have a form whereby I need a total to appear based on a checkbox...eg if checkbox10 is checked then "total1" becomes the total of field "qty1"if checkbox10 and checkbox11 are checked then "total1" becomes the total of fields "qty1" + "qty2"been playing with it for a while but can't figure it out.I'm doing it this way because I need the totals of all the "qty" fields to add up on the form, but also need a total of just the checked "qty" fields in another section of the PDF.
This is my script...I can't figure out what I'm missing. When I click submit it doesn't do anything. I'm trying to create a dynamic subject line with text in the body to click submit and the form to email as an attachment.var CID = getField("CID").valueAsString;var ORG = getField("ORG").valueAsString;var ClientName = getField("ClientName").valueAsString;var Requestor = getField("Requestor").valueAsString;this.mailDoc({CTo:"email@email.com", cSubject: "Billing Adjustment for: CID "+CID+" - Org "+ORG+" - "+ClientName+" - "+Requestor, cMsg: "Please see the attached adjustment for "+ClientName+"."});Any help is greatly appreciated.
I have a javascript that I used with Adobe Acrobat Pro 9. Adobe Acrobat 11 was installed on my computer and my I do not know how to get my javascript working. Can someone help me please.
Hello,I'am using Adobe Pro DC in order to export financial PDF reports to HTML (or Word). However, the tables are hard (in fact extremely hard) to parse and the toolkit failed to correctly detect tables. The PDFs have a high quality, the problem is that the tables are artistically\carefully designed.Is there something i can do or some trick in order to improve table parsing accuracy.Thanks,
I am using Adobe Pro DC and noticed that the properties box for a text field has the option of "Password". I tried it and really appreciate that the masking is done automatically. My question is how do you go about unmasking it? It seems like a useless feature to be able to hide data but have no recourse to unhide or view that data later. Is this something that can be resolved by inserting a button with JavaScript to mask/unmask?
Hi again community, I have a problem with some subjects that have been brought up multiple times on these forums, but I’m the type of person who seems to be the first to encounter problems that are normally fixed easily if it were to happen to anyone else. I’ve searched online, on the Adobe forums, but either the formulas don’t work for our template or the solutions where on older Acrobats with different menu layouts and where missing one little setting… I’m finalizing a PDF template for use as Work Orders. All I’m trying to do is the following;Sequential Numbering – I’ve attempted the JavaScript a couple of times but can’t get it to work. I was able to make the auto date function (thanks to this forum) but not the sequential numbering. We would like to have the initials of the employee followed by a number that would go up by 1 every time the work order i
Hii, I have three if query.If I add only one IF-Statment, then this query works., but when I put all three together, the if-statemants do not work.//This if, disable all Checkbox and textfieldsif (this.getField("Bewerbung_post").value == "Ja") { this.getField("Bewerbung_elektronisch").display = display.hidden; this.getField("Email_Adresse").display = display.hidden; this.getField("Bewerbung_telefonisch").display = display.hidden; this.getField("Telefonnummer_Kontaktperson").display = display.hidden;} else { this.getField("Bewerbung_elektronisch").display = display.visible; this.getField("Email_Adresse").display = display.visible; this.getField("Bewerbung_telefonisch").display = display.visible; this.getField("Telefonnummer_Kontaktperson").display = display.visible;}if (this.getField("Bewerbung_elektronisch").value == "Ja") { t
Hello,In a field you can enter only phone numbers (with a 0 before). I have the following script:var regexp = /\D/if(regexp.test(event.value)==true){app.alert("Bitte nur Zahlen eingeben: 052 123 45 67",3)}else{event.target.fillColor = color.transparent}This entry may also contain withespaces. but when i write the number with a space, i got the error massage. What exactly do I have to enter to get a result?Thank you for your help 🙂
Trying to locate Joel Geraci's free PDF Portfolio Utilities: Version 1.7 but links keep saying, "The site has been archived. Visit blogs.adobe.com for latest adobe posts." How can I access these archived posts?
Hello, when I'm using getPageNthWord, if the word is inside parentheses it keeps a parenthesis attached to the word even with bStrip parameter set to true. And what is strange is that only the "(" opening parentheses are kept, the closing ones are not. This is problematic because when I want to match the document words with a search it doesn't match. It could be fixed manually by checking if the NthWord contains a parenthesis and removing it with replace() but I think it would slow performance on longer documents ?? Any explanation on this would be very appreciated !
This works when I add the following script to the Custom Calculation in the 'JobType' text field, I type Regular in my 'Status' Text Field the number 1 shows up in 'Job Type' text field.The problem is I also need to be able to type Temp so the number 2 shows up, but when I try to add it and and I type Regular in the 'Status' field 2 shows up in 'Job Type', not 1. I've tried everything and it's probably so simple var a =""; if (this.getField("Status").value == "Regular"){ a="1"; } event.value = a;
HiI am trying to make a textfield(input) become require if checkbox(special) is ticked. I have tried everything I can think of. I believe the problem is with the code for thecheckbox. The submit button works and populates email however it does not check to verify the textbox has something in it if the checkbox is ticked.Code is on a submit buttonvar isFormValid = true;if (this.getField("special").value == 'on' && this.getField("input").value == '') { app.alert('Enter Data'); isFormValid = false; } else{if (isFormValid) { var mySubject = "Leadership Development Request Form for" + " " + this.getField("Name").value + " " + "Circuit" + " " + this.getField("Circuit").value; this.mailDoc( { bUI: true, cTo: "email@mail.com", cSubject: mySubject })}}Any assistance will be appreciated
Hello,I'm beginner to JavaScript and Acrobat JS api. I'm trying to write a script which makes annotations on phrases instead of single words, and I wanted it to be case insensitive. Therefore logically, I thought of using .toUpperCase() method on both this.getPageNthWord(p, w) and the words searched. To simplify it's use for multiple sentences, every phrases entered are pushed in an array and the annotation function is called for every items in this array.But the problem is that when I launch the script, the annotation is made only for the first phrase in the array and I get a "TypeError: this.getPageNthWord(p, w) has no properties" in the console.Here is a basic case which reproduces the exact same problem.In this example this is only an array of words which is searched for annotations, but as in my case, only the first word is highlighted and we get the same "TypeError: this.getPageNthWord(p, w) has no properties"function DoHighlight(word){for (var p = 0; p < this.numPages; p++){&
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.