Unlock the power of Acrobat SDK through our community.
Recently active
Is there a way to add table summaries to a PDF programmatically? I have thousands of tables that need them and adding them manually one at a time is not feasible.
Hello. I am experiencing apparently "random" crashes in a program, where the crash dump logs (analyed with WindDbg) indicate an memory access violation occuring in AcroPDF.dll. The last four function calls in the call stack are always identical: WARNING: Stack unwind information not available. Following frames may be wrong.0019ec4c 760cd2d3 003604ec 0000001a 00000014 AcroPDF+0x11c900019ec4c 760ad30a 66211c90 003604ec 0000001a user32!_InternalCallWinProc+0x2b0019ed34 760acf30 66211c90 00000000 0000001a user32!UserCallWinProcCheckWow+0x30a0019ed94 760b9f1a 01798190 00000000 0000001a user32!DispatchClientMessage+0xf0 Exception code is: c0000005 (Access violation) Typical values for ExceptionAddress and Failure Bucket are:Exception address: 66211c90 (AcroPDF+0x00011c90)Failure bucket: BAD_INSTRUCTION_PTR_c0000005_AcroPDF.dll!Unloaded What can I do to find the c
Hi,About half an hour ago, while calling the Adobe PDF Services API, I started receiving the following error during the HTML-to-PDF conversion process: 2025-04-30T08:41:44.357Z ERROR [...] Failure response code 400 encountered from backend com.adobe.pdfservices.operation.exception.ServiceApiException: description='Invalid job id present in path param'; requestTrackingId='38647953-a2ca-48a2-8e46-8d306dd55c05'; statusCode=400; errorCode=INVALID_JOB_ID The logs indicate that the asset upload and job submission completed successfully, but the error occurs when retrieving the job result.Could you please confirm if there are any known issues on the server side or changes in the API that might explain this?Thanks in advance
Hi everyone,I’m encountering a crash in Acrobat Pro DC (64-bit, version 25.1.20474.0) after closing the application when my custom plugin is loaded. The crash appears only after Acrobat exits, and I suspect it's related to improper plugin cleanup or delayed UI callbacks.Crash Details (Event Viewer):Faulting application name: Acrobat.exeFaulting module name: ntdll.dllException code: 0xc0000409 (Stack buffer overrun)Fault offset: 0x00000000000a5db0Faulting process id: 0x593CFaulting module path: C:\WINDOWS\SYSTEM32\ntdll.dllApplication path: C:\Program Files\Adobe\Acrobat DC\Acrobat\Acrobat.exe Setup:Plugin tech: C++, Acrobat SDK, wxWidgets for UI (wxDialog, wxMessageBox, etc.)Event handling: Using BEGIN_EVENT_TABLE and EVT_BUTTON macrosPlugin registration: Done via PISetupSDK, and unloading via PIUnloadSDKDebug tools used: Application Verifier, Event ViewerObservations:Crash happens only on Acrobat exit, not during active plugin usageApplication Verifier flags show “Invalid call gu
I have been tasked with converting the rendering of an output pdf document from the default (color) to instead generate pdfs in Black & White / Greyscale. We are seeing a couple issues on our end with some of the Adobe code when using the implementation in an OSGI AEM Forms context on version 6.5.18 and wanted to reach out to the community to see if anyone had been able to get either of these methods functioning to generate black and white output. //initial document creation existing code example// (templateDocument is an xdp, inXml is an xml used to fill in the template)PDFOutputOptions pdfOutputOptions = new PDFOutputOptions();pdfOutputOptions.setAcrobatVersion(AcrobatVersion.Acrobat_10);final Document doc = outputService.generatePDFOutput(templateDocument, inXml, pdfOutputOptions);File outputPdfTemp = new File("C:\\output\\output-pdf-temp.pdf");doc.copyToFile(outputPdfTemp);Document outputPdfTempDoc = new Document(Files.newInputStream(outputPdfTemp.toPath()));//try convert
Hi there,Please can someone help me.I have a method of reading doc info using this from the API reference... for (var i in this.info) console.println(i + ": "+ this.info[i]); What I'd like to do is find out if a pdf is tagged or not however, as yet I've not found the correct property.I can see 'Tagged PDF:' under Document Property, is this property available in JS ?Thanks in advance.
We will change Acrobat Pro 2020 to Acrobat Pro latest version.To use the latest version, the user to whom the license is assigned must log in and be authenticated.However, when users use Acrobat API need not log in and be authenticated.We are using Acrobat API to get transparent text, optimize files, and merge multiple files.We got all 2,3,4 pattern. we does not try 1 pattern.1. User is not authenticated, API not available.2. User is not authenticated, API available.3. User is authenticated, API not available.4. User is authenticated, API available.Why does this phenomenon occur?Please let us know what are the authentication conditions for using the API?
Since this week clients are reporting a problem opening a PDF file located on a OneDrive or SharePoint locationExample command-line Open action: "C:\Program Files\Adobe\Acrobat DC\Acrobat\Acrobat.exe" "https://tenantname.sharepoint.com/sites/475013/42232313100/Documents/0001%20Document%205%20%5BV0.11%5D%20vs%200001%20Document%205%20%5BV0.12%5D_ocr.pdf" See attached picture for how it used to work. Now we get an MSAL token error. “Sorry, but we’re having trouble signing you in.AADSTS50000: There was an error issuing a token or an issue with our sign-in service.”
Hello, I'm trying to send some information related to a pdf to an external API using a POST request, but I'm getting an error "A network connection could not be created". I can run the post request from Postman without any issues. Can you please let me know what I'm doing wrong? Thanks Code: function test(){try { var doc = this; if (!doc) {throw new Error('No active document found.'); } var docName = doc.documentFileName; app.beginPriv(); const tempFilePath = "/c/temp/tempDocument.pdf";doc.saveAs(tempFilePath);var docContent = util.readFileIntoStream(tempFilePath); app.endPriv(); if (!docContent) {throw new Error('Failed to retrieve document content as a stream.'); } var base64Stream = util.stringFromStream(docContent
Hi community, I'm trying to convert a PDF to PDF/A format using the PDFServicesSDK in C#, is there a way to do it? Thanks!
Hi, I have requirement to render PDF from XDP files. We are using for service API (com.adobe.fd.forms.api.FormsService) for redering the PDF. For securing the rendered PDF, I am using docAssurance service (com.adobe.fd.docassurance.client.api.DocAssuranceService). I am able to configure some of the secutiry settings by using Password Security. I need help to understand how to enable "Content copying for accessibility" but disabling "Content copying".I am using com.adobe.fd.encryption.client.PasswordEncryptionPermission for configuring the security. PasswordEncryptionPermission (AEM Forms API) (adobe.com) Please let me know how to enable content copying for accessibility programmatically using form Service ? Regards,Smrithi
Hey Hivemind. Working with Windows 11 Powershell. When I scan oversized files (9x12 or 11x17) and need to get them to 8.5 x 11 - i have to manually open them all, print to PDF, select shrink oversized pages, etc. Very time consuming.I'd like to set up a PowerShell script to read all the .pdf files in a folder and process them all.Normally with products, you have to load a module/library. I was looking to use AcrobatDC.AcrobatDCCom.App. (looks like that should have been used for older versions, not CC.But it's erroring.Any thoughts on how to do this?Follow up: When I do save the PDF, the print is very gray compared to the original black/white that was scanned. I don't recall this being an issue before.
public void CopyToClipboard() { try { Size s = tape.GetPrintSize(0); if ((s.Width > 0) && (s.Height > 0)) { const int margin = 20; s.Width += margin + margin; s.Height += margin + margin; Bitmap bmp = new Bitmap(s.Width, s.Height); Graphics gcs = Graphics.FromImage(bmp); gcs.FillRectangle(Brushes.White, 0, 0, s.Width, s.Height); gcs.DrawRectangle(Pens.Black, 0, 0, s.Width - 1, s.Height - 1); tape.Print(gcs, new Point(margin, margin), 0); Clipboard.SetDataObject(bmp); } } catch (Exception) { DisplayError("Error saving image to clipboard"); } } Issue while i am trying to copy a bmp object to clipboard from a windows form ,my code works perfectly fine in non-protected mode ,but fails in protected mode.
I am trying to print the pdf files using the Adobe PDF Virtual printer in windows with some options on page size and resolution and then save the document. I want to do this silently without opening the Adobe acrobat program. Can you please provide a sample C++ snippet and header files which works with Adobe SDK to cater to this requirement.Thanks in Advance.
Hi all,we want to implement a software that can automatically create pdf/ua conform pdfs out of not conform pdfs. For that we are searching for an Accessibility Checker that creates a report with all issues and their locations in the pdf itself. The desktop application Adobe Acrobat Pro is providing such kind of a feature and described that the sdk is using the same technology base. I can only find a specialized API for creating a report with "options" but this is providing only a page selection right? Can someone explain why its not possible to get an report with more detailed information such as location of the assessed issue by using the SDK/API?Do you have another suggestions then how we could extract and analyse the tagging structure and/or the extended metadata such as xmp data by using adobe acrobat APIs? Thanks a lot and best regardsStefanie Stele
I got stumped on the attached VBA code trying to pass a javascript string from VBA to Adobe. The javascript "jsobject.app.alert" message executes fine and pops up in Adobe, but the "jsobject.ExecuteJS jsScript" line does not execute and throws error message 438. ChatGPT has got me this far, but I can't seem to get past this error. I have the latest versions of Excel Pro and Adobe Acrobat DC installed and I have tried on both 32-bit and 64-bit machines. I have tested the jscript string in the Acrobat javascript console and it works fine. Any help would be appreciated. Sub AddTextToPDF()Dim acroApp As ObjectDim acroAVDoc As ObjectDim acroPDDoc As ObjectDim jsObject As ObjectDim pdfPath As StringDim jsScript As String' Path to the PDF filepdfPath = "E:\test.pdf"' Check if the PDF file existsIf Dir(pdfPath) = "" ThenMsgBox "PDF file not found: " & pdfPath, vbExclamation, "Error"Exit SubEnd If' Create an Acrobat application objectOn Error Resume NextSet acroApp = CreateObject
Is there a way, using SDK version 4.2.0, to convert a PDF document to PDF/A format?
I added a new menu item in the BasicPlugin in the latest SDK: Acrobat_DC_SDK_Windows_2021_v3\Adobe\Acrobat DC SDK\Version 1\PluginSupport\Samples\BasicPlugin. It only works in the 32bit Adobe Acrobat. Are there headers files for the 64bit Acrobat? How to add the 64-bit configuration to plugin project? Many thanks.
Hi, I am getting the below error while making a https request from my Acrobat plugin, also below is the code that is used to make the api call System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.ComponentModel.Win32Exception: No credentials are available in the security package using (var httpClient = new HttpClient(handler)){try{using var fileStream = File.OpenRead(filePath);using var requestMessage = new HttpRequestMessage(HttpMethod.Post, uri);using var content = new MultipartFormDataContent{{ new StreamContent(fileStream), "file", "test.pdf" }};requestMessage.Content = content;using var response = await httpClient.SendAsync(requestMessage);MessageBox.Show(response.StatusCode.ToString());//response.EnsureSuccessStatusCode();}catch (Exception e){MessageBox.Show(e.ToString());//throw;}}
Hi,In the code below Im trying to save a string (in this case the value "") into a custom clipboard format. Ive looked at samples using the windows c++ sdk and their code is the same as mine but in acrobat it fails when calling SetClipboardData for the custom format. GetLastError returns zero and no exceptions are thrown when debugging in visual studio but as you can see I can read and write just fine to CF_TEXT. Ive tried lots of different values for formatName to ensure they are unique ("CSV" is just the last one I tried)Any ideas why this could be or what else to try?void SetCustomClipboardData(const std::string& customMetadata) { HWND hwnd = WinAppGetModelessParent(); if (!OpenClipboard(hwnd)) { std::cerr << "Failed to open clipboard." << std::endl; } const char* formatName = "CSV"; UINT customFormat = RegisterClipboardFormatA(formatName); if (customFormat == 0) { std::cerr << "Error registering custom clipboard format." << std::en
Hi, I'm working on an Acrobat plugin that uses the PDDocSave function with the PDSaveCopy flag to save a temporary copy of an open PDF file (I use ASGetDefaultFileSys and ASFileSysGetTempPathName to get a temporary file name to pass to the function).This method works well in most cases, and sometimes it works when I have a file that has been opened from a cloud drive (like Google Drive). Sometimes this method fails when saving a copy of a Google Drive document.PDDocSave doesn't return any error codes or anything, but the temporary file never gets created. I also tried registering for the PDDocDidSave notification, and don't see any errors reported. Does anyone have any ideas how to troubleshoot this further? Thanks!
Hello,Does anyone know where I can find the best method for learning Javascript SPECIFICALLY in Adobe? The HTML tutorials do me no good because it's too much information that I don't need at this moment. I don't want help with a specific code, I want to learn to understand and do it myself.PLEASE HELP!Thanks ;0)
Hello everyone,I'm having rough time with the latest rolling updates of Acrobat as it has presented "Protected Mode" for macOS. Generally, this topic is quite well covered for Windows and our plug-in works just fine with the policy file and those few exceptions we need to make it work. However, when it comes to macOS I simply can't find anything of use in the documentation. Formally, there's page with some mentions as for how is one supposed to translate Windows registry paths to entries in .plist, but it still doesn't (a) cover all is needed, and (b) I still can't make even basic stuff working. Does anyone have any insights into the topic? For starters, I'd really appreciate any help with turning on the policy log file setup, as I'd at least see what's going on under the Acrobat's hood. Any help would be greatly appreciated,Thanks
Hi, I have developed a plugin for Acrobat and Acrobat Reader that works fine if the "Enable Protected Mode at startup" checkbox is selected.When the checkbox is NOT selected, or when it is disabled, my plugin doesn't load.Is this expected? Is there some way to get my plugin to load when Protected Mode is disabled?
Hi,I am new to Adobe SDK and I am trying out the BasicPlugin.api in my Adobe Acrobat (24.005.20320) version. I have done the following:1) Download the sample plugins code: https://opensource.adobe.com/dc-acrobat-sdk-docs/library/samples/Samples_Plug_in.html#basicplugin2) build the solution using VS 2022.3) Copied the BasicPlugin.api to C:\Program Files\Adobe\Acrobat DC\Acrobat\plug_insNow after I launched Adobe Acrobat, for the 1st time I saw an alert message indicating the basicplugin has loaded. Immediately I saw an error "Invalid plugin detected. Adobe Acrobat Reader will quit". Am I missing any steps to consume the plugin in my setup.Thanks,Rahul
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.