Unlock the power of Acrobat SDK through our community.
Recently active
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
Hi TeamI want to get the exact location of the figure and formula from the tagged PDF. i am able to read the tagged structure from the PDF using below code, but i got struck ed to get the PDEcontainer by using PDSMCGetPDEContainer. how to obtain the pdecontainer i am i missing anything here?ASAtom kidType = PDSElementGetKidWithMCInfo(element, //The PDSElement containing the kid that is retrieved kidIndex, //The index of the kid. &nbs
Can you anyone please explain me how to delete the marked content from tagged PDF structure. Below is the sample code im trying. static void DeleteMCFromPDSElemet(PDSElement element){ASInt32 numKids = PDSElementGetNumKids(element);ASInt32 kidIndex; for (kidIndex = 0; kidIndex < numKids; ++kidIndex){PDSElement kid;PDSMCInfo mcidInfo; //Get the kid infoASAtom kidType = PDSElementGetKidWithMCInfo(element, //The PDSElement containing the kid that is retrievedkidIndex, //The index of the kid.&kid, //The kid being accessed (depending on the kid's type) or NULL.&mcidInfo,//The kid's information object or NULL.NULL, //Pointer to the kid or NULL.NULL); //The CosObj of the page containing the kid or NULL if (kidType == OBJR_K){ }else if (kidType == MC_K){// Need to delete this market content element }else if (kidType == StructElem_K){ }GetElemInfo(kid);}displayString1(buf);}
I want to create a program with the API that can run through multiple PDFs and summaries with AI with a specific prompt. Can this be done with Adobe API or do I need Adobe and Chat GPT API for example.
Any help with this please, only solution I found in the forum was to change registry entry key for distiller from 11.0 to 10.0 ....thanks
I have been using Excel macros for years, which would generate Word documents from data and then convert them to pdf with the Acrobat VBA-API. Since Adobe Reader DC has been installed last week in our company (Acrobat 11.0 and Acrobat 10.0 are also installed in the Adobe folder), this does not work any more -nothing changed from my side:Sub add_bookmarks2pdf() Dim myPdfDoc As Acrobat.CAcroPDDoc,,,, Set myPdfDoc = CreateObject("AcroExch.PDDoc")..the line Set myPdfDoc = CreateObject("AcroExch.PDDoc") now throws an error.Any option to fix this? Is it a referencing issue? I am using Acrobat ...(abrobat11/Acrobat.tlb) as a reference, but later on this points to ...reader10/..../Acrord32,dll)
I have a PDF in an HTML OBJECT container and I want to have an HTML onmouseover event send a string to the PDF's JavaScript that will show the layer specified by the string and then hide that layer on an HTML onmouseout event. So, my question is is HostContainer the object to use to do this, accept an HTML message and then pass the string to the PDF's JavaScript?
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.