Unlock the power of Acrobat SDK through our community.
Als letztes aktiv
I want to pull a value from a field and perform calculations on it but if the field contains any non-numeric characters I want it to do nothing.
I read the SDK Help where I found that I can view and modify pdf files in a custom pdf viewer which I need to create on my website using javaScript, but I really can't find any complete example to show me how?what I need is to make custom viewermay be I will need to merge of split some pdf filesI found SDK articles like this one Acrobat DC SDK Documentation ..I need to really implement my own pdf viewer in my website.
I have a VBScript file that iterates through a designated folder. My end goal is to check for files over 25MB and use Acrobat 9's "Optimize scanned file" feature to make them smaller.Unfortunately, I do not know the command or function within Acrobat's API in order to make this happen. What commands can I use to automate the process of optimizing scanned files?This is a VBScript file running on a local computer with Acrobat 9 installed. I have tried looking through Acrobat 9's API documentation but cannot seem to find an answer.My code so far:Const PDF_FOLDER = "Z:\ARM\temp\" Set gAcro = CreateObject("AcroExch.App") Set newPD = CreateObject("AcroExch.PDDoc") Set newAV = CreateObject("AcroExch.AVDoc") Set fso = CreateObject("Scripting.FileSystemObject") Set oFolder = fso.GetFolder(PDF_FOLDER).Files For Each fileObj In oFolder If fileObj.size/1000000 > 25 Then newAV.Open PDF_FOLDER &
Hello,I am facing strange problem across all PDF Forms which i make via javascript.The number fields instead of getting sum it gets concanated.Please watch the below video to get clear picture of what is the problem.Dropbox - concatenation problem.avi basically i had to get the average of the number of fields filled by user......The following is the script i used:var counter = 0;for (i=11; i<=20; i++) { if (/^\s*$/.test(this.getField(i).valueAsString)==true) counter++;} if (counter>0) { var total = counter;} else total = "";var v2 = 10 - total; // to get the number of filled filedsvar v1 = this.getField("11").value + this.getField("12").value + this.getField("13").value + this.getField("14").value + this.getField("15").value + this.getField("16").value + this.getField("17").value + this.getField("18").value + this.getField("19").value + this.getField("20").value; // sum of all the fieldsevent.value = v2 !==
When using text to speech on the Mac with Adobe Acrobat Pro DC or Adobe Acrobat Reader, I run it through OCR first so it is no longer an image than highlighted the text and use the text to speech key command shortly following that the PDF says "processing of this document has been canceled". This there anything I can do to fix this? I'm using a PDF Journal Articles found online for a college paper and I am blind/visually impaired so figuring out how to fix this is highly important. I am considering purchasing Adobe Acrobat Pro DC for my MacBook Pro but currently use it at school. I figured I would get used to it before I make the big purchase. Any suggestions would be highly appreciated.Thank you for your time.
Hi,I'm new to javascript so please excuse me. I am trying to clear image fields on a document. Currently, the user can include an image but if they want to change it they can only replace it, they can't delete it.I have tried three scripts below -- in both the image properties box and in a separate button --- and nothing words. I can get the scripts to clear text fields but not the image fields.1. if (xfa.event.shift){this.rawValue = null;}2,if {this.resetForm(["imageField1"]);}3.ImageField.rawValue = null;Can anyone tell me what I'm doing wrong?Thanks for any help.Joanne
Hello all, it's been awhile. I use to have this add on tool that allowed me to select the fields and annotations I wanted to flatten and would leave the rest of the fields alone and fillable. I don't have that Mac any longer but do have Acrobat X Pro on this used Mac I just picked up. I don't remember where I got it from, but I do remember it didn't cost anything. Would anyone know what I'm referring to? And, where I can download it again? I tried Thom's @ pdfscripting.com already but that's not it. This one has quite a few option selections in the interface. What I remember it came with these check boxes and asked you which fields and/or annotations to flatten. If you know would you kindly let me know. Thanks.
Hi,In version 11, Adobe Acrobat displays all of the actions for some reason under the "Process and label files." Is there a way to hide these so the user does not accidentally click on an action out of sequence instead of hitting start? This causes confusion for users who think they can skip to step they want in the sequence without realizing every step is important.
Can’t get ‘thermometer’ to display when using adobe reader DC. It does display when using Adobe professional version.Below is sample code I’m using. var t = app.thermometer; t.duration = doc.numPages; t.begin(); for (p=0; p<doc.numPages; p++) { t.text = "Searching … page " + p + "/" + doc.numPages; } &
Hi, I have a javascript already that is populating multiple check boxes and text boxes to a single summary text box and it is working great so far! The only issue I have is that when it all populates to the to the single summary text box it is one thing right after another separated only by commas. It's hard to delineate where the related information starts and begins. Is there any way to put a like a "spacer line" to separate out the info to make it easier to read? I have highlighted the related information that needs to be grouped together. I need a space to appear between each other these Colors when it populated to the summary text box. Any help is greatly appreciated...Thank you in advance. Here is the Java script as it is now: var values = []; for (var i=293; i<=306; i++) { var fname = "CheckBox "+i; var f = this.getField(fname); if (f==null) {  
I have fields on a PDF form for number of hours. I want to allow for 2 decimal places to allow for quarter hours (15 min, 45 min). This is an example of what is currently being displayed:4.003.256.50Is there a validation script that would hide the trailing zeros? I want the numbers above to be displayed as:43.256.5 I've also been looking for a script that would round to the nearest quarter hour (.25, .5, .75), but I haven't had any luck finding this on forums. Is this even possible? It seemed too complicated so I abandoned the idea. I'm a novice when it comes to custom scripts and would appreciate any help from this knowledgeable community.
Hello,I have a form that contains credit card input boxes. I'm looking for a code that will select the appropriate form of payment based on the first number of the CC number input in the field.I found this:this.getField("Check Box").checkThisBox(0, event.value>"0");Which worked great! Until I put in the other parameters...then it started selecting multiple check boxes...Please help!
If there's a particular sequence of operations in Acrobat DC that I perform using menu options, is there a straightforward way to do the same thing in JavaScript?In my case, I do this sequence a lot: "Prepare Form > More > Export Data > Save" That's only four simple steps - is there way to do it in JS? Or is there some other route? Thanks. -Steve
Please do java for iPads .
Good morning.I am creating a program that automatically signs a PDF, but at the moment of signing I sign with a default image:I would like to know some way to upload the image that I want.
I'm still working on the same doc a few years later. What I would like to do now is to make a job sketch of a fence layout with the drawing tools in Acrobat. Most of the doc, up to this point, has been created around using the following script. Here's just a few lines, but you guy will know what I'm doing. So, take a look at the following: try {otherDoc.getField("DrAA1").value = myDoc.getField("DrAA1").value } catch(e) {}Is it possible or would anyone know of a way of making the drawing in one myDoc the click "Generate" button and the fields and the drawing would fill the otherDoc. Any solutions or suggestions would be appreciated.
I have been trying to delete a particular page using the following script provided by Acrobat JS aficionado Karl Heinz Kremer. This code is in the mouse up event of a button. The text "HW2019-02" is searchable on the page (not an image and not a field value).Unfortunately, I just cannot get it to work. Does anyone have a fix for this?for (var p=this.numPages-1; p>=0; p--) { for (var n=0; n<this.getPageNumWords(p); n++) { if (this.getPageNthWord(p, n) == "HW2019-02") { this.deletePages(p); break; } }}Thank you in advance
Dear Javascript experts,I'm trying to do this but it is very wrong.If 1 field gets lower in textSize the other field has to adjust the same textSize automatically.var pricefield = this.getField("01_pricefield.pricefield").textSize;var pricefieldxtr = this.getField("01_pricefield.extra.pricefield").textSize;if (pricefield < pricefieldxtr) {pricefieldxtr = pricefield;} else {}Already thanks for the help!Greetings
I am converting a HTML file into PDF using evoPDF library in a c# application. This PDF form has multiple textboxes and my requirement is to track keypress event or blur event for these textboxes. I am not able to find syntax on how to write these event handling in Adobe JavaScript. Can someone guide me with these. Your help will be highly appreciated.
Hello,Recently I've got a lot of complaints about Adobe acrobat plugin unload error in event logs on application closure which not happened before.Error: 2/1/2019 10:05:12 AM Information Windows Error Reporting 1001 Fault bucket , type 0Event Name: APPCRASHResponse: Not availableCab Id: 0Problem signature:P1: Acrobat.exeP2: 19.10.20069.49826P3: 5c1a8755P4: MyPluginAcrobat.api_unloadedP5: 3.4.0.1P6: 5bb35795P7: c00001a5P8: 00711dc0P9: P10: Attached files:\\?\C:\Users\userName\AppData\Local\Microsoft\Windows\INetCache\Content.Outlook\7SLVAM2F\Document.pdf\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER974E.tmp.dmp\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER9AC9.tmp.WERInternalMetadata.xml\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER9E55.tmp.xml\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER9E62.tmp.csv\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER9F3E.tmp.txt\\?\C:\Users\dlavange\AppData\Local\Temp\WERA57B.tmp.appcompat.txt\\?\C:\ProgramData\Microsoft\Windows\WER\Rep
Hi JavaScript experts.I need to use the previous value of "A" in a function but my brain isn't enought logical to find an easy way by itself.function myFunction(A) { // 1. blablabla, use A in one or several lines // 2. here I need to keep the value of A for the next time the function will be called}Thank you for your help.
Hi.I need some help in making the right JavaScript for my Price Group checkboxes. I will try to explain.First of all, my Price Group 1 checkbox is always checked (YES) and locked in normal setup.What I want help with is whenPrice Group 6 is checked (YES), Price Group 2, 3, 4 and 5 must be autofilled checked (YES)Price Group 5 is checked (YES), Price Group 2, 3 and 4 must be autofilled checked (YES) - Not Price Group 6Price Group 4 is checked (YES), Price Group 2 and 3 must be autofilled checked (YES) - Not Price Group 5 and 6Price Group 3 is checked (YES), Price Group 2 must be autofilled checked (YES) - Not Price Group 4, 5 and 6Price Group 2 does not execute any JavaScript in this matterAnd the other way aroundIf Price Group 2, 3, 4, 5 and 6 are checked (YES) and Price Group 2 is unchecked (OFF), Price Group 3, 4, 5 and 6 must be unchecked (OFF)If Price Group 2, 3, 4, 5 and 6 are checked (YES) and Price Group 3 is unchecked (OFF), Price Group 4, 5 and 6 must be unchecked (OFF), but P
I have multiple date fields, ie: Date.0 Date.1 … Date.5 Date.6These are formatted mm/dd/yyyyIn the custom validation script, after Date.0, I use the following to get the current number of the date field: var str = event.target.name; var res = str.charAt(str.length-1);I then use this.getField("0." + (res-1)).value to compare against event.value.What want to do is:Compare the two dates to determine if the date just entered pre-dates the preceding date.And, if it does, serve up: app.alert("The date you entered is invalid. Please enter a date that does not pre-date the previous entry date." ,0);I would very much appreciate help in getting a working script.Thank you
If anyone can help resolve a real headache in writing a javascript that will round correctly, I would be so very much appreciative! I am very new at writing Javascript, but I am getting better and more creative all of the time. Right now, I am absolutely stumped. I'm designing form, and I've run into an issue with writing a javascript with validation. Here is the situation:1. I have three columns. The first column is a number which is input by the person filling out the form. As an example they might enter $75,480 into column one.Column 2 and column 3 are numbers to be entered by the person filling out the form.2. Column 2: Since column 2 is a number input by the person filling out the form, I wrote a validation script as follows:var a = this.getField("Q5").value;if (event.value > a)event.value="";else event.value;Q5 is a hidden field that I wrote that is a value based on $75,480 x 0.01 = $754.80.I wrote the validation so the num
Good evening, I have created a script to spell check a very large list of medications and cancers for our company.I have created a loop to make all the fields lowercase, before spell checking the document.... However, the fields are being made to lowercase, and then I am prompted the error: "InvalidSetError: Set not possible, invalid or unknown.Field.value:22:Batch undefined:Exec"Here is my code for the loops:for (i = 0; i < this.numFields; i++) {var AllFields = this.getField(this.getNthFieldName(i));AllFields.value = AllFields.valueAsString.toLowerCase();}spell.addWord(items); spell.check();for (i = 0; i < this.numFields; i++) {var AllFields = this.getField(this.getNthFieldName(i));AllFields.value = AllFields.valueAsString.toUpperCase();}Any help would be greatly appreciated!
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.