『アドビコミュニティフォーラム』に質問/トピックを投稿する方法
Unlock the power of Acrobat SDK through our community.
新着順
How to you troubleshoot the error "the value entered does not match the format of the field"? The message is being generated more than 50 times in the file. You have to click OK on each of the messages before you can do anything else in the file. When you edit the javascript you get the same error message but may reference another field.
Apologies if this has been asked before... I searched and couldn't find an answer.I have several fields that need to be dynamically formatted based on a user's input. Each field should allow a user to enter text (most always will be "N/A") OR be formatted as a number with a currency symbol.I've been playing around with the following code but am not sure if I'm approaching this correctly, and can't figure out where I should place it (Keystroke, Format, Validation, all three)?function formatSwitch() { if (typeof event.value =="number") {AFNumber_Keystroke(2, 0, 3, 0, "$ ", true);}Thank you!
It's really an important problem for me, I've been bothered for two days, and I've read the API reference of Acrobat as well as all the relating discussions in this forum.I'll be very grateful if someone could help me.Here is the problem:I am trying to deal with almost 3000 PDFs, using AcroExch to automatically save them as txt in Python 3.6.The code works, but the memories that Acrobat takes continues to raise while running, and then it will stop when the Acrobat cannot afford such big memories.The Acrobat will tell me that something wrong when opening this document, because too much documents are opened, I need to close some.I've already used PDDoc.close(), AVDoc.close(1), APP.CloseAllDocs(), app.Hide() and app.Exit()But it doesn't works, the first four methods returns "True" while the app.Exit() returns "False" all the time.Here is my code:import osimport win32comimport winerrorfrom win32com.client.dynamic import Dispatch, ERRORS_BAD_CONTEXTdef txt(path): ERRORS_BA
Calculate x - y then if result is < 0, enter 0
Good evening, I am trying to find a way to print the strings in my Javascript into the console log, that, or print the strings into a txt file.Here is what I have so far:var File = this.documentFileName.replace(/.pdf/,"");var First = this.getField("First Name");var Last = this.getField("Last Name");var Middle = this.getField("Middle Initial");var State = this.getField("State");var Lab = "MDV";if (State = "AL" && "CT" && "FL" && "GA" && "HI" && "IL" && "KY" && "LA" && "MD" && "DC" && "MI" && "MN" && "NJ" && "NM" && "NC" && "OR" && "SC" && "TX" && "UT" && "VA" && "WY") { lab = "HELIX";}var Patient = Last + ", " + First + " " + Middle + " - " + Lab + " - " + State + " - " + "REC FORM";I am looking for a way to print the variable, "File" so that we can see which files are not correctly spelled, a
I bought Acrobat DC Pro from Best Buy. I received a redemption code and located my serial number. When I try to install Acrobat I am told I am using an invalid serial number. What do I do now? Help!
I keep getting this syntax error, "Syntax error: "Missing ; before statement 3 and 4." Basically, I doesn't like, String Last = this.getField("Last Name");Here is the code I have:this.documentFileName.replace(/.pdf/,"");String First = this.getField("First Name");String Last = this.getField("Last Name");String Middle = this.getField("Middle Initial");String State = this.getField("State");String Patient = Last + ", " + First + " " + Middle;The goal is the code to compare the file name to the patient's name in the PDf form fields. I haven't written the rest yet until I can get this syntax error sorted out.Any help would be appreciated!
Hi there,I apologize in advance in this not a solution that requires JavaScript and if so please let me know.I have a form that currently has a Required or Not required option. If the user selects Required then they fill out the fields associated with it. If the section is not required, they can complete the form without entering anything. I don't have this set up so that selecting Required and Not required are connected to the fields, other than Not required will clear any fields that were filled out.My first question is, if a user selects Not required but later decides they wish to fill in the form, is it possible for it to change to Required as soon as they select the checkbox(es), radio buttons or enter on any field? It currently keeps Not required selected (since they're not actually connected so to speak and Not required only clears any fields that were entered.My second question is, if a user selects Required, is there a way to state that everything in that table (checkboxes, fi
Adobe properly created a form from a Word document. It used the text in the original Word document to create nice and accurate fillable fields in the new PDF and all looks correct.Now I would like to programmatcally change some of the 'titles' that precede the fillable fields. (It was these titles from which the fillable-field names were created) in order to give the title a friendlier name. I know how to cycle through the fillable-field names and change them at will, but is there a way to cycle through the 'titles'? (I can get to these titles chosing to 'Edit PDF' (and showing the bounding boxes, but not sure if this step is needed). I can also manually search for text snippets using CTRL-F, and I successfully replace text that is found one item at a time. Can I automate this 'find' and 'replace' routine.
What I am trying to do is use part of a field that is filled in by a user to fill in another field. The two examples I am looking at working with are social security numbers and dates.I have one field that the user inputs the full social security number into. On other pages, I only need the last four digits of the number. Is there a way that this can be done?My second one is a date that is inputted by the user in a YYYYMMDD format. Some of the pages need each digit added to a single charter block and some of them need a date that takes up two lines, year on top and month date below. Is there a way either of those can be done?My experience with Java is very limited so I would prefer to be pointed in the direction so I can learn the info over just being given the answer if possible.
I want a dropdown box to populate with a list of names that comes from our Active Directory list in a certain area, but I'm not sure if it's possible or how advanced that would be to script something like that.
Hello,I added a simple JS function in Acrobat Pro DC, that creates a bookmark when a button is clicked. It works fine in Acrobat Pro, but when my client opened it in Acrobat Reader it didn't.I also added some debugging alerts before and after the bookmark function to check whether the function is called in Reader and to exclude that there is an error in the line itself. Both were fired.Here is the code:function addBookmark(label) { var index = bookmarkRoot.children ? bookmarkRoot.children.length : 0; //bookmarkRoot.createChild(label, "this.pageNum = " + (this.pageNum), index); alert("bookmarkRoot'"+this.bookmarkRoot.children[0]+"'"); this.bookmarkRoot.createChild("Bookmark label", "this.pageNum = 4"); this.bookmarkRoot.createChild("Bookmark label2", '"this.pageNum=4"'); alert("finished"); }Any ideas why the bookmarks aren't created and how can I proceed with
I need to remove the #number on forms after pages are added for scripts. All pages after the first are identical ordering but scripts will not work after first page. Page 1Page 2EXAMPLE SCRIPTGLOBAL// initialize the auto-populate data to an empty object.var oContactData_Ex7 = {};// Read contents of file attachment into a string// Assume there is only one file attachmentvar stmCSVFile = this.getDataObjectContents(this.dataObjects[0].name);var strCSVFile = util.stringFromStream(stmCSVFile);// Parse data into object// First Split into linesvar aLines = strCSVFile.split(/[\r\n]{1,2}/);// Grab column namesvar aColNames = aLines.shift().split(",");// loop over lines and fill objectfor(var i=0;i<aLines.length;i++){// only operate on non-empty lines if(!/^\s*$/.test(aLines)) { // split out data items on line var aEntries = aLines.split(","); oContactData_Ex7[aEntries[0]] = {}; &n
Hi im creating a form in which i need to limit the input into a text box based on the value of another text box. for example if text box "wpds" has UB36 input into it, I then want text box "pass" to only allow the input of "Root","Hot", "Fill" or "Cap". But if text box "wpds" has UF49 input into it, i want text box "pass" to only allow the input of "Layer1" "Layer2" or "Layer3". Any input into this will be greatly appreciated. thanks
I have Date and Time Start "DT1SI have Date and Time End "DT1EI want to DT1E - DT1S and show the result as decimal hours rounded to 1 decimal point as in XX.xI am using Adobe Pro for Mac on my MacBook Pro using High Sierra.I have it done on my Excel version of this form, but I want to create a Fillable PDF version of the form and I have searched high and low on how do do this in PDF.In Excel it is simply =Round((DT1E-DT1S)*24,1) with the result field formatted as a number to 1 decimal place.Hope someone can make it that easy for me in PDF using "Simplified Field Notation" or last but not least "Custom Calculation Script".
Hello,I need to add on my fillable PDF form a printing button that would automaticaly print the file with PDFcreator. I'm using Adobe Acrobat Pro DC.I know how to create and run the button on Adobe, but I'm new to Javascript coding.Can someone help me with the code?Thank you
Is it possible to divide a single multipage PDF into two PDFs?
Hello am trying to redact particular information from a files, is there any options where we can automate redaction by running scripts. Please let me know
Hi,according to the sdk documentation, the class CAcroApp can be used to control the application via COM.However, any function call seems to have zero effect.I put these lines into the BasicIacVc example provided with the sdk acroApp = new CAcroApp; acroApp->CreateDispatch("AcroExch.App", &e); if (!acroApp) { AfxMessageBox("Creating Acrobat IAC acroApp failed in BasicIacVc sample."); return FALSE; } acroApp->Exit();Could you give me some advice?My goal is to the get the current preferences like the Page Display mode.Thanks
Hi,I have a pdf document with 1000 pages.800 pages is in colour, 200 black and white and I wish to reduce colour pages to 500 pages.I have a list of selected pages that need to be in colour and I also have a list of pages that should be black.There is an option to convert colours in Adobe but there is no way to paste a list of pages and you can not select thumbnails neither and then convert.You can only give a range page 1-1000 for example or give a single page number but you can not ask for conversion of pages for example: 3,5,7, 25, 80, 500 and convert them all in one go.I heard that Java could handle such a task but unfortunately I can not find good example.If there would be some plugin being able to perform such task that would be great!Thank you for your answers.
I have created a formula in adobe pro fillable forms the formula works fine, but i need to be able to manually enter numbers into it as well. Is this something that i can do?
Hi,I have a requirement in my organisation. Current process - We compare, verify & validate data in two different PDF's which are different table formats. Currently this process seems to be manual and tedious.We need your help to explore if there's any possibilities to perform above activity automatically (even partial will also help).Requirement - Build a tool to read 2 different adobe file to compare data among each other and highlight the mismatch values/areasPlease let me know if this can achieved, I will come back with sample pdf to explain further in detail.Thanks,
Dear Acrobat scripters,Is there an way you can get any number and than text in this.getField.value . Do I have to do that with RegExp? if (this.getField("field1").value = 'ANY NUMBER + ANY TEXT') {DO SCRIPT;} else {DO SCRIPT;}Already thanks for the help!Greetings
Hi,We encrypt PDF files using custom security handler. One of our customer is unable to open the encrypted PDF file with Acrobat Reader DC 2019 latest patch 2019.010.20064. If customer downgrade to previous patch 2019.008.20071, everything just works fine.PDDocOpen() API throws this exception "Bad Parameter" - error code 1073741827 = 0x40000003 = genErrBadParm.Our customer security handler is written in C++.The issue only occurs at customer location and we are unable to reproduce locally. Looking forward to hear from experts.Thanks,Sameer
I need to write a function to disable a digital signature, when user hits submit button. Also when user re-opens the form than there should be no digital signatures saved.
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.