Unlock the power of Acrobat SDK through our community.
Recently active
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?
Hello, I've been beating my head against Adobe's JavaScript API (JavaScript APIs — Acrobat-PDFL SDK: JavaScript Reference) trying to figure out how to do what appears to be a very rudinmentary thing, show and hide specific layers in a PDF in a browser window. I created a map in Illustrator and used layers such that each one shows a single location. When it is opened in a browser window I want my JavaScript to show a specific layer as determined by a onmouseover event. However, I cannot get any layer to show with the file open in Acrobat using the console. I have to say that the API isn't very helpful, most aren't, but I have tried a number of times with no success in getting one specific layer to display on top of the bottom layer. Here is my current code and console output: var layers = this.getOCGs(); var cnt = layers.length; cnt layers[400].name; layers[400].getIntent; layers[400].initState; layers[400].state = true; undefined undefined 477 F1 function getIntent() { [
Why won't the product work when I have already paid for it? Why does it keep sending me to a link to pay for a product that I have already paid for? Why can't I just use the product that you have sold to me?
When open a pdf file, I wanted to hide the whole button bar (where print, star, delete etc. buttons are present) with java script.Also wanting to hide the right pane where "Fill & Sign", "Edit PDF" etc options are there. I could not find any resource so far. Any help will be highly appreciated. ThanksZia
My main goal is to rename fields in a form and keep the tab order.I've read other posts about mass renaming fields and it looks like the only solution is to create a new field, copy the data from the old field (except with a new name) and then delete the old field. I was able to find a script that does this just fine. The issue I am running into is that the tab order is lost when recreating the fields. In the program that created the form I can export a txt file that contains a bunch of information, including what order the tabs should be in. I am not sure how to access that txt file so that I can start parsing the data. I read about converting the txt file to pdf and then reading the data from that, but I was having problems doing that and it isn't really ideal.
Hello, I have some question about form and editting.1. If I create and edit Text Field. The form value is saved into /V property like string with specific encoding (UTF-16, UTF-8). I would like to confirm that those values are Unicode values, not in "Text". 2. If I create Text Field and select specific font for form in Adobe, then the font is create with specific encoding. How the Adobe select encoding for specific font?For instance:If I selected this font "YuGothicUI". The Adobe creates type0 font with this encoding "UniJIS-UTF16-H".If I selected this font "Arial". The Adobe create truetype font with this encoding "WinAnsiEncoding".If I selected this font "CourierStd". The Adobe create type1 font with this encoding "WinAnsiEncoding". Thank youDavid
I have an Excel formula calculates the Unit_Price which is then multuplied by the quantity to establish a quote for printed matierial. I have been asked to create a PDF Form for orders of printed material but I have very little to no experiience with PDF Custom Calculation Script (or java). I need help with translating the formula below into Custome Calculation Script for the Unit_Price field. It is calculated on 2 variables, the Item (H26) and Quantity (I26). I was able to do a basic custom calculation based just on the item and set a single price but not able to work out how to include the second variable which is the price change based on quantity). Unfortunatley I don't know javascript at all and nothing I found anywhere was able to really assist me in the translating this Excel formula. If anyone can help or point me to a great tutorial on translating Excel to Java, I would really appreciate the assisatance. (H26) - Printed_Item (var v1 = this.getFie
Acrobat DC, version 2024.005.20320 Alright, I'm losing my mind here and I'm pretty sure I'm running into a bug with how Custom Dialogs render Images. However, I am also questioning my overall direction with this project. I would really appreciate any ideas or help! Overall problem: I have a PDF form that needs up to 13 digital signatures and then a dated stamp with/after the last signature. Attempted solution: Since the stamp is different for every location, but rarely changes, I've rebuilt the PDF to allow embedding the stamp as a button icon before distribution, then hiding the icon until the Certifying Official digitally signs the form. I've built a Custom Dialog to walk users through importing the icon and loading in the required information. This is supposed to include a preview of the imported stamp. Current problem: The 'preview' image of the imported stamp does not render correctly and is a different size from the original. The imp
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.