『アドビコミュニティフォーラム』に質問/トピックを投稿する方法
Unlock the power of Acrobat SDK through our community.
新着順
Hello, How can I populate an image based on conditional formatting?I am making an patient results form and based on each questions score I want to populate an answer that is both copy and an image. Right now I have the following code that is providing the copy answer:var Deepsquat = this.getField("Deepsquat").value;var Pain = this.getField("Pain").value;var Red = this.getField("Red").value;var Yellow = this.getField("Yellow").value;var Green = this.getField("Green").value;if (Deepsquat == "0") event.value = Pain; if (Deepsquat == "1") event.value = Red; if (Deepsquat == "2") event.value = Yellow; if (Deepsquat == "3") event.value = Green; How do create a corresponding image to populate along with their answer? Can I do this in a text box with the custom calculation script or is there another place to input the appropriate code?Thank you.
Hi,I am using the action wizard to try to make sure the header/footer created in the java script is applied after the content of chosen PDF files is shrunk to avoid overwriting of content. To do this, I brought over the "Header & Footer (Add)" prior to the Java Script Code.Within the "Header & Footer (Add)" Option, I selected "Appearance Options" and checked the "Shrink document to avoid overwriting***" and made sure "Page Range Options" is set to "All Pages."However, the action wizard only shrinks the first page. The subsequent pages in the pdf file get overwritten with the header/footer created in the Java Script code. What am I doing wrong? I am using Adobe Acrobat Pro X on Windows 7 machine.
I am trying to create a request form for specific users (only 3) but will require the reference/invoice number to be created every time the receiver press the submit button on the form. The number should also increase every time. In fact, can I even customer the number to each individual? Eg Person A will start from 0000, Person B start from 4000, Person C starts from 7000?Please help!!
Hello, I would like to know how is possible to make script in the PDF file for pop up window (with message about copyright) after if somebody press Print Screen key.
HalloWir nutzen seit heute Adobe Acrobat DC Version 2015.006.30174 mit Office 2016Ich kann aber mit DC keine Word Dokumente öffnen. Unter Voreinstellungen fehlt auch Word. Excel und PowerPoint ist da. Wie bekomme ich Word dazu?
Hello, I designed a editable form pdf for a client who will be using Acrobat Reader on a Windows computer. I have the buttons: CLEAR, PRINT, EMAIL, SAVE in the document.I am not familiar with scripting.I am trying to develop a javascript that works within the SAVE button that on button up action will bring up a save as window with a preset folder location of the user's desktop with name field auto populating with a set value followed by a name field along with a date field from the document.Is this possible?Here's an example:Form name: InvoiceName field in form: "BOB"Date field in form: "02-15-15"Save to (window will go directly to the folder):Users desktop folder named "Invoice"with name "InvoiceBOB-02-15-15.pdf"at this point all the user has to do is click save in that window.Thank you community, I hope was clear enough in explaining my situation.I appreciate the help.By the way, I'm designing on a MAC, users of the form will be on PC if that matters.
I am completely new to Javascript, so please bear with me!I have an acrobat form. I would like to use Javascript to take the last two characters contained in one field on the form and join them to the current date and time, putting the result in a second field. For example: ABCD, becomes CD-24-Jan-2017-20:39Something like this but it doesn't work, as the "WeighOrderNum" field remains blank with no ID!var n = this.getField("RegNum").valueAsString.substr(-2);var d = new Date(); //current date and timevar df = util.printd("-dd-mmm-yyyy-HH:MM", d)var f = this.getField("WeighOrderNum");f.value = n + df;Any help is much appreciated.
Hi,I want to know if there is a way to disable the ability to edit or export an adobe action (all in java script). In other words, I do not want users to have access to the code or be able to export it for use between users. I noticed the preinstalled Action Wizard actions such as "Archive Paper Documents" do not allow any editing (or access to the code).Thanks.Sue
I have one drop down named Quantity and three text fields named Qty1, Qty2 and Qty3. At the moment I'm using three checkboxes to run these scripts:checkbox1this.getField("Qty1").value = this.getField("Quantity").value;checkbox2this.getField("Qty2").value = this.getField("Quantity").value;checkbox2this.getField("Qty3").value = this.getField("Quantity").value;The scripts work fine but what I'd like to do is to eliminate the checkboxes as the triggers to place the Quantity amount into Qty1, Qty2, Qty3 text fields as I make the selections. Is there a script that would enable me to simply have the drop down populate the text fields if Qty1 is filled in (and likewise for Qty2 and Qty3 fields). Or am I stuck and have to use the checkboxes to trigger? If this is possible can someone shed some light so I can see how it can be done? Thank you.
I have a checkbox that the user can click, which will open another PDF form for them. I put the code below as a javascript action on the checkbox. It works for PC users, but not for Mac users.var document = app.openDoc("/internal.location.com/mke/Group/user forms/Advertising/Site Email Request Form/Z_Blank Form/email request form.pdf");I verified the path of the PDF that I want the checkbox action to open by using "this.path" in the debugger (Acrobat DC on a Mac). I had the "Advertising" volume mounted on the Macintosh. When I ran the "this.path" command, it returned Advertising/Site Email Request Form/Z_Blank Form/email request form.pdf The above code only works on the PC not the Mac. Is it possible to get the checkbox script to work with both a PC and a Mac? What changes do I need to make? Based on the results from running "this.path" on the Mac, it looks as though the script should work as is,since the path is valid, or does it have to match exactly what this.path
I have 2 dropdown Fields.One Field has x Options. The other field has no available options by deafault, but should get different options based on the value of field1.Currently I wrote this script, but it isn't quite working as intendedthis.getField("Field2").clearItems(); //deletes anything in field2if (this.getField("Field1").value != "") // Proceed to check different options only if field1 isn't empty in the first place{ if (this.getField("Field1").value == "Option A") // Is the value of Field1 "OptionA" { values = [" A", "B", "C", "D"]; // Initialize array with possilbe choices this.getField("Field2").setItems(values) //Add choices to the dropdown field "Field2" } if (this.getField("Field1").value == "Option B") //repeat for option b {  
I'm having problems with a PDF form in Acrobat Reader on IOS. There's a function to set a checkbox value based on which range a field's value is within. There are 3 ranges (55 or less; more than 55 up to 85; more than 85). The corresponding values in the checkboxes are 'A', 'B', 'C' (they originally had the range description, but I simplified it to a single letter for debugging purposes). If the value is 0 then I set the checkbox to 'Off'Everything works properly in acrobat, but on IOS, it seems to be completely intermittent. I added a field to create my own 'debugger' on iOS, and I'm populating it with the values that of the field, the range value that needs to be set in the checkbox, and the actual value of the checkbox.Value: 60Range Value: "B"Checkbox Value: "B"Each line is added to the text field right after the variable or checkbox value is set in the function. On IOS, the checkbox is either getting set to 'Off' despite the fact that the range value is 'B' (or whatever the actual
Hello folks.I'm attempting to pull the file folder in which my PDF is contained into a text field. I'm assuming there is a way to do this in the document javascripts, but I cannot seem to figure it out.Is there way to either:1) determine the folder name in which the PDF is located and push that into a text field (e.g., the fold name is "412" and that's what I'd like in the text field), or2) Remove a portion of the file name itself, and push what's remaining into a text field (e.g., the file name is "Review Documentation 412" and I want "412" to appear in the text field.If it matters, I'm using Acrobat Pro CC.Thanks in advance for any assistance!
I need help with the proper javascript for a multi-page form where only page 1 of 3 pages needs to be submitted by email when the user clicks on the email button I added at the bottom of page 1. Right now it creates & emails a .pdf containing all 3 pages when the user clicks on the email button. Page 1 is the form itself [to be completed & digitally signed by the user] and pages 2 & 3 are just informational & I don't need or want page 2 & 3 to be part of the emailed .pdf. I know absolutely nothing about javascript so I'll take whatever help I can get.I don't know how to attach/insert the .pdf file to this message for you to review it.
I created a JavaScript code which imports files into the attachment of a pdf form, then searches for the written pdf filenames within the pdf form and links the texts to the imported files. I employ Adobe Acrobat X (10.1.16)The code (which is run as folder-level JS) is shown here:var impDatObj = app.trustedFunction( function(odoc,filenme,filepth) {app.beginPriv(); odoc.importDataObject(filenme,filepth); app.endPriv(); });var attachpath="/mysrv/subdir/";impDatObj(this, "abcdef_g.pdf", attachpath+"abcdef_g.pdf"); impDatObj(this, "987654_3.pdf", attachpath+"987654_3.pdf");var numPgs = this.numPages; for (var jj=0; jj<numPgs; jj++) { var numWords = this.getPageNumWords(jj); for (var i=0; i<numWords; i++) { var ckWord = this.getPageNthWord(jj, i, false); if (ckWord.indexOf("pdf")>=0) { ckWo
Hello! I am fumi. I want to do zoom-setting named "FitPage" to allbookmarks(include children) of some pdf files using Javascript + "ActionWizard".(I have "Acrobat DC pro".) Could you show me sample codes of javascript for it? I found some addin for acrobat,for example "Ever map",but,I am looking for a method using javascriprt instead of addin. Thank you.
I have a custom form built in PDF and I need the user to be able to type in their Dollar amount at the top ( $10,000) and then have the corresponding breakdowns for each month - i.e. 5.5% of $10,000 in January, 6% of $10,000 in February.Is this possible? I am afraid this is way out of my scope!Thanks in advance.
I'm creating a form and I need the code to calculate 6% tax to the price total (field)? Please advice, thank you in advance!
I created a landscape booklet in Microsoft Word 2007, converted it to a PDF, then tried to print only to have the opposite pages print upside down. The settings are:BookletDoubled sidedDuplex printing, flip on short side.I have tried every imaginable setting to resolve this problem to no avail. Please help! Thank you!
Hi, I have written a script to auto populate a 5th field, I have 4 fields each with less that 20 to be put into them, if all 4 fields have less that 20 (each) then the 5th field is populated with Pass, if any of the 4 fields have more that 20 in it then the 5th field is populated with fail.I works sort of because if I change the value of var d then I can get pass or fail into the 5th field, if I change any of the other fields there is no change to the 5th fieldCan someone help, pleasevar a = getField("450").value;var b = +getField("350") .value;var c = +getField("250").value;var d = +getField("stroke end0").value;if (a,b,c,d<=20) {event.value = "Pass";} else {event.value ="Fail";}Thank you
Greetings, everyone!Is there a JavaScrip code available to export comments from multiple pdf documents into an Excel-like program?Thank you in advance!
How can I convert a folder of jpg files to pdf files?
I need to embed a sound via a button. In 'add a sound' I try selecting either uncompressed WAV or AIFF files, generated by Amadeus Pro. Acrobat Pro DC rejects both with dialogue saying only uncompressed WAV or AIFF files can be attached. Seems to be no way round this. I am trialling Acrobat specifically to embed WAV files in a PDF. So, if I can't fix this, there's no point is buying. Any thoughts?
Hi!I do a lot of work for tabletop gaming companies and I'm hoping to develop a feature in InDesign where the exported PDF creates and displays a random number between say 1-20 inclusive. I was looking at setting this up in the InDesign file, but I've been directed to post this query here. The random number would appear as though it was on the face of one side of a dice, and would be different every time you open the document.I've had a bit of help from a JS savvy mate, and are using the following coding:function d20() { return Math.floor(Math.random() * 21);}the trick I'm facing is associating this function with a particular text box. I've added it to the JS Document Scripts, just how do I get it to display in the document?Thanks heaps for your help.
Hi there,I am using PDDoc.InsertPages to insert 01 pdf page to another 400 page pdf and it takes about 5 minutes. Is there any other way to do it more efficiently? After all, it's only 01 page insert.My environment is excel 2010 and Acrobat X Pro.Here is my code and it works well except too slow!!!Public Function MergePDF(SourceFile, TargetFile, MergedFile) On Error GoTo Error Dim AcroApp As Acrobat.AcroApp Dim Part1Document As Acrobat.AcroPDDoc Dim Part2Document As Acrobat.AcroPDDoc Dim numPages As Integer Set AcroApp = CreateObject("AcroExch.App") Set Part1Document = CreateObject("AcroExch.PDDoc") Set Part2Document = CreateObject("AcroExch.PDDoc") Part1Document.Open (SourceFile) Part2Document.Open (TargetFile) ' Insert the pages of Part2 after the end of Part1 numPages =
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.