『アドビコミュニティフォーラム』に質問/トピックを投稿する方法
Unlock the power of Acrobat SDK through our community.
新着順
I launch one dialog using app.execDialog(dialog1). Then in that dialog I have a button and if they click the button I dismiss the current dialog using:"btn1": function(dialog) { dialog.end(); app.execDialog(dialog2);}This works fine in Adobe Acrobat Pro DC on Mac, but on Windows it does not dismiss the original dialog. Any ideas?
conversion from a word file with AVConversionConvertToPDF hangs when word file is in revision mode, conversion from a word file with AVConversionConvertToPDF hangs when word file is in revision mode.I am supposing that, like in manual mode, Word is waiting for the user to acknoledge some dialog.Can I control Word from the conversion process?Thanks a lot.Christian
I am trying to write a script to change a dropdown's background color depending on the value selected. I have "Commit selected value immediately" selected and my code, which is attached to Validate is here:var drop = this.getField("Dropdown1");var DropDownValue = event.value;DropDownValue = drop.value;console.println(DropDownValue);if (DropDownValue == "Pass"){ DropDown.fillColor = color.green;}else if(DropDownValue == "Fail"){ DropDown.fillColor = color.red;}else{ DropDown.fillColor = color.white;}The problem I am having is when I select "Pass" it doesn't change, but when I select "Fail", "Pass" gets written to the console and the dropdown turns green as if I selected "Pass". Then when I select "Pass" again "Fail" gets written to the console and it turns red. Basically Adobe thinks the prior selection is the current one. How can I fix this behavior?
Hi,how can I extract the first line of a multiline textfield into a variable with javascript?The thing is I would like to use a multiline textfield for the address so that I don't need to use a lot of separate textfields.I need to extract the first line of it to get the client name (which always would be the first line of that field)Best regards
Dears,I have the challenge that I need to print an PDF in Format A5. Want to do this with VBA.The AVDoc /PDDoc matter can bee out of scope here, not finally decided who I will feed the PDF in.The Challenge is:Print PDF on Standard Printer, Format A5. The default Format is A4.I am already searched here and the whole SDK, from this I was able to Build up something. But this is not workung fine and my main Issue is not fixed here.Dim AcroApp As Acrobat.CAcroAppDim PdDoc As Acrobat.CAcroPDDocSet AcroApp = CreateObject("AcroExch.App")Set PdDoc = CreateObject("AcroExch.PDDoc")Dim AcroPDDoc As Acrobat.AcroPDDocDim JSObject As ObjectDim pp As ObjectDim fv As ObjectIf PdDoc.Open("C:\Users\ND01132\Downloads\Loadlist (6).pdf") = True ThenSet JSObject = PdDoc.GetJSObjectSet pp = JSObject.getPrintParamspp.Interactive = AcroPrintParams.Constants.interactionLevel.Silentpp.firstPage = 0pp.lastPage = 1pp.pageHandling = 1Set fv = pp.Constants.flagValuespp.flags = fv.setPageSize()JSObject.Print (pp)End I
Greetings,I am new to the group and to JavaScript and I am trying to create a calculation script on a field that if two conditions are not met, the field allows the user to enter data manually.In the script below, the calculation is performed if a value is entered in Field1 but I'd like it to allow the user to manually enter data into the field if no data is entered in Field1 and Field2 (and no calculation is performed). I hope my question makes sense... Sometimes there is no value for Field2 so the user must be able to populate the field. Even an override would work that if the user enters a value into the field, the calculation script is ignored.// Get first field value (Condition one) var f1 = getField("Field1").valueAsString;// Get second field value (Condition two) var f2 = getField("Field2").valueAsString;// Get Third field value var f3 = getField("Field3").valueAsString;if (f1.length>0)
Hi AllI have a working javascript that I'd like to make available to anybody on my pc opening any pdf.I am totally new to this so baby-steps please.I've Googled around and I think my file needs to be call price.js [tell me if Iam wrong]I'am on a networked machine and under users I have a folder for me [paula]That folder doesn't an Adobe folder in it [just saying what not there]I've tried placing it in the Program files/Adobe/Adobe11.0/Acrobat/Javascripts folder [and it ran upon opening [so obviously wrong!]Some on Google mention not to add the script to the Program files/Java/jre1.8.0_102/bin folderSo before I break something I thought I'd ask.I originally was going to add it to a button on my Adobe Acrobat X1-Pro but I couldn't manage that, so I though could I make available it the scripts list within debuggerAny help wildly appreciatedPaul
I am trying to create a dynamic stamp in Adobe Acrobat XI Pro, that I can distribute to other users to use with minimal work on their end to use it. This stamp is an image that I've added a single text field to, and in this field I've inserted the following JavaScript code in Calculate > Custom calculation script:console.println("Hello, World!");event.value = "";if (event) promptUser();function promptUser(){var d = app.response();event.value = util.printd("mmm dd yyyy", new Date(Date.parse(d))).toUpperCase();}When I am in editing mode with this form, and close the built-in JS editor window with this code, I see "Hello, World!" in the JavaScript Debugger window, and I get a prompt to input a date. However, whenever I save this stamp, then add it as a custom stamp, then try to use this, it remains whatever date it was saved as, without a prompt to input a date, and without outputting "Hello, World!" to the JavaScript Debugger window.What am I missing to get this stamp to work, so that
I have a 4-page form of which the 4th page is a summary of the data entered on the first 3 pages. I'm 'building' this 4th page using form fields that get their data from the other pages. While it works really well, there is one thing I'm hoping is possible:If a field (let's say field C on page 1) is empty, it won't get shown on page 4, but there will be space 'reserved' for the data, creating a gap between fields B and D. In that case, I'd like to have all fields following field C to move up the page and 'close the gap'.Is this possible?
Hello folks,We are generating PDF from MS Access within OLE Object - using Adobe Acrobat XI Pro Trial Version - the code seems working fine when in Debug Mode however in Non Debug it bugs with the following error "The instruction at 0x refernced memory at 0x. The memory could not be read".Tried many combinations but no luck - please help.Here is the code:Header 1Private Const GW_CHILD = 5Private Const GW_HWNDNEXT = 2Private Declare Function GetDesktopWindow Lib "user32" () As LongPrivate Declare Function GetWindow Lib "user32" (ByVal hwnd As Long, ByVal _wCmd As Long) As LongPrivate Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" _(ByVal hwnd As Long, ByVal lpString As String, ByVal cch As Long) As LongPublic Sub test() Dim dhwnd As Long ' desktop window handle Dim hwnd As Long ' window handle Dim rval As Long &nb
The scenario is :A dropdown box that has a number of names, based on the name picked I would like to populate that person's age in a text box, then using that person's age I would like to populate another dropdown box with several choices, based on the age. I would like the 2nd drop down box to be updated from some sort of array defined for that person's name and age. Each person will need to be unique as far as the data in the 2nd drop down list.I have figured out how to populate the text box from the first dropdown list, but how do I take the text output and make a choice on populating another droptdown list.Any help would be appreciated.Dan
If i check a checkbox inside semantic modal then checkbox inside handsontable should also be checked
I have a series of dropdowns that I want to attach the same script to that basically makes a "notes" textfield required if the dropdown value is "fail" (and makes it not required if it is "pass"). The script I have for one of the dropdowns is:var result = this.getField("Dropdown5");var notes = this.getField("Text14");if(result.value == "Fail"){ notes.required = true;}else{ notes.required = false;}on mouse exit and it works fine but I was wondering if there is some other way to reference the dropdown that the script is attached to besides using the name. I know this refers to the pdf, but is there some other javascript construct or something to refer to the currently attached field? This way I won't have to edit a bunch of different scripts just to change the name and I can just do a copy/paste. OR is there some way to do this with a document script? I tried making one but nothing happened when I changed any dropdowns.
i add some java script code in my program but in my pc work perfect, when i move this in mobile iOS app javascript code not working! Why??
I have a fillable PDF form with five checkboxes named FEES3, FEES4, FEES5, FEES6, and FEES7. When any one of these five checkboxes is selected, a text field named Subtotal4 is automatically populated with a fee of $115. Each checkbox has the following JavaScript:if (event.target.value=="Off") this.getField("Subtotal4").value = 0;else this.getField("Subtotal4").value = 115;After one checkbox is selected, every other checkbox should be $55, not $115. I have a second text field named Totalotherfees that I would like to populate with the number of additional checkboxes that were selected. So if one checkbox is selected, the Totalotherfees text field would remain empty. If 2 or more checkboxes are selected, the Totalotherfees text field would populate with the number of additional checkboxes selected.Is there a script that I can add to the Totalotherfees text field to count the additional number of checkboxes selected? Or a script that will add the total number of checkboxes selected and su
Good Morning,I wanted to see if anyone can assist me or give advice on a javascript issue i'm having. I've looked at this for hours and can't seem to get it work without issues. I've attempted to make sure everything is in sequence and still can't get it right. The interesting thing is I can get things to work correctly but if I change a number that it doesn't change the calculation. I don't have the knowledge to over come this. I would be grateful to anyone that can help. I will be as detailed as possible. This is a spreadsheet that I’m working on. I cannot change the layout of the form itself. I have Columns D, E, F, H, I and J. Columns D, E, H and I are all non-calculation cells that impact Columns F (Column is a multiplier of .015 based on results from other cell) and J. All of the Cells in the spreadsheet are labeled L and numbered in order. So, first row is L16 (Column D), L17 (Column E), L18 (Column F), L20 (Colum
hello all,I have scoured the internet trying to figure out how to quickly merge files with the same unique identifier. I have 5000 files and there files are named As follows:5772000001_15772000001_25772000001_35772000002_15772000002_21. Is there a way to combined the files by unique identifier? Combined file 1 would have the three files from above that have this prefix (5772000001) and the two files that have the prefix (57720000012)2. Is there a way to saved the combined files to a folder that has that same prefix?Any help would be greatly appreciated.
Greets, all:I found this formula for validating the number of charcters in a field:event.rc = (event.value=="" || /^\d{9}$/.test(event.value));...but in my case I want to make sure there's only four characters in the field (for the year number). It's easy enough to see that I need to replace the 9 with a 4, however, how do I code it so if four digits aren't entered for the year a warning pops up that says, "You must enter a four-digit year"?TIA for your help!
I am trying to create a way to link easily link attachments and be able to view them after they are added via button icon in a PDF form using buttons. I started w/ what believe is George_Johnson file import script which allows me to upload the images, if the user clicks the button however I have not been able to figure out how to use the selected attachment which will always be a image (most likely a jpeg) to also create (and set) the button's icon as the image. I tried to use annot.path to set event.target.buttonImportIcon however i always received a NotAllowedError.The form is to be used by our internal inspectors to note issues during a project, so the idea is that they can keep adding additional entries to the form via spawn button that duplicates an issues page template, each issue page has a upload button and that button becomes a thumbnail of the the picture they upload for that issue entry so it is clear which attached images belong to which entries since the final
So I have a form with multiple date fields. They all need to calculate first starting with an initial date field on the formSo, say it all starts with the field Date1, which is autopopulated when the form opensThenDate2 = Date1 + 9 months, last day of month (so if 9 months falls on 5/16/2018.... the date should read 5/31/2018 (last day of the month)Date3 = Date1 + 1 year, last day of monthDate4 = Date]+ 21 months, last day of monthDate5 = Date1 + 2 years, last day of monthCan someone help with a script for thisand also tell me where the specific scripts are placed.I sometimes get confused if Date2 script goes in Date2 or a field before.Thanks for your help!
How do you change the items in a dialog popup based on the selection of another dialog popup?
I have a folder-level JavaScript file installed in the user javascript folder. I'm wondering if there's a way to pass a URL as a parameter when launching Acrobat and to have the folder-level JavaScript code access the URL so that it can use that particular URL. Is this possible?
I am getting an error when opening a file........the application was unable to tart correctly (0xc0000022).....I have reinstalled program....gotten updates and tried to repair.....any ideas?
I create forms for several different companies, and often the only difference is the header. Each header has several checkbox fields to select a particular branch for that company. To save time, I am working on a batch sequence to have the following functionality on one open file:*Add Background (this is the header, a pre-saved image)*Add Header/Footer (stamp with revision date)Add Checkbox Fields (via JS Execution)*Save Document with a prefix*Remove Old BackgroundRemove Old Checkbox Fields (via JS)*Add New BackgroundAdd New Checkbox Fields (via JS)*Save Document with a prefix*Lines marked with an asterisk are built into the action using pre-built action wizard tools... for now.and so on... once I nail this down I will need it to go through about 5 iterations to end up with 5 saved files that have different headers. However, I am running into several problems.First and foremost, the code to remove the first set of checkboxes works perfectly in the console. No errors and removes all che
We are working on automating some customer files we receive on a daily basis. We have used some 3rd party tools to export as text.BUT.. We tried a export to XML from our full version of Adobe Acrobat and we like how the data is exporting out.here is the question.Is there a way to use .net to interface with Acrobat to tell it to export the xml data?We are getting a bit lost in the sdk info.
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.