Unlock the power of Acrobat SDK through our community.
Actividad reciente
Is it possible to create an if/then statement where if B4 = B3+1 than display the first number and the last number with a dash in between and if not then put a dash after the number in the cell. Result I am looking for based on the below would be: 64, 114-118, 282-284, 288-290. Any help is greatly appreciated. Example:Cell B3 is 64, Cell B4 is 114 and so on.MAP 64114115116117118282283284288289290
HiI have no JS knowledge but tried this out by reading examples online + using chatgpti have a very crude JS. It is doing what i was trying to achieve, that is, to redact header and footer of all PDF i have selected. In acrobat, i created an Action, select all the files i want to redact. But when i run this script, it keeps showing this JS script and i have to keep clicking ok to run it + it keeps prompting me to "Save as" the file as PDFname_redacted.pdf. Can i seek some pointer how can i tune the script such that when i run it, i just redact the PDF i have selected without the need to keep clicking anything ? Thank you/* My Script */var qd = [[39, 813, 557, 813, 39, 757, 557, 757]]; // Quad coordinatesvar qd1 = [[38,88,559,88,38,42,559,42]]; // Quad coordinatesvar numPages = this.numPages; // Total number of pages in the PDFfor (var pgNum = 0; pgNum < numPages; pgNum++) {this.addAnnot({type: "Redact",page: pgNum,quads: qd,overlayText: "Deleted",alignment: 1, // Center alignme
I am trying to auto populate the week ending date, which is Sunday, based on the weeks work date that my tech did the work. I am new to forms and not a script wizard. Any help would be greatly appreciated.
This is what i have this far. Field Names:1 - Clock In, 2 - Lunchout, 3 - Lunchin, 4 - Clock outIf you use whole hours such as 08:00, 12:00, 13:00, 17:00 - works greatbut if you do this 08:00, 12:30, 13:00, 17:00 or 08:00, 12:00, 13:30, 17:00 - error calculating. What am I missing!!! I have been workign on this hours and cant seen to fix it. Any help would be greatly appriciated.------------------------------------------------------------------------------------------var start = this.getField("1").value; var finish = this.getField("4").value; if (start=="" || finish=="") event.value = ""; else { var lunchout = this.getField("2").value; var lunchin = this.getField("3").value; var startArr = start.split(":"); var finishArr = finish.split(":"); var hourWDiff = Math.abs(finishArr[0] - startArr[0]); var minWDiff = (Math
I am working on a PDF form and am stuck on one of my calculations. There are two fields "Desired Start Date", which is a date entered by the user. The "Desired End Date" is calculated to be one year from date entered by user. I have that figured out-- however, before the user enters a date, I would like that field to remain empty. Currently it fills in with 01/00/000. How can I get that field to not calculate unless a date is entered by the user? So far, I've tried this but can't get the field to remain blank://if field “Desired Start Date” is empty, leave “to” field blankvar myStartDate = new Date(this.getField("Desired Effective Date").value);if (((myStartDate == 0) && (getField("myStartDate").valueAsString === "")) { event.value = "";//if field “Desired Start Date” has a date entered, use the date to calculate one year from date entered.}else {this.getField("to").value = util.printd("mm/dd/yyyy", new Date(myStartDate.getFullYear()+1,myStartDate.getMonth(),myStartDate.getDate
We have developed plugins for Acrobat and Reader and are noticing the new UI experience being rolled out gradually in Acrobat. It appears the latest release does include some support for third party plugins, however currently the user would have to click 3 times to access the plugin menu before every action. Is there any information available on plans for third party plugin support in the new UI experience? For example, will it be possible to make third party plugin more accessible, for example in a toolbar rather than always having to go through the menu. We would like to understand what is coming before it shows up on client desktops. Thanks.
Is there any problem with using Visual Studio Professional 2017 to develop C++ plug-ins for Adobe Acrobat?
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
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
¿Ya tiene cuenta? Iniciar sesión
¿Aún no tienes una cuenta? Crea una cuenta
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.