Unlock the power of Acrobat SDK through our community.
Recently active
Hello Friends, I am trying to write a script that will change a fill color based on a calculated field's event value, but I am having trouble getting the effected field to change both colors. This is the script I currently have that will not work; if (Number(event.value)>1)app.alert("Total Beneficiary Allocation exceeds 100%");if(event.value == 0)event.target.fillColor = color.white;else if(event.value < 1)event.target.fillColor = color.yellow;else if(event.value > 1)event.target.fillColor = color.red && event.target.textColor = color.white;elseevent.target.fillColor = color.green; The script works perfectly fine when I remove "&& event.target.textColor = color.white", but gives me "invalid assignment" when entered. All help would be greatly appreciated! Thank you,Eric
I'm hoping someone can help me figure out how to resolve my text field not calculating properly.I have a text field name 'TotalOTHrsEmp1'. I click on 'Calculate' and choose 'Value is the' and pick the fields I want to calculate the hours. There is one particular text field I am having a problem with calculating. It's a checkbox that populates '1' to another text field. When I check the box the hour doesn't add up, but when I uncheck the box the hour does add up. That's not what I want, I want the '1' hour to add up in the 'TotalOTHrsEmp1' text field when the box is ticked. Here is what I have set up...The checkbox is named 'TravelTimePdEmp1'. The text field is named 'TTPdEmp1' and in this text field I have a custom calculation script as follows, var a ="";if (this.getField("TravelTimePdEmp1").value == "Yes"){a="1";}event.value = a;Thank you in advance for any help with this!
So.. I know nothing about JavaScript. Simply tooling around with PDF as a potential proposal tool. I'm trying to apply operators (less than, greater than, equal to) to an existing output "Propsal Score", that will create an output in a second box "Accountig Type". If my Value Sum from "Proposal Score" is between 0 an 50, how do I have the second text box populate:"Cash Basis" if the Proposal Score is 0-10 "Hybrid Basis" if the Proposal score is 11-30"Accrual Basis" if the Proposal score is 31-50Really appreciate any help!!!
I only want to protect certain fields that I will fill in. The rest must be completed by the person receiving the form.I have found an answer on this topic from: AkanchhaS but your link is going nowhere.Could someone tell me if it really can be done. I would appreciate information or a link where you can find it.
For below spltePDF function(from Adobe forum), it works fine for most of PDFs, but for some PDF (pdf is editable, no any protection, no image) can't be inserted by .InsertPages() function and return false, but he the PDDoc2.DeletePages function works welll. who can tell why?Function SplitPDF(MyPath As String, strFileName As String) As IntegerDim PDDoc As Acrobat.CAcroPDDoc, newPDF As Acrobat.CAcroPDDocDim PDPage As Acrobat.CAcroPDPageDim thePDF As String, PNum As LongDim NewName As StringDim i As IntegerDim Result As VariantDim Filename As String'...If VBA.Right(VBA.Trim(MyPath), 1) <> "\" Then MyPath = MyPath + "\"End IfthePDF = MyPath & strFileNameSet PDDoc = CreateObject("AcroExch.pdDoc")Result = PDDoc.Open(thePDF)If Not Result Then MsgBox "Can't open file: " & Filename Exit FunctionEnd If'...PNum = PDDoc.GetNumPagesFor i = 0 To PNum - 1 Set newPDF = CreateObject("AcroExch.pdDoc") newPDF.Create &nbs
Good morning everyone, Scenario I have two fields: A: a textfield (nos pecific layout set) , B: a textfield set to a date layout. I'm looping through the fields for reasons, and am looking for a boolean check where B results in true (fields with date layout) and A results in false. Thank you in advance for any trouble to be taken, Sincerely, Wardenburg
Sorry, I'm new to this. I have attached the worksheet below.
The worksheet i'm trying to export says its protected and asking for a permission file - is there anything i can do?
Can someone help me make these codes into one code?I have ten fields named t1-t10,in each field as custom calculation script I have these codesin field1:event.target.fillColor = this.getField("Text1").value >= 1 ? color.green : color.white;in field2:event.target.fillColor = this.getField("Text1").value >= 2 ? color.green : color.white;in field3:event.target.fillColor = this.getField("Text1").value >= 3 ? color.green : color.white;...etc up to field 10:event.target.fillColor = this.getField("Text1").value == 10 ? color.green : color.white;I want to put them in one field and have as one code, I know how to make them like this:event.target.fillColor = this.getField("Text1").value >= 1 ? color.green : color.white;this.getField("t2").fillColor = this.getField("Text1").value >= 2 ? color.green : color.white;...etc but I was wondering can it be done as one code something like:var color = "";for (var i=1; i<=10; i++) {if (this.getField("t1"+i).value=="1") color++;}event.targe
Hi,I am unable to run any sample from:"sdkDC_v1_win\Adobe\Acrobat DC SDK\Version 1\InterAppCommunicationSupport"I already installed Acrobat DC Pro (7 days trial) today.Version:Continous Release | Version 2019.010.20098Version File Version: 19.010.20098.54430AGM Version 4.030.00084CoolType Version 5.014.00038Core Version 19.2560JP2K Version 1.002.00002.42832All references,including Acrobat, are fine (they are not showing with yellow warning)The error occured when I try to run every sample is:System.BadImageFormatException HResult=0x8013101B Message=Could not load file or assembly 'Interop.Acrobat, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. Source=<Cannot evaluate the exception source> StackTrace:<Cannot evaluate the exception stack trace>I've already tried to add the reference again from C:\Program Files (x86)\Adobe
With an Adobe fillable form, can a user be prompted to select a Word document that is then converted and appended to the form for submission as a complete document? Attachments to fillable forms are not apparent or viewable in other readers or browser extensions. So, I need the user to find and select the document, convert and merge the document to the fillable form for submission. Is there a script for this that I can associate with the Submit button? I am using Adobe Acrobat Pro DC and the users may be using any other viewer.
Hi. I have an existing table I need to add rows to. Is that possible? Thanks in advance.
Hi, guys I really need help with this one, I know basic javascripting but am clueless how to get this.I have button to which I wanna add script so every time I click it, it generates random number between 1-20 and show result in text field called "Result"(That part I know how to do) BUT I would like every time it generate number, that number is excluded from next roll until all 20 numbers is rolled.
I've created a form that contains a template page that is spawned using a button. I want the users to be able to delete the spawned pages by either all with a reset form button or by a delete page button on the spawned page they want to delete. The reset form button works with the javascript&colon;this.deletePages(2, this.numPages-1); but For the delete page button I have this scriptthis.deletePages(this.pageNum, this.pageNum);pageNum = pageCount; It works in removing the page but a window pops up as "Bad Parameter". I think I'm missing something. Additionally I have a field that populates the total spawned pages with the scriptvar numpag = this.numPages - 1;event.value = numpag;this.calculateNow(); But when the page is delete or the form is reset, it doesn't update. Please help!
Hi,I do not know Javascript and would really appreciate if you can help me how I can autocalculate with adobe acrobat form. Here is what I want:End time1 = 23:30 #this is in HH:MM format and should be entered manuallyStart time2= 23:31 #this is in HH:MM format, should be autocalculated, and is equal to End time1 + 1 minute. Thanks in advance.
In this form, I want to order the fields so that the users can move from field to field in order by using TAB key. I can´t find where to order the fields. I can´t find the "Field Pane". How do I find it?
I am trying to find some information on the differences between document and page scripts. From what I was reading, scripts that run when the document is opened is a document script. Since everything might not be initialized by the time my script runs, I was told to run a page open script. I can't find how or where to do this. Any help will be greatly appreciated!
Acrobat DC.I want to set the text field properties as Font size - 9, font colour - dark blue, font Helvetica, height - 0.17 Inch.For radio button field; fontsize- Auto, text color - dark blue, Border Color - black, Fill color - White, Line style- solid, line thickness-thin, width and height - 0.14, checkbox style - cross.Same property for check box also. If possible, I have to run a script on each form I create. Can anybody help. Thank you.
Please see the Windows comment In AVProcs.h below:/**Acquires the platform-specific object needed to draw into the Acrobat viewer's document window using a platform's native graphics calls. When done, release the context using AVPageViewReleaseDrawContext(). @9397041 pageView IN/OUT The AVPageView whose platform-dependent port is acquired. @9397041 contextType IN See DrawContextType definition in AVExpT.h@Return A platform-dependent value: <TABLE rules="all" cellspacing="1"><TR><TH>Operating system</TH><TH>Value</TH></TR><TR><TD>Mac OS</TD><TD><code>GrafPtr</code>.</TD></TR><TR><TD>Windows</TD><TD><code>WinPort</code>.</TD></TR><TR><TD>UNIX</TD><TD><code>Widget</code>.</TD></TR></TABLE> @SEE AVPageViewReleaseMachinePort @Since PI_
Hallo, ich habe ein Formular in InDesign gestaltet und als PDF exportiert.Ich habe ein Textfeld erstellt, darin soll automatisch beim ersten Öffnen das aktuelle Datum in dieses Textfeld eingefügt werden und nicht wieder verändert werden (auch nicht beim nächsten Öffnen). Der Code:if(event.value == ""){event.value = util.printd("dd.mm.yyyy", new Date())} Nun bin ich der Autor und ich muss den Code im Acrobat erst mal reinschreiben.Allerdings setzt er mir jetzt schon das Datum, welches erst beim ersten Öffnen und Speichern des eigentlichen späteren Users passieren soll? Wie kann man dies lösen?Danke ----- Hello, I have designed a form in InDesign and exported it as PDF.I have created a text field in which the current date should be automatically inserted into this text field the first time it is opened and should not be changed again (not even the next time it is opened).The code:if(event.value == ""){event.value = util.printd("dd.mm.yyyy", new Date())}Now I am t
Hello my Friends, I need your help for this problem and I need the code for this issue. Here the details for this form. In the the Status Dropbox there 3 categories ( Pending, Invoice and Release) When I select the “Pending” Status in dropbox, then select the Reservation date and select the Deposit Dropbox (yes or No) then result in Over due text boxif “yes” selection from deposit dropbox = display in overdue textbox is “14 days"If “no” selection from deposit dropbox = display in overdue textbox is “ 3 days” If the status select, invoice and release not showing the overdue. Mean blank only. Only the Pending showing the output in over due textbox. Please refer the sample in excel in attached. So that you have idea what I mean. The main point there is if you change the date automatic the over due is change the no. of days. Also, the pdf file sample but without code in over due because I don’t know how
Hello, I'm pretty fresh with javascript, I have written the following code that works as the following, the first page of this pdf has a lot of information that the customer will fill out, community name, price of home, sales tax and so forth. Once this information is filled out they will click a button that will auto populate this information into the next page, most of it is just copying information down. I would like to however be able to have it auto run the script and or once you click the button once it keeps running the script maybe to keep updating the fields because if they were to change the prices or other price information I would like for it to update the totals and so forth, this way if someone were to go in and edit one of the price fields it would then re-calculate everything on the form automaticaly instead of them having to re-click the calculate button again? Is this possible, does this make sense what I'm trying to do? Here is my very basic code below, not
This script works almost perfect: var pageCount = 0;var pagePos = 0;pageCount = this.numPages;pagePos = pageCount+1;var b = getTemplate("EVC");b.spawn({nPage: pagePos, bRename: true, bOverlay: false}); I have one issue with this. How to do get the page view to jump to the newly generated page when this same button is clicked? Currently the page view is staying on the same page and then I have to scroll to the next page, so I can't tell if the new page is generated unless I'm watching the page numbers change.
Hello! I'm developing a third party plugin for creating digital sigantures in documents.It's based on the example from Adobe Acrobat SDK - DocSign Plugin.In my plugin I don't need dialog "Sign as..." due to my own custom dialog.Therefore in the DocSign plugin in the function DSEngine::sigGetSigProperties(PSSigSigPropParams params) I do such initialization:params->outDialogStatus = kPSSigDialogNone; Then when I create a certification signature with this DocSign plugin Acrobat offers the dialog with permitted actions after signing, and it's OK.But when I create an approval signature Acrobat doesn't offer similar dialog with the option to lock a document after signing. As a result it's impossible to lock a document at all. Is it correct Acrobat behavior for approval signature?How can I lock programmatically a document after approval signature? May be I need to make other initialization in plugin?
Good Day, Kindly, Could you advise how it is possible to enable printer to a certain user only ? I need to open a document with a password , and then have the printer option for a certain users only Would someone advise what is the right process Regards
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.