Questions
Recently active
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
I have a pdf document with freetext annotations, when I view the pdf using embed api the annotations aren't visible first. But when I see the comments section, annotations are loaded in the document. Then when I interact with the annotation (drag or resize) then it gets displayed. Can anyone help me solve this issue?
I have 3 reagents with different expiry dates and I need to assign the earliest expiry date among the 3 for the final product. I am using Acrobat Pro and any help is greatly appreciated. Thanks!Below is the image of the Date fields of the three reagents Below is the text field of the expiry of my final product
Hi, I'm new to adobe acrobat interactive PDFs but there are so many helpful posts here that have got me a long way! I currently have a number of checkboxes for different courses (eg. Course1, Course2) which check proficiencies in a list:- Course1 checkbox: ticks proficiencies M1.1, M1.2, M1.4- Course2 checkbox: ticks proficiencies M1.1, M1.6, M1.7 Currently if someone unchecks Course1, this will uncheck box 1.1 even if Course2 is still checked. Is there a way to prevent this? I'm just using this code in Course1 checkbox on MouseUp:this.getField("M1.1").value = event.target.value;this.getField("M1.2").value = event.target.value;this.getField("M1.4").value = event.target.value; And this code in Course2 checkbox on MouseUp:this.getField("M1.1").value = event.target.value;this.getField("M1.6").value = event.target.value;this.getField("M1.7").value = event.target.value; Thanks in advance!Lucy
I have a problem combining pdfs using VBA in Access. The debug print says that all of the "Open", "Insertpages" functions are "true", but the final "Save" returns "false", and when the doc is opened the inserted pages are not there. In this example there are two attachments.----Private Sub CmdPDF_Click()Dim PDFindex As IntegerDim PDFfileName As StringDim CEUCertT As RecordsetDim AttachmentAry() As StringDim DestApp As Acrobat.AcroAppDim PDDocDest As New Acrobat.AcroPDDocDim PDDocSource As New Acrobat.AcroPDDocIf Me.ChkAttach = True ThenSet DestApp = CreateObject("AcroExch.App")Set PDDocDest = CreateObject("AcroExch.PDDoc")Set PDDocSource = CreateObject("AcroExch.PDDoc")Set CEUCertT = CurrentDb.OpenRecordset("Continuing Ed")k = 0With CEUCertT.MoveLast.MoveFirstStartDate = DateValue(Me.RepPeriodStart.Value)ExpirDate = DateValue(Me.ExpDate.Value)'k = .Fields("Attachment").ValueFor i = 1 To .RecordCountCompDate = DateValue(.Fields("Completion Date"))If (CompDate > StartDate)
Hi Adobe,We are using adbe.pkcs7.detached adding signature to the PDF. whenever I open signed PDF form it will show signature is unknown with below error code asError during signature verification. Signature contains incorrect, unrecognized, corrupted or suspicious data.Support Information: SigDict /Contents illegal dataCan anyone confirm me issue w.r.t to the signature verification.With regardsRavi
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.