Unlock the power of Acrobat SDK through our community.
Recently active
Hello!The OLE Automation is technically available in Acrobat Pro 2020. But we don't quite understand if we are allowed to use OLE Automation in automatic mode in Acrobat Pro 2020 in order to start a service (automated server processing) in automatic mode from 1C on the server, which will generate and fill pdf files for our employees. Since Acrobat EULA contains a clause restricting the use of Acrobat Pro on the server: For clarification and without limitation, you must not install or access (either directly or through commands, data, or instructions) the Software: (d) as a component of a system, workflow or service accessible by more than the Permitted Number of users; or (e) for operations not initiated by an individual user (e.g., automated server processing, such as RPA or similar) unless permitted in your separate purchasing document.Do we need to register and agree to the Adobe Developer Terms of Use if we are going to use OLE Automation in Acrobat Pr
I am trying to find documentation for Adobe's Adobe Acrobat 10.0 Type VBA Library. I can view the object browser (shown below) which gets most of what I need. However there are some parameters that depend on specific string terms that I'm unable to find, such as the one below: AcroPDDoc.GetInfo("Title") 'this works AcroPDDoc.GetInfo("DateCreated") 'this doesn't and I don't know syntax. I've googled a wide variety of phrases/terms and seen links to various SDK documents. It eventually takes me to a login screen to create a project. I've seen other questions make reference but I again am asked to login or that link to a broken API page.I'm sure I'm not looking in the right spot or doing something wrong, but I can't find something straightforward like Google's App Script Documentation for Spreadsheets. If anyone can point me in the right direction, or perhaps explain what I'm doing wrong on the SDK Page, I'd be grateful. Object Browser
I followed all the necessary steps as descripted in the Plugin Apps Developer Guide document to debug a plugin into Visual C++:● Specify the Acrobat plug-ins directory under the link | output tab in the Project settings dialog box.● Specify the Acrobat or Adobe Reader executable under the executable for debug session in the Project settings dialog box.● The first time you build a plug-in, do a Rebuild All.● Set breakpoints in your source code by selecting the line and clicking the hand icon or pressing the F9 key.● After setting breakpoints, press the F5 key to have Microsoft Visual Studio launch Acrobat or Adobe Reader.However I received the following message when a press F5 key:Of course I don't have PDB file of Acrobat's executable. So what do I have to do? Other question, the plugin have a lot of callbacks, can VS handle that?Thanks,Rodrigo Gonçalves.
Is it possible to use Adobe PDF Embed offline in an application? Can anyone provide this SDK for download?
I would like a calculation of 2 date input which only gives gives me the year difference in whole year on the 2 inputs.The inputs have the format [dd-mmm-yyyy] and the script shown below also seems OK for that, but I have 2 more wishes that I would like the calculation to perform.If the inputs are only entered in the format [yyyy], it must also be able to calculate the difference throughout the year, and if one or both inputs are not of the formats [dd-mmm-yyyy] or [yyyy], the output must be blank (nothing).Please help me with what the calculation should look like to fulfill my wishes. // Custom calculate script(function () {var sStart = getField("Dato5").valueAsString;var sEnd = getField("Dato6").valueAsString;var dStart, dEnd, diff;if(sStart && sEnd) {dStart = util.scand("dd-mmm-yyyy", sStart);dEnd = util.scand("dd-mmm-yyyy", sEnd);diff = dEnd.getTime() - dStart.getTime();event.value = Math.floor(diff / 31536e6) + " år";} else {event.value = "";}})();
Hi all,can't figure out how to pass the value of a variable from the main code to a form field?In main code i have var Ndata = EditTextValue.split("+", 1) ......... this.addAnnot({page: i, type: "Stamp", rect: X1, author: "", AP: "#NewDate" }) it doesn't work...//var a = this.getField("#NewDate").value; //a.value = Ndata; this.setField("#NewDate").value = Ndata;and it doesn't work that way...var d = this.dataObjects[0]; d.setFieldValue("#NewDate", Ndata);
Hi Team,I am running "auto tag document" for PDF to convert it as accessible PDF, but as per PDF/UA standard all the "Link" tag should be nested within "Reference" tag. so i have manged to create the reference tag above the link tag by using the below code, but how brink the Link tag as child to reference tag will "PDSMCGetPDEContainer" will help to achive this process, if so how to obtain the PDSMC parameter to pass in this method, or is there is any other api is there to achive this requirment. ASInt32 numKids = PDSElementGetNumKids(element); ASInt32 kidIndex; for (kidIndex = 0; kidIndex < numKids; ++kidIndex) //for (kidIndex = numKids - 1; kidIndex >= 0; --kidIndex) { PDSElement kid; PDSMCInfo mcidInfo; ASAtom kidType = PDSElementGetKidWithMCInfo(element,kidIndex,&kid,&mcidInfo,NULL,NULL); char buf[256], title[128]; buf[0] = title[0] = '\0'; if (kidType == OBJR_K) { PDSElement parent = CosNewNull(); PDSOBJGetParent(kid, &parent); if
A colleague has created a simple Acrobat Preflight profile that produces a red error "X" if a PDF contains RGB objects. However, when she runs it on a PDF that she knows contains an RGB image, it reports that there are no problems. Despite this, when she expands the preflight report's Overview, it duly lists the presence of the RGB image, noting that it is "RGB (ICC profile)".She has sent me the preflight profile and the PDF in question, both created with Acrobat Pro XI (Windows). I can confirm that it does the same thing for me when I run the preflight check, both in Acrobat Pro XI (Windows and Mac) and even in Acrobat DC.Has anyone here seen this issue before? Could you suggest a workaround?- Alistair
Hi,I am trying to highlight form fields in a pdf if the data in the field contains an asterisk before the number, for example "*8.596" may be in the field. I have searched through multiple threads in this community and feel like maybe I am close, but it is not working. With the asterisk being a special character, I added the backspace.I am not getting an error, it is just not highlighting the field. Right now I am using this:if (event.value=="\**") event.target.fillColor = color.yellow;else event.target.fillColor = color.transparent;Any suggestions on what I am doing wrong?
Hi Is it possible to assign the Acrobat's buit-in Date format to a field via JavaScript?I tried several things but without success: this.getField("myField").setAction("Format", Date); this.getField("myField").setAction("Format", "date(fr){DD MMMM YYYY}"); Etc. Thank you
Hi Team, I'm using Acrobat Adobe Dc Samples Basic Plugin project, I enabled another submenu under Acrobat sdk. So, whenever i'm clicking that submenu the action enabled in that function i wrote code for Dialog purpose. Way One: Inside function:I wrote modal dialog code from Acrobat adobe pulgins pdf document:code:HWND CapturehWnd, hParent, hWnd;// nRetVal;HINSTANCE gHINSTANCE;CapturehWnd = GetCapture();if (CapturehWnd != NULL)ReleaseCapture();hParent = WinAppGetModalParent(AVAppGetActiveDoc());int nRetVal = DialogBoxA(gHINSTANCE, MAKEINTRESOURCE(IDD_DIALOG1), hParent,AboutDlgProc);if (CapturehWnd != NULL)SetCapture(CapturehWnd);static AVWindow sAVWin;//.....// hWnd is the window handle of the dialog box windowHWND hWnd1;sAVWin = AVWindowNewFromPlatformThing(AVWLmodal, 0, NULL,gExtensionID,0);AVAppBeginModal(sAVWin);AVAppEndModal();AVWindowDestroy(sAVWin); Way Two: Inside function: I added Dialog resource and created the class from Cdialog I used mfc code for dialog like: Mydialog obj;
I've been trying to open a PDF in Acrobat via interapplication communication, by using the .Open() method of an AVDoc object created from the .GetAVDoc() method of an App object (after using .Close() to close a document that was previously open in the same AVDoc object). However, when I attempt to do this, Acrobat produces an "access denied" message. I am able to open the document directly from Acrobat without problem, and via the .Open() method of an AVDoc object created by Dispatch("AcroExch.AVDoc"), but I want to use a menu command on a large number of documents, so I need to automatically open documents attatched to an App object. The problem occurs with all PDFs.
How could I open a FileAttachment type annot via JavaScript?I read all the annot proprieties but I don't understand which one I have to use for opening such as a double-click on the icon!!!Thanks
Hi,I have AutoCAD 2019 installed along with Adobe Acrobat Pro DC 2021, I was successful to load the PDFMAcad.arx, however when I try to create the layered pdf, I get a PDF with all layers switched on and switching them off/on does not have any impact, I like to use the PDFMacad because it gives the ability to arrange the layers under subfolders, and it is very helpful specially if your file has a lot of layers, anyone knows how to fix this issue or it is a bug on the latest PDFMacad? Unfortunately I can not share the drawing but I hope you understand the issue Thank you Noureddine
i know absolutely nothing about java so be patient with me.i have created a pdf work order that i would like to have generate a new work order number each time i open it.i dont know where to start from . i have found some script examples but i dont know how to implement or place it to have the result show where i want it on the document.any help would be greatly appreciated
Can you tell me how to edit this script to generate the new number upon printing? Currently it changes on saving and opening. var f = this.getField("Tracking Number");if (f.value=="") f.value = "0001";else f.value = util.printf("%04d", (Number(f.value)+1)); Thank you!
Hi, im very new to PDF scripting. I just want to write an automated script which can search a simple text string and replace it with an another text string in multiple PDF document. Can somebody help me on this? i do not want to do it manually for more than 300 PDF's. Atleast, 1 example of scripting will help me to build the script or anyother way to deal with it.
Hello team;I need help with a "print" instruction in my own code.In my code, I have created a tool that allows me to edit and lock my own reports pdf wit ADOBE API.but after that i can't print it and i think i put the correct function; addPermissions .... "PRINT" ...Can you help me with that? example:..... permissions.addPermission(protectPDFOptions.Permission.PRINT_LOW_QUALITY) permissions.addPermission(protectPDFOptions.Permission.EDIT_DOCUMENT_ASSEMBLY) permissions.addPermission(protectPDFOptions.Permission.COPY_CONTENT) const options = new protectPDFOptions.PasswordProtectOptions.Builder() .setOwnerPassword(config.pdf_lock_password) .setPermissions(permissions) .setEncryptionAlgorithm(protectPDFOptions.EncryptionAlgorithm.AES_256) .setContentEncryption(protectPDFOptions.ContentEncryption.ALL_CONTENT_EXCEPT_METADATA) .setContentEncryption(protectPDFOptions.ContentEncryption.ALL_CONTENT) ...... info: https:/
Please assist me? If we download the Open source Acrobat SDK and use some of the VB modules to manipulate PDF files. Is the VB EXE application subject to some sort licensing "use rules"? Can the EXE be deployed to execute on a Server so that any user using the exe can benefit from the outcome? Your guidance on this matter would be greatly apreciated.Thanks,Steve
Hello, does the adobe api have the ability to allow the measuring of areas and perimeter when loading a pdf in the web browser. We have setup and loaded the odf, but we cant figure out how to turn on the measurements menu so we can measure areas and perimeters etc. Thanks
I am trying to batch add stamps to the bottom right corner of a large number of files. The stamp only needs to include the filename (minus the file extension) and one value to be entered by the user at the start of the action. I see documentation to add the standard stamp and in the position I want, but I can't seem to get the dynamic stamp name to insert that in a batch.My ultimate goal is to add a small amount of white space to the bottom of the first page of each document, insert the stamp with the user info and filename, flatten the pdf, and scale the document back to 8.5" x 11". Is this something I'll be able to actually get to? Thanks all!
I converted a form to make it fillable, and the radio buttons work as they should mostly, but there is a display quirk that I haven't been able to figure out. When selecting the first option in any of my radio button groups, the button disappears. The other buttons in the group select and show as such, but not the first one. Once I hop out of the group, the button displays as it should. I was thinking maybe it was too close to the next button in the group and moved it away, but that didn't help. I have a hidden button that is selected by default so that the group displays without a visible selection when the form loads. The attached screenshot shows one of the groups while I am in it, and how it looks after I click out of the group.Any ideas? Craig
Hi everybody, I want to set up a form in which depending if 3 of the criteria are answered with a dropdown "Yes", a text field is filled with a corresponding color and/or text, indicating that all criteria are met (or not). Example: I have been playing around with various Javascripts I found in the forums, but none really seemed to work. Do you have any suggestions on how I could solve this? Or how I could at leaset get the answers in the dropdown to change colour depending on the selected answer? Thank you!
Hello,I am actually working with Acrobat SDK to get all images from a PDF.I experienced some troubles with the API PDDocOpen, sometimes it throw an exception "Invalid pointer read" when calling PDXlateToPDFDocEnc.I know this with because, the application calling our dll who implement Acrobat SDK create a dump when the application crash.In the callstack, we can see :This is the code part were we call PDDocOpen ://char* csInputFile ASPathName path = ASFileSysCreatePathFromDIPath(NULL, csInputFile, NULL); PDDoc pdDoc = PDDocOpen(path, NULL, NULL, true);Do you know if this is a common issue ? And if you have a workaround for this issue ?Thanks a lot for your time.
How do I use the Graphics Select tool via interapplication communication?
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.