『アドビコミュニティフォーラム』に質問/トピックを投稿する方法
Unlock the power of Acrobat SDK through our community.
新着順
I receive a no. of pdf files daily which need to be send for Reviewing. We are trying to develop a workflow through which I can enable Commenting and Analysis on received pdf and start the process of Reviewing by sending an email. Do we have any option in Javascript SDK for this ? I see a old post of 2010 that says it is not possible , Is that true now also. Please help.
Hi there,I'm having a dropdown (CN) where client chose one of the options from A to G. Depending on this choice, some of my fields are brought from readonly true, to readonly false (this is done by doc level function EnableFrom... and DisableForm...) .So for example when B, C and G are chosen in dropdown, radio button ( field P6RB01) can be filled.Now I want to set a default value of this radio button to "No", when "G" is selected. Here comes the script placed on a hidden field in "Calculate" tab that triggers radio button:// target amount status togglevar CN = getField("CN1")if ((CN.value == "B") ||(CN.value == "C") ||(CN.value == "G")) {EnableFormFieldFromGray("P6RB01")}else{DisableFormFieldToGray("P6RB01")this.getField("P6RB01").value = "Off";}//set value of RB to "no" if G chosenif(CN.value == "G") { this.getField("P6RB01").value = "No"; }Value is set to "No", but the idea is that the user can change this default value afterwards. Now this script is st
Need to get page dimensions like it shows here Quick way of showing the trim size in Acrobat Reader and Pro Have looked everywhere cannot find a link anywhere
I have created a button to run the following actions:Mouse Down > Execute a menu item > File>Print...Mouse Down > Run a JavaScript as follows function copyToAnother() { &nbs
how do you make app.openDoc() a trusted function in Reader DC. My function works if i have Preferences - >Security ->"Enabled protected view" unchecked.I would rather keep this checked and and just make openDoc trusted function.function OpenToPrint(filePath, numCopies) { var doc = app.openDoc(filePath); if (doc!=null) { var pp = doc.getPrintParams(); pp.NumCopies = numCopies; pp.interactive = pp.constants.interactionLevel.automatic; doc.print(pp); doc.closeDoc(true); }} function printSets(filePath, numCopies){var cResponse = app.response({cQuestion: "Enter the Number of Documents",cTitle: "Enter the Number of Documents",});var
app.execMenuItem("SaveAs");var Dropdown;var Radio;if (Radio == 1) { Dropdown = this.getField("Dropdown1");} else if (Radio == 2) { Dropdown = this.getField("Dropdown2");} else if (Radio == 3) { Dropdown = this.getField("Dropdown3");} else if (Radio == 4) { Dropdown = this.getField("Dropdown4");}var theSubject = "TII | " + Dropdown;this.mailDoc({ bUI: false, cTo: this.getField("Text Field 4").value, cCc: "george.fray@optimasystems.com", cSubject: theSubject, cMsg: "Hi, can you please review the attached Engineering Change Request? If you feel that this Engineering Change Request Form can be improved, please contact George Fray"});Apologies to say I am back.. my variable code isnt working. I get a result and it is only undefined.
Hi,I'm looking to automate the name generation process within my PDF.Essentially I wish to add a save as code the start of the below code. which reads the code within a folder, then saves as takes the next available number and opens it with the email code belowvar theSubject = "ECR-X01 | " + this.getField("Dropdown3").value;this.mailDoc({ bUI: false, cTo: this.getField("Text Field 4").value, cCc: "sample@email.com", cSubject: theSubject, cMsg: "Hi, can you please review the attached Engineering Change Request? If you feel that this Engineering Change Request Form can be improved, please contact George Fray"});Thanks in advance.(PS. the above code is working spot on!)
I need the user to enter a dollar amount in field A then reenter it in field B. I want to compare fields A and B and throw and error if they don't match. how do I do this? i have ZERO java experience so dumb it down for me!! thanks.
I posted this question on Stackoverflow but did not receive any usable answers.I have just joined the Adobe forums in the hope someone knowledgeable here will be able to answer this specific Adobe Acrobat SDK automation question.*******************************************************************I am parsing a .pdf using the acrobat.tlb libraryHyphenated words are being split across new lines with the hyphens removed.e.g. ABC-123-XXX-987Parses as:ABC123XXX987If I parse the text using iTextSharp it parses the whole string as displayed in the file which is the behaviour I want.However, I need to highlight these strings (serial numbers) in the .pdf and iTextSharp is not placing the highlight in the correct location... hence acrobat.tlbI am using this code, from here: http://www.vbforums.com/showthread.php?561501-RESOLVED-2003-How-to-highlight-text-in-pdf' filey = "*your full file name including directory here*" AcroExchApp = CreateObject("AcroExch.
Not looking for app.browseForDoc() function. This one only gets the files. I am looking for a way to bring up the Folder selection box so a user can select the folder location where a list of files are kept and then have a simple script to loop through the folder selected and combine them into one document. Does anyone know how to do this?
I am creating an assessment form for our preschool.I have cells for each letter of the alphabet, numbers 1-20, Sounds, and several other areas.They would like to be able to just click the field and have it highlight to show that the child completed the request. Click and highlights green, click again and highlight is off, click on.....
I would like to display all the attachments in the document in a list which are attached by addAnnot. For that purpose I created a list which will run below script on mouseUp event.. But whenever the script runs, it basically invalidates the certified document with an invisible signature. I need to prevent any unauthorized modification in the document, for that purpose I created certified document. Any Idea how to make it right or please suggest me if I am doing something wrong as I am new to acrobat development.attachList = [];var annots = this.getAnnots();var aAttach = annots.filter(function(a){return (a.type=="FileAttachment");});for (var i = 0; i < aAttach.length; i++)attachList.push(aAttach[i].attachment.name);event.target.setItems(attachList);
Hi all,I am working on writing a doc-level function to be triggered when a particular page opens.A salesperson enters information for warranties (up to 4) that a customer has purchased for their vehicle on the first page of the document. When the page for the Bill of Sale opens, I want the "Notes" section to populate with the warranty information (description and cost).I don't want to take up more of the Notes section than necessary, so the function I'm writing will ultimately shift the line items up/down (i.e. if there is only one warranty package included, I want it to only show up on the last line). I haven't gotten that far yet as I keep getting a "field is null" error when I test this function.It will work for one line and populate it with information, then error and stop. If I run it a second time, it populates the next line, then errors. I can keep running it and it will fill everything correctly, but I can't figure out where the error is coming from. Any help would be greatly a
Hello and thank you in advance for any light you can shine on this subject for me.I'm creating a form in acrobat pro 10 that I want the users to be able to attach files to. I don't know if the user will be filling out the form using Acrobat Pro or Reader so I'm using a logic statement in the document level Javascript to determine whether to use the "ImportDataObject" (Pro) or "AddAnot" (Reader) method.The problem that I'm running into is that while I can export document level attachments using the "this.exportDataObject" function by referencing the name passed to the "ImportDataOjbect" function... I don't know how to export a page level file attachment added using the "AddAnot" function.Really appreciate any help. I've written code in Visual Basic but Java Script is brand new to me, as is programming for Acrobat forms.Document Level Java Script Added Below for Reference...var oFAP = {x_init: -72, x: -72, y: -72}function Attach(FileName) {if (app.viewerType === "Reader") &nbs
Hi Everybody,I want to go for automation in tagged pdf, How to generate accessibility tags using acrobat javascript. Is possible to generate script?Any one help me, Regard'sMuthukumar
Hi everyone.Is there any way to create a pdf from a excel with a different format, i mean, create the pdf from 0 but using the cells data.For example, i have a table (on excel) with students and their exam notes, there is any way to create a pdf with a different format, with a logo image at the top with the table with an ammount of cells inside that depends on several facts that had been introduced on the excel. It CANT be the same as the excel format.Thanks
Hi,I have two files. One original and second modified. And I have list of pages for replace.So I want replace few pages (from the list) from modified pdf to original pdf.is there any API or list of functions for use with PAGE management with javascript?Or what do you sugest?
Hello,Background - I have a couple PDF floorplans with close to 100 cubicles and due to internal staff turnover, it needs to be updated often. I was able to use Excel vba to dynamically update the cublicle assignments, but since the floorplans were plotted with all the layers, including dimensions, fixtures to plumbing, the drawings are very clutter. My question - is it possible to turn layers on/off with VBA. Something like AvDoc.Lyaers("xxx").visible = falseThanks.
I have the following code on my Submit button set for Mouse Down.Not sure where this code is messing up. I am trying to have the submit button check that all required fields are filled out and if they are to make 2 specific fields required.var emptyFields = 0;for (var i=0; i<this.numFields; i++) { var f = this.getField(this.getNthFieldName(i)); if (f.type != "button" && f.required === true){ if((f.type == "text" && f.value == "") || (f.type == "checkbox" && f.value == "Off")){ emptyFields++ } }} if (emptyFields = 0){ this.getField("Executive or Director Signature").required = true; this.getField("Executive or Director Name").required = true;}
I want to delete the first page of the document, once the document is signed.I have tried using a script in the "This script executes when field is signed": this.deletePages();I have also tried creating a script for "On Blur" in the signature field: var f = this.getField("Requestor Signature");var status = f.signatureValidate();if (status > 2) { this.deletePages();}Neither has worked.
Help!! I just want to use acrobat pro dc on mt pc as well as laptop. Do I buy a new version or can I access the one i've already purchased?
Hello, this problem is part of an ongoing issue that I have been addressing after getting a new computer that has a high resolution 1920x1080 screen and is running Windows 10. The sizes of icons, fonts, everything are far too small to read comfortably at 100% or even 125% zoom. Therefore, I have selected over 150% zoom in the windows settings for "Change the size of text, apps, and other items". This causes issues with almost all of the applications, which become blurry at the higher zoom setting. However, right clicking on the desktop icon > properties > compatibility tab > checking "Disable display scaling on high DPI settings" seems to fix most of the problems with blurry text. I'm not sure if this is related, but the last issue I have is this: When I go to the Edit > preferences window, something like 15-20% of the window is hanging below the screen, and even if I resize the window, no scroll bar pops up. I can't hit Apply (or OK, or whatever else is down there) because
what is the javascript validation code for multiples of 6. I have created a fillable order form in acrobat and certain items can only be ordered in multiples of 6. So i want the quantity field to only accept numbers that are divisible by 6. thanks
Using Acrobat DC Professional with Windows 7 and trying to set Bookmarks to items on the lower half of a page we discovered that even with View / Page Display / Enable Scrolling and Show Gaps between Pages selected, the view will not allow us to show the bottom of one page and the top of the next page as shown below. Document properties are set to Single Page Continuous. I accidentally discovered that if I first turn on Automatically Scroll and then turn it off I can scroll anywhere and bookmark any view even the one below.Is there a way I could duplicate this effect using Javascript on file open?I'm looking for some help to code a Javascript to run Auto Scroll and then immediately turn it off, returning to top of the file. Thanks!
Hi,Have a form with 2 fields and a button. When filling in the fields and pressing the button, the button is hidden and the form is flatten. That is, it did in previous versions of Acrobat. Now I get this error:NotAllowedError: Toegang tot deze eigenschap of methode is niet mogelijk vanwege de beveiligingsinstellingen. (Translates as: access to this property or method is not possible due to the security settings.)Doc.flattenPages:15:Field FLATTEN:Mouse UpThis is the (complete) script:// The text in a Question Alert Box is usually in two parts. A short explaination// and the actual question. It's a good practice to separate the question from the // explaination by a line, In the text below, this separation is accomplished// with the escaped line feed characters "\n\n"// // The alert box will only show about 6 lines of text, so both explainations and // text should be kept shortvar cMsg = "Zeker weten? Als u nu Ja kiest, wordt het document afgevlakt en kan er niets meer gewi
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
すでにアカウントをお持ちですか?ログイン
アカウントをお持ちではありませんか? アカウントを作成
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.