Unlock the power of Acrobat SDK through our community.
Recently active
Hello,I created an action button that clears a form. I used the JS below that provides the user a warning before they clear the form. However, if they select "no" it still clears it. How do I fix it? Here's what I have so far: if( app.alert({cMsg: "Are you sure you want to clear this form?",cTitle: "Reset Form Warning",nIcon: 2,nType: 2}) == 4) {this.resetForm();}
I created a plugin in VisualStudio 2022 Community Edition which adds a menu to Acrobat. The menu shows OK when I deploy the debug build. However, when I deploy the release build, the menu doesn't show in Acrobat. The plugin has a unique name and there are no dependencies that I am aware of - the plugin reads some registry settings and executes an external exe based on the settings, that's all it does. Any help would be appreciated.Pete
Hi guysI am currently working on a project that requires the implementation of a read-aloud feature for PDF documents. The PDFs I'm dealing with include images with alt-text. My goal is to extract both the text and alt-text from the PDF while maintaining the correct reading order to enable the read-aloud functionality. To accomplish this, I would appreciate your guidance on the following:1. Extracting the text from the PDF while preserving the reading order that I've set using Adobe Acrobat.2. Extracting the alt-text associated with the images in the PDF, also following the correct reading order.3. Combining the extracted text and alt-text in the right order, which has been set using accessibily, to generate the content for a text-to-speech system. Regards
Hi,setting the value does not work in the "Validate" event. I have the field set correctly to richText, but even when I use event.richValue or event.target.richValue, the text still does not appear in the field. On Mouse events event.target.richValue works normally.Here is my code:// inputed in Validate span1 = {text: "Hi, There!"}; event.richValue = [span1];
I sometimes get the following error while working on pdf forms.Error while parsing the PDF Document (Invalid value for Tabs key.) Any ideas?
Hi, I coded a Javacript window with different items that fill in elements of form that is used as a stamp. Textboxes and radio buttons are working fine, however I'm struggling with retrieving the Check box informatio: Console says undefined. Here is the relevant piece of code:// Dialog Definition var oDlg = { strchkPaid: "False", initialize: function(dialog) { dialog.load ( { "chkPaid":this.strchkPaid, } ); }, commit: function(dialog) { var data = dialog.store(); this.strchkPaid= data["chkPaid"]; }, description: { name: "Refacturation", elements: [ { type: "view", elements: [ { item_id: "chkPaid", name: "Payé par carte de crédit", type: "check_box", }, ] }, ] } }; // Dialog Activation app.execDialog(oDlg) if((event.source.forReal)&&(event.source.stampName == "#EtampeTI")) { if(oDlg.strchkPaid){this.getField("chkBoxPaid").value = "Ye
Usage of Adobe for Multiple Digital signature, Verify signatures & programatically (C#) adding content to placeholdersHello All, I have a requirement where a specific template is used to create place holder for dynamic data and also place holders for digital signature. As the data is filled dynamically my system whould ask the user weather they want to sign the documnt and then the signed document to be preserved After the sceond user review he/she should be able to sign the document. After the final signature My tool should verify all the signatures are valid .Am hoping Adobe SDK is best for this implementation as it involves pdf and multiple digital signature .It would be very much helpful if smeone can get the relevent dpcuments for placeholder creation in PDF , How to digitally sign from C# program and How to verify the signatures. How this to be stored to hold the validity of signatures.
Recently Acrobat Reader was updated to 2023 ver automatically. However, this change causes trouble for "New Acrobat.acroPDDoc" at a VBA Excel module which is intended to open a PDF file and print selected pages. Before that, there are Acrobat Reader X and Acrobat Pro Xi installed under Windows 10 (64); everything worked well. The key reference Adobe Acrobat 10.0 Type Library is still there. Can anyone help? The error messages are "Run-time error '-2146959355 (80080005)'" and "No such interface supported".
Hello,I am trying to create highlight annotation for the selected text over multiple line.For example, see in the below image:This is my selected text. Now when I apply the annotation to this text, it looks like below:That means selection is getting extended while applying the annotation.Here is my code:I have usedACCB1 void ACCB2 createRequirement(char *sectionName) {AVDoc avDoc = AVAppGetActiveDoc();if (avDoc == NULL) { AVAlertNote("Please open the document first."); return;}PDDoc pdDoc = AVDocGetPDDoc(avDoc);ASFixedRect boundingRect;PDPage page = NULL;PDAnnot annot, hilightAnnot;LPCWSTR secName = convertCharArrayToLPCWSTR(sectionName);LPCWSTR arg = L"value";DWORD size = 1024;LPCWSTR filePath = convertCharArrayToLPCWSTR(iniFilePath);PDTextSelect pdtext =static_cast<PDTextSelect>(AVDocGetSelection(avDoc));char reqId[2048];char ident[2048];int numPages = PDDocGetNumPages(pdDoc);//Check if text is not selectedif (pdtext == NULL) { AVAlertNote("Please select the t
I have 2 plugins, one written in C++ which does some processing of the document and one written in JavaScript which opens a modal with textbox and a button, where the user can enter some information and press OK. Is there a way to either - 1. Store it in some default location from where the C++ plugin can read that information (or)2. Pass this information directly to the C++ plugin. This is for Adobe Acrobat Pro and not for reader.
I am trying to get the pathname of the active document in Acrobat using the following: ACCB1 std::string ACCB2 GetActiveDocumentFilename() { AVDoc activeDocument = AVAppGetActiveDoc();if (!activeDocument) {return "";}PDDoc document = AVDocGetPDDoc(activeDocument);if (!document) {return "";}ASFile file = PDDocGetFile(document);if (!file) {return "";}ASPathName filePath = ASFileAcquirePathName(file);if (!filePath) {return "";} return ASFileSysDIPathFromPath(NULL, filePath, NULL);} However, the pathname I get is (for example) /D/Documents/Testing/Test.pdf Is there a way to get a Windows-formatted path/filename? CheersPete
Hola, necesito extraer las paginas de un formulario pdf de una en una. He utilizado el comando extract en javascript, pero cuando abro el documento pdf en Acrobat Reader DC dicho comando no funciona. Cuando lo abro en Acrobat DC si funciona, pero despues de abrir los documentos no me deja grabarlos. Se pueden extraer algunas paginas de un formulario pdf abriendolo con Acrobat Reader DC?. Se pueden grabar los nuevos documentos y como?.Saludos y gracias
Vor allem die Einstellungen in der Werkzeugleiste in der rechten Spalte bleiben nicht erhalten bzw. es erscheint imm die Defaultauswahl. Auch das Intro, das nach einer (Neu)Installation erscheint, lässt sich nicht unterdrücken. Unter Windows 11 Home läuft die Sache OK, aber auf dem neuen Laptop mit Windows 11 Pro nicht mehr. Woran kann das liegen? [Email address removed]
0down votefavoriteI was reading from a forum thread: https://forums.adobe.com/thread/604177 and started experimenting with it. But I think the function didn't load at all. I wasn't sure what might the reason be behind it - I reckon it has to be simple and probably related to the library. Can someone help point out why the following code failed to compile at all?(the code appeared not to have ran upon execution in immediate as none of the breakpoints triggered)The libraries I have loaded includeAcrobat DistillerAdobe Acrobat 10.0 Type LibraryAcrobat Scan 1.0 Type LibraryThe computer which this code is executed on have Acrobat Professional installed on it.Public Function GetPDF() '(FilePath As String) As Object Dim origPdf As Acrobat.AcroPDDoc Dim path1 As String MsgBox ("Start") path1 = Application.ActiveWorkbook.Path path1 = path1 & "/31700100" Set origPdf = CreateObject("AcroExch.PDDoc") If origPdf.Open(path1) Then MsgBox ("weee") End If origPdf.Close Set o
I've recently started using the SDK with the interapplication communication documentation to work with PDF files through VBA (in this case, VBA through Excel). Presently, I've been able to successfully write code that finds text on a page, sets the correct rectangle bounds around that text, and then crops the PDF to that area. However, when trying to use the Javascript "SaveAs" method, it doesn't work properly. My line of code reads:JSO.SaveAs wbpath & "\IAR YtD.png", "com.adobe.acrobat.png"Where "JSO" is the name of my Javascript Object and "wbpath" is the string variable containing the path of the excel workbook I'm working with. The result from using it changes based on if I try to export a Jpg or a Png. As a png, it returns a "write error" saying there isn't enough disc space (when there is plenty). As a jpg, it completely crashes the entire Adobe Acrobat application. What do I need to do to make saving the PDF file as an image work through VBA?
In a single pdf having >100 fields with the same dropdowns, would it work to put the dropdown in a DOC-level script and call it from each field? The choices are the same for each field. An example would be very helpful.
I don't see a property that sets transparency or a background color, but not positive that a form XObject is transparent by default (or always). Working on transparency of image inside of it and want to make sure I am not getting confused by form obscuring background when I think it is the image.
I am trying to get one of the sample plugins working on Windows 11 using Visual Studio 2022. The BasicPlugin compiles OK, but when I copy the dll into the Acrobat plugins folder, the plugin fails to load. I made no modifications to the code. Any suggestions as to what the issue could be or where I can look to see what the problem is? CheersPete
I have a PDEImage that I assign to a PDEImage with the simple call:PDEImageSetSMask(pdeImage, pdeImageMask);and then I get an error in Acrobat that says something is wrong and the page may not display correctly and the image does not show. Don't do the assignment and it is fine. But I can change my code so that I use the image mask I ceate as the image and that displays fine; it is a grayscale rendering of the same image. So it is a valid PDImage but I assume it must not meet some special requirement to be a mask. I am having trouble finding any concise information on image masks. Is there somewhere it is documented. It's another case where I am using a working sample as the basis for my code. As mentioned, my own experiemnt of just using the generated mask as teh image demonstrates that it is a properly formed PDImage. but something makes it fail when used a s a mask.
On the attached form there is some wierd rounding issues occuring that I can't figure out. Line 7 and 8 are both numbers to two decimal places. Line 9 uses the following formula:var a = this.getField("A").value;var b = this.getField("B").value;if (a !=="" || b !==""){event.value = b-a;} else {event.value ="";} value of a is 5,112,068.82value of b is 5,184,600.47 For some reason line 9 calculates to 72531.64999999944.I am having the same issues with line 10. Can someone please take a look and help me out? I attached the PDF for reference.
I already erased a pdf. file but the title still appears on my pdf. list how do I remove the title from my existing list, when I try it says file no longer available..
Hi,I have a script that creates bookmarks with "this.pageNum=10" and it works, when clicking the bookmark it jumps to that page, but when i try to "Split by Top-level bookmarks" (Orgenize pages tab) it doesn't recognize the js bookmarks...it only recognize the bookmarks created manualy with "Go to a page in this document" Action - How can i create this type of action with js?Thanks!
We have created New Dynamic stamp to ask for Customer Number through Pop up. My requirement is when users clicks cancel Button from the POP up, stamp should not gets pasted to PDF. Is there any way to delete the stamp when we click the cancel Button in the POP Up message.
Hello,I posted on Acrobat forum. But it may be better here. I created a PDF form using InDesign with a submit button. The button doesn't work when uploaded onto the website. Link is below. https://madinaacademy.org.uk/images/downloads/document1.pdf Also, when the form is downloaded, the submit button disappears. If you hover over the area where the button is, the pointer changes to a hand but still the button doesn't work. See image below.
Hello I am new to using Adobe products instead of receiving them from agencies for signature. I have been approached to retype PDFs to Word documents from overseas. Do you think they really asking me to convert PDFs to Word? I have downloaded Adobe Acrobat but wanted to know if I need any other APPs to complete the process? I have not received the docs yet but wanted to be ahead. Any tips?
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.