Unlock the power of Acrobat SDK through our community.
Recently active
Hi,Complete JS noob here. Whenever I have an issue I just google scripts and copy and paste them and adjust them accordingly - I have never written one on my own.So if anyone is feeling nice enough to write an entire script that I can just copy and paste (and tweak) for this, THANK YOU!So what I want to do is to automate the sequential renaming of bookmarks. I have created a PDF consisting of other PDFs and have used the built-in Acrobat features to automatically create bookmarks. Instead of having to manually rename all these bookmarks, is there a script out there that can do this? I need to make the bookmarks sequential, for example:TAB 1TAB 2TAB 3TAB 4The bookmarks are already in the right spots, all I need to do is rename them similarly to the naming convention used in this example.
Not sure how important it is but the file WinCommonSettings.props has the lines of code <PropertyGroup Label="UserMacros"> <PLATFORM_TOOL_SET>v142</PLATFORM_TOOL_SET> <TAREGT_FRAMEWORK_VERSION>v4.8</TAREGT_FRAMEWORK_VERSION> TAREGT should be TARGET I asked over about WinCommonSettings.props over at Microsoft and the MVP'er AnnaXIu indicated that "props" were only used in C++ so the problem, if it is one, does not affect my C# or JS program.
I am using the IAC SDK and a C# program that searches a PDF for phrases. If an Acrobat "tip" or popup occurs while the program is reading the document, my program freezes. I must dismiss the popup before it can resume. Popups that suspend my app are"Try it now""Access all tools in one place""Whats new" Tips such as " ..You can open ..." Here is typical case: The document is behind the app and part of the document is visible.The app is searching page by page and about page 40 an unwanted Acrobat tip shows up " ...you can..."My app freezes.I try to move the app so I can close the "tip".Windows reports my app is not responding. There is a message to that effect in the frame.I click on the PDF to get focus and then dismiss the popup.A few seconds later my app resumes. If I wait too long (about 30 seconds) the app never resumes and when I close the app and document there is an "acrobat 32" left in memory. I need to use the task manager to kil
When I open pdf documents they appear yellow. I found solution to do to edit, prefrences, change view to windows and document is now back to being white. Then i reopen document and it is back to yellow. I changed prefrences with document open and document closed (just adobe opened) Had adobe open as administartor and still does not save when i reopen. btw i have latest adobe version. and I deleted the entire DC folder from %APPDATA%\Adobe\Acrobat and rebooted the pc. To forced it to purge corrupted settings for Adobe and made Adobe rebuild the settings from scratch.still prefrences are not saved after i reopen documents
I am receiving this error message when attempting to sanitize pdf document. Receiving the errror message on multiple pdf documents. Anyone have a solution? Thank you.
My app is not running cleanly on systems that have not signed into Adobe Pro. I would like to notify the user of the problem so as to allow a clean exit or restart within my app. I am new to Adobe so I tried the following along with some other thoughts did did not work. I added my app as an action to an Adobe PDF thinking the user would have to login to "select" the bookmark action. This did not work due to security within Adobe PDFs. There is a document here about identifying installs and googling I have found suggestions on using the windows registry. The examples I found do not match what I see. For example the activation for my 2015 Pro is clearly missing compared to the latest 2023 Pro registry settings. In any event this just indicates the software is licensed.
I have a C# app that reads the word count for a page and then reads that number of words, concatenating each into a large string that I can examine. This worked fine on my win11 development system that had Acrobat Pro 2015 and an 8th gen Intel CPU.I then moved the sources, using GitHub, to a test system that has Acrobat Pro, latest version, and a 12th Gen CPU. This matches the deployment system better than my dev system. I started seeing timeouts of about 30 seconds but no errors are shown in the win11 event viewer. Sometimes the app stops after 4 pages occasionally it gets to 30 pages. Rarely it reads all 70 pages. It is unusable. When this happens “Acrobat 32” is left in memory and I have to use the tasks manager to kill it else my app cannot start.I changed the app so that Acrobat displays the document as soon as it is opened instead of after reading the words. This made a huge improvement, but I see the following that concerns me:
I am using Adobe Distiller to convert employee Pay advices to password protected PDF and emailing them out to employees in Dynamics GP and keep getting the following error: "Error registering Distiller window class. Another copy of Adobe Distiller may already been running. Error 1410 - Class already exists." It last worked correctly on July 6, 2023. If I respond "OK" it might convert another pay advice or two and then the error pops up again. The errors started after the latest update by Adobe on July 11, 2023. Does that have anything to do with it? Have been using it for several years before this without issue.
is there any c# sdk or library for convert pdf to html? i want to use in my own application.
Hello, PDF file. Document proporties checked using Acrobat. The results shows that modification and creation date is the same. There is no advanced metadata options available so no XMP extent of data(or maybe I don't know how to look to find it). The file itself was created with a printing option and saved as a pdf file, as covered here: https://www.systoolsgroup.com/blog/convert-aol-emails-to-pdf-files/ Now, if the file's creation and modification dates are the same, is it means that the said file is original which means it was not modified and its content was not fabricated? It is somewhat easy to modify metadata data to own will but... is it possible somehow check whether given pdf is unmodified by the person that sent me the file or is it something that can't be verified by any means of software or knowledge. By saying that I want to check whether file is unmodified I mean the content of the file and text it includes. Just would like to know
Hi,I'm trying convert the time entered as a number in the Format H.MM or H,MM or HMM or only a H number to this Format HH:MM. I found following script in this Forum: if(event.willCommit){event.value = event.value.toString().replace(/(\d{1,2})[\,\.]?(\d{2})/,"$1:$2");} I have faild to edit the values in between the brackets.Any help would be appreciate.I have tried to select format Category HH:MM in Text field Properties but this was not helpful for me.
In a previous discussion (How to change the color of a bullet), I saw that I should go to the Character Styles palette and create a new character style, and then go to the Paragraph Styles palette and create a new paragraph style. However, I can't see where to open the Character Styles or Paragraph Styles palettes in Acrobat Pro DC. Is there a hidden advanced editing menu somewhere in Acrobat Pro DC? Or is there some new "simplified user-friendly" way of changing bullet colors in Acrobat Pro DC?
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
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.