Unlock the power of Acrobat SDK through our community.
Recently active
Everytime I try to launch Acrobat pro (64bit) version 23 it comes up with a white rectangle and a blue beachball. I've tried uninstalling and re-installing a few times but the same thing happens on both the Windows 10 machines I've tried it on. Why is this happening please?
Hi,I have a 9-page PDF with page 7 as a template, I have created a button on page 7 template page for spawning new pages, and here is the script I am using ("Task Card" is the template):this.getTemplate("Task Card").spawn(this.numPages-2,true,false);I want the newly generated page to be placed right after the previously generated page, I wonder is there a better way to script it than simply "this.numPages-2"? And ideally, no matter on which page (all the generated pages have the page spawning buttons) I click the button to generate a new page, and the page will all be added at the end of the whole list of the spawned pages. Thanks a lot. Regards,
How to format text field for time so input could be H.MM or H,MM or HMM and output was always H:MM? User to be able to enter the time in any of these formats, but always appears as H:MM in the text field.
Hello all, I am creating a custom dynamic stamp for a project. The Support Community's archives have been of much help as I have been working. Thank you. I have already worked out the main functionality (auto-increment, cf. https://community.adobe.com/t5/acrobat-sdk-discussions/dynamic-stamp-with-an-incremental-number/m-p/8223946) of the stamp. The stamp is to be used several times in the same document, and its content is different every time it is stamped (the content of the stamp is based on the number of said stamps in the document). For each occurrence of the stamp in a document, I would like to track its dynamic content and the page number on which the stamp occurs. My first approach was to track these data in a JS Array and then save the ‘stringified’ array to the PDF's metadata. The problem with this, however, is that if a stamp is deleted from the document, it does not delete the corresponding item in t
I had create a sample data test at.https://drive.google.com/file/d/1sTILHTJAtqSZwc4PmCifKmf0GznoZuxp/view?usp=sharing This is my script ( run script from console window of Acrobat): var link_info = ""; var ckWord ; var iPageGoto; for (var p = 0; p < 200; p++) { var numWords = this.getPageNumWords(p); var st=new Date(); console.println(p + st); for (var i=0; i<numWords; i++) { ckWord = this.getPageNthWord(p, i, false); if (ckWord.search("P\\.")>=0) { iPageGoto =this.getPageNthWord(p, i+1, true); if(iPageGoto>0) { link_info +=iPageGoto; } iPageGoto=null; } ckWord=null; } } event.value = link_info; This is result of Acrobat Pro 2023 64 bit: Time is 1h 11' It hang at Page 137 var link_info = ""; var ckWord ; var iPageGoto; for (var p = 0; p < 200; p++) { var numWords = this.getPageNumWords(p); var st=new Date(); console.println(p + st);
I'm using Adobe Acrobat Sign in my company. I'm currently editing a template by outting in some signature field and data fields. This is so whenever we send this document to others, the fields would already be present. I wanted to check if there's a way that the output or set up of a certain data field be in comb or at least have space in between character/letter? The template or document actually has a field where per box can fit only 1 letter/number.Thank you!
I try to convert Html to Pdf using Adobe.PDFServicesSDK, the Pdf is got generated but, when I try to delete the html file its showing like it's opened in another process.FileRef source = FileRef.CreateFromLocalFile(filePath);the above method is not disposing. and how to delete the filePath.below I added the code I got from the Adob github page.please help me to resolve this issue. Credentials credentials = Credentials.ServicePrincipalCredentialsBuilder().WithClientId("#").WithClientSecret("#).Build();//Create an ExecutionContext using credentials and create a new operation instance.Adobe.PDFServicesSDK.ExecutionContext executionContext = Adobe.PDFServicesSDK.ExecutionContext.Create(credentials);CreatePDFOperation htmlToPDFOperation = CreatePDFOperation.CreateNew();// Set operation input from a source file.FileRef source = FileRef.CreateFromLocalFile(filePath);htmlToPDFOperation.SetInput(source);// Provide any custom configuration options for the operation.SetCusto
I put together a concept app for data mining that searches for phrases in a PDF.It was written in c#, sources are in GitHub (jstateson) and demo is hereThe app does not work unless Adobe pro is installed which is unfortunate. In addition, for some reason, I cannot build it for x64 platform. Not sure why and the Micro$oft explanation given in Visual Studio 2022 is obtuse. I can build it for x86 and "Any CPU" but not x64. I assume the problem is related to the SDK but I could be mistaken. The app is not too useful since Pro is required. I was looking around for any 3rd party PDF library, module or jar to where a beetter app could be used with on a windows or mac system and not be stuck with licensing. Thank you for any advice or recommendations.
There are many developer SDKs that can extract the tag tree of a tagged PDF (a PDF with accessibility markup), and there are many that can extract the PDF content as one big text string. However I need to find the specific content which each tag points to in the PDF. I know Acrobat has this data because you can clearly see it in the tag tree in Acrobat (picture attached), but is this programmatically possible through an API? thank you
I am new to this and built a test app to search through a PDF usinv dotnet (C#) the app builds correctly but when I run it I get the folloowing errorSystem.Runtime.InteropServices.COMException: 'Retrieving the COM class factory for component with CLSID {7CD069A1-50AA-11D1-B8F0-00A0C9259304} failed due to the following error: 80040154 Class not registered (0x80040154 (REGDB_E_CLASSNOTREG)).'The class in in the registery (I looked, windows 11) and the project references are all found in Visual Studio 2022 but the DLLs come from my licensed 2015 Acrobat Prousing Acrobat; using AFORMAUTLib; --- IAFormApp formApp = new AFormAppClass(); Thanks for looking!
Hello! I'm having a problem with the highlight tool. When I select a text to highlight, the tool highlight it but only around the text (example on the image), not over the text as it used to in my old notebook. I have visual problems so it is difficult for me to differentiate between a highlighted or not highlighted text 😞I've tried changing prefferences, different documents where I knew I was able to highlight before and closing and restarting Adobe Acrobat Reader but my problem remains.
Using PDF XFA forms created with Adobe LiveCycle Designer ES4. Data stored in a Microsoft Access database is converted to an XML file and then imported into a blank PDF XFA form using importXFAData. My workgroup has been using this feature for over three years with huge success/satisfaction. VB code clip:Dim AcroApp As ObjectDim theForm As ObjectDim jso As ObjectSet AcroApp = CreateObject("AcroExch.App")Set theForm = CreateObject("AcroExch.PDDoc")theForm.Open myBlank 'open the blank PDF form with path=myBlankset jso = theForm.GetJSObjectjso.importXFAData myFile 'import the xml file located at path=myFile
I keep getting these errors. I've gone back and copied/pasted field names exactly, but can't correct. Any guidance greatly appreciated!TypeError: this.getField(...) is null11:Field:Mouse UpTypeError: this.getField(...) is null31:AcroForm:CkBxOR82040:Annot1:MouseUp:Action1TypeError: this.getField(...) is null11:AcroForm:CkBxOR82040:Annot1:MouseUp:Action1TypeError: this.getField(...) is null26:Field:Mouse UpTypeError: this.getField(...) is null55:AcroForm:CkBxOR82040:Annot1:MouseUp:Action1 Here's the checkbox field 'mouse-op javascript' I'm using. if (event.target.value == "or") {// box is checkedthis.getField("RBCoOwnerResident82040").display = display.visible;this.getField("RBCoOwnerCitizen82040").display = display.visible;this.getField("RBCoOwnerHear82040").display = display.visible;this.getField("RBCoOwnerType82040").display = display.visible;this.getField("CoOwnerName82040").display = display.visible;this.getField("CoOwnerPhone82040").display = display.visible;this.getFiel
Just like the title suggests, I want to create a custom button. Once the user clicks on the button, they'll have the choice to enter their own password (or I can set one in the code.) Then, when someone tries to open the document, they'll be asked to enter the password they either picked or that I set in the code. If the password is wrong, no access to the PDF will be granted. Do you think this can be done?
We have tried a variety of methods and javascript and absolutely nothing will work. Ideas and help are greatly appreciated!Here are two codes we tried with no luck:var A = this.getfield("Group16").value;var Y = this.getfield("Text21").value;var Z = this.getfield("Text22").value;if (A=="Choice1")document.getElementById("Text27").value = Y;else document.getElementById("Text27").value = Z;document.getElementById("Text27").value=this.getElementById("Group16").value;#2:var S = this.getfield("Text21").value;var T = this.getfield("Text26").value;{if(Group16.value=="Choice1"){var S=this.getfield("Text21")}else{var S=this.getfield("Text26")}}
Hey there, I have a given date which is a form field "Case.DATE(Date dd.MM.yyyy)", and need to check, if it's before or after the 14.09.2022.Based on that, another form field should just be filled in with an "x".Is that possible with a util function?Also, is there a way to automatically subtract 3 days from that given date?Thousand thanks in Advance!
Can Acrobat/Reader be minimized from within a plugin?
Hello everybody. Is there any way to align a line of a text field horizontally, and then, when you press enter, the two lines of text are both horizontally aligned as well? please check this image, to make it more clear. Maybe some javascript code to solve it? thanks!
I have a radial section with 4 options. They're connected so that only 1 option is allowed. I'm looking to have each option tie to fields in the form so that certain fields are hidden or showing if a specific radial option is selected. In this picture, in the Reason area, there are 4 radials. If we select "New Drawing", I am trying to have the lower half of the screen to hide the 2 drop downs listed as well as the fields undert location, quantity, and tag #. If we select "New Revision", I want those hidden fields to show. How can I achieve this?
Hello,I need to create a link to the selected text so that when I click on it a certain page opens in the browser.I created a PDAnnot objectPDAnnot annot = PDPageCreateAnnot (page, ASAtomFromString ("Link"), & fr);Now, as I understand it, I need to add an action to this object - PDAction. But I don’t know how to do this. There is no such example in the Acrobat DC SDK in Documentation and in projects.Help me, please.
I know I have seen one, and now that I am at a point where I need to do this, I can't find it.
I've got a script to set a date field (LastDayWorked) as one day before another date field (TermDate) but when I clear out the original TermDate the LastDayWorked auto defaults to the day before the current date. I'm not sure how to adjust the script so that if the TermDate field is blank then so is the LastDayWorked as I only want a date populating there if there is a TermDate entered. Any suggestions on how to clear this field? I've currently got: var numDaysToAdd = -1 ;var fromDate = util.scand("yyyy-mm-dd", this.getField("TermDate").value) ;var toDate = fromDate ;toDate.setDate(fromDate.getDate() + numDaysToAdd) ;event.value = util.printd("yyyy-mm-dd", toDate) ; Greatly appreciate any/all insight! Thank you!
Hi Forum Whizzes,This is such a trivial little thing, but it is really bothering me that I can't make it work.I have a form which contains many input fields for Name, Address, Website, Email, Phone Number, etc. One of the pieces of data I would like the user to supply is the name of their Instagram account ie: @AcrobatJavascriptDunce (Which should probably be mine...)Rather than have external titles for the fields, the style on the form is that the text box contains default text, which tells the user what they need to put in the box. So the default text for the Website field is "Website", obviously, and the default text is displayed in red. I have it set up so that when the user clicks on that field, the default text disappears, and the cursor is in the box ready to type, and when they DO type, the text is now displayed in black. It all works very nicely for my other fields, but for the Instagram field, I would like the action to be subtly different.When the user clicks on the default
StartProcess doesn't run in protected mode, but what if clients are reluctant to turn protected mode off? Are there any settings where I can specify that my plugin should be allowed to call StartProcess, even if protected mode is on? CheersPete
I am encountering an issue with character encoding and equations created in MS word. I have googled this to death and wanted to see if someone has a solution for us. The issue seems to be the font Cambia Math, but I can't figure out how to resolve it. In the past we converted equations to images and used alt text for the reader, but it is inefficient. I am running Windows 10 and the continuous release version of Acrobat Pro.ei
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.