Unlock the power of Acrobat SDK through our community.
Recently active
In one of plug-in application, I want to perform text selection and in that I want to allow user to select text as character by character (Acrobat itself will allow you to select only the characters), but sdk fucntion not allowing me to develop like that, here the text selection is always of whole words, not part ofwords. Is there a way to achieve that functionality(to selecte the desired part of the text), any SDK funciton available to set that option, please let me know.thanks,Palaksha
I am trying to find a way to automate the changing of a PDF Layer specifically called "Template" so when I run the wizard/script it sets the PDF Layer Properties for "Template" as follows: Default state: OffInitial State Visibility: Never Visable Print: Never Prints Export: Never Exports I have to do this on multiple documents so I'm hoping there is a way to automate the change in settings instead of changing them manually on each one. I still learning and was unable to find a way to get the Action Wizard to do it. Can anyone point me in the right direction?
Hi, I want this calc (percentage)in pdf form. Can someone solve,I need your help again, I tried but didnt figure out. Again hopefully experts would help me. details are below. Regards: MishiI tried this :var ir = Number(this.getField("InterestRate").value);var dp = Number(this.getField("DiscountPointsCharged").value);var pr = Number(this.getField("PerRateUndiscounted").value);if (pr <= dp) {event.value = "";} else {event.value = (pr - ir) / dp *100;}https://drive.google.com/file/d/1vZNxaXV1huh5sMavtvPZYa-khed1tRao/view?usp=share_link Formula & Details:Par Rate is defined as the interest rate that applies if no discount points are paid. This will be higher than the discounted rate.Buy Down Percent is defined as the amount of reduction to the interest rate (Par Rate minus Interest Rate) divided by Discount points, then multiplied by 100. i.e. Par rate is 3.5, discounted rate is 3% and points charged is 1.5%. (3.5-3.0) / 1.5 *100 = 33.33%.NOTE: AWS requires a 10% buy down perc
Does anyone know how to make the default value in a field be equal to another field.For example if I had a field called "Name" and I wanted that field contents to be the Default value in a field called "Name2". The idea is not having to input the value twice but leaving the possibility to change the value in field "Name2" "the default value" to another value if desired.
A few questions today; looming deadlines with a list of things I haven't had success working out of docs, samples and experimentation... I need to show a popup/tooltip when a user hovers over my annotation. the text in the annotation is a tick mark; a special character to denote something. the popyp shouldexplain what it denotes. I have a AVAnnotHandlerCursorEnterProc and AVAnnotHandlerCursorExitProc wired up and working and the the text I need is in a string in the CosOnj that I retrieve successfully. I just need to know how to display it.
Hi! Im trying to detect detect when when a user saves and or closes a PDF. Im struggeling to find a way to this with the Acrobat SDK for .NET Framework (Windows Forms). Im mearly intrested in listening to the save state, and catching when the document (not the application because of the tabs) is closed by the user or some unhandled exception, somehing like the Office Interop API. Does anyone know if this is possible, or event better, done it before and willing to share their experiamce?
The following code works perfectly in Microsoft excel VBA. How can I change it to late binding? Dim AcroPDDocNew As New Acrobat.AcroPDDoc Dim AcroPDDocAdd As New Acrobat.AcroPDDoc Dim lRet As Long lPages=0 lRet = AcroPDDocNew.Create() lRet = AcroPDDocAdd.Open("E:\Test1.pdf") lRet = AcroPDDocNew.InsertPages(lPages - 1, AcroPDDocAdd, 0, 1, True) Thank you.
When passed in a rectangle for an annotation, I want to create an appearance stream that has a point size that will mostly fill the rectangle. I calculate a smaller one that I want to fill. I have it working fine of I just use an arbitrary point size, but my first few attempts at computing it are failing.
I started with teh STAMPR sample. I use different installed fonts (windows TT) based on a configuration file. The character in teh stream shows fine, but when I insert the second one, I always get teh message that the font (message says what font) has a bad /BBox. It only shows it once and it says whichever font I used first has the issue. If I use two different fonts in the same document, it only complains about the first one. I really need to embed the font, but not once per charcter, or perhaps use an image, but that is the subject for another post...
Hello, Im making a fillable form. The user is able to sum theirs costs by entering numbers in text boxes and the total value gets into "Textbox 4". If they are a senior, I want the user to be able to use "Check Box1", and this sum will be multiplied by 0.5 in another box "Final price". If not, I want the sum to be multiplied by 0.1 and get into the box "Final price". Or is there a better way to do simple senior discounts? Much appricieated.
Hello Community,I am a beginner in developing acrobat functionalities. I have written a folder level script to make a submenu in adobe acrobat pro which when pressed makes a POST request to a dummy server. I have been able to make GET requests without no problem but for POST requests I keep getting the following error :"NotAllowedError: Security settings prevent access to this property or method" in the following code which I have taken from https://gist.github.com/randycasburn/802f278c3cfef0873dd086c34bbb9fee to make post requests. Any kind of help regarding this would be highly appreciated.Thanks.Edit : After reading some responses I have edited to make those required changes. But still, I am getting error.Here is the code: // Make HTTP POST request ajax = app.trustedFunction(function(fURL,doc) {// Create some Stream object: strObj = doc.createDataObject("myData", "This is the data"); app.beginPriv(); Net.HTTP.request({ cVerb:"POST", cURL:fURL, oRequest: strOb
I want to merge the first name, last name, and address in a pdf form, form field name is, first_name, last_name, and address_name. Please help.
I have Adobe 11 (pro).I would like to print the sticky notes of a pdf on a single page.How can I do that?NB: The comments options allow me to print sticky notes only on separate pages, which isn't what I want.Also, some javascripts allow one to create a list of all comments, including both highlighted text and sticky notes. I only want the sticky notes.
HI, will merging the pdf's using vba "insertPages" method but figures\images alternative text is removing from binder. Can any one help me how to retain alternative text of figures\images in final binder? Thank you.Lahari
I opened this document a few days ago and wrote in there with my lenovo pen. Now I get a error 'there was a problem reading this document (14)' and 'expect a dict object'. Other documents I used that they do still work. Can someone please help. I made notes in this document during a class in University and really need the things I wrote down.
I am using a font that allows embedding, which I need to do to make the document truly portabe (so people can see characters from a custom font without having it installed). I was using the code at the bottom of this message. The issue is that it is embedding the font every time I write something. I looked for fuctions to embed it once at the document level and then find and use it if there (or embed if not), but it is not at all obvious to me what those functions might be.PDSysFont sysFont = PDFindSysFont(&pdeFontAttrs, sizeof(PDEFontAttrs), 0);// Get the font attributes.PDSysFontGetAttrs(sysFont, &pdeFontAttrs, sizeof(pdeFontAttrs));// Create the PDE font from the system font.// Check the font embedding bits for preview and print, or editing.// Based on the font embedding bits, decide whether to embed or subset// the font.PDEFont pdeFont = NULL;ASUns32 fontCreateFlags;if ((pdeFontAttrs.protection & kPDEFontNoEditableEmbedding) == 0){// Editing OK. Embed the entire f
Getting 'Fatal error ' as below when generating pdf using Adobe sdk version 2.2.2 Html to pdf operationAll validations successfully done. Beginning CreatePDF operation execution 2022-12-13 16:59:48.749 [XNIO-1 task-14] ERROR c.a.e.d.m.b.s.CreatePDFFromHTML - Exception encountered while executing operation com.adobe.pdfservices.operation.exception.ServiceApiException: description ='Fatal error, Please check logs for details.'; requestTrackingId='Y6GzQ0h7Wj1e2GAdWMuBVapadrRcvtwY'; statusCode=500; errorCode=UNKNOWN at com.adobe.pdfservices.operation.pdfops.CreatePDFOperation.execute(CreatePDFOperation.java:212) at com.anthem.emep.dckr.microsvc.bbbookletservice.service.CreatePDFFromHTML.generatePdf(CreatePDFFromHTML.java:68)
I'm trying to create a field that allows you to enter numbers without dashes but displays and enters like an arbitrary mask with the following format 999-9999-9999[^a-zA-Z]{0,1}, where the last character is not required but only allows for one(1) character if entered. I have tried a mask but the last character is alluding me. I have tried 999-9999-9999X which works but requires me to enter something for that last character, if only a space. I am not very familiar with keystroke scripting and think this might be the answer, possibly with a validation script too. I could use some direction. Thanks
Long story short, I'm in the Army and have an Access database that uses VBA to populate PDF forms with data. For more info, see: https://www.access-programmers.co.uk/forums/threads/filling-adobe-forms-from-access-using-vba.315500...Trouble is, recently the Army decided to push out an Acrobat policy making it so all PDF documents are opened in Protected mode and it broke the VBA functionality. The form gets created and opened by VBA, but I don't know how to tell VBA to tell Acrobat to "Enable All Features" so it can proceed in filling the data.Is there a way for VBA to do this or open the form bypassing Protected mode?I've already tried a sleep or wait command after the form is generated and opened the form then allowing the user to click "Enable All Features" before continuing to the fill process, but that didn't work. I'm almost certain that the form opens in two seperate instances when I do that and it doesn't get enabled for the VBA's instance.
This seems somthing that should be easy, but I cannot get it to work, or maybe it just cannot be done!Bascially, I have a field which background can be red, yellow or green.I have a checkbox, that will make the color change. I want to change the color to yellow, only if the field is green. If the field is red, it will stay red.if ((this.getField("AS").value == "1") && (this.getField("Exercise").fillColor == color.green)) {this.getField("Exercise").fillColor = color.yellow;}This code doesn't change to color of the field.When I try fillColor = color.green; the color changes to yellow, even if it's red.
Hello, I'd like to implement a PDF form filler that supports text auto-sizing/shrinking. Is there a syntax for natively setting the font size to auto? I've tried: '/Helv 0 Tf'' but get quirky behaviors - the inputted text is there but it doesn't show up in screen. I'm only able to see the text after clicking into the text box in my PDF viewer. Any advice? Attached is an animated GIF of the behaviors.Thank you.
I have created a form that needs an IF Else JavaScript. The form has a field that we enter either a Y (for yes) or N (for no). Another field, Field B, looks at whether there is a Y or N in FieldA and needs to either perform a calculation (product of FieldC * FieldD) if FieldA is a Y and return the result , or return a value of 0 if FieldA is an N. Did I mention I have zero JavaScript skills? So far I have this, but I keep getting "SyntaxError: missing ) in parenthetical 3: at line 4:var nSubTotal = this.getField("PP").valueAsString;if(nSubTotal === 'Y') {event.value = ( OF INSTALLMENTS * Numb of Txble Parcels );}else if (nSubTotal === 'N') {event.value = 0;}
Here is my piece of code:{ ASFileSys fileSys = ASGetDefaultUnicodeFileSys(); ASPathName pathName = ASFileSysCreatePathName(fileSys, ASAtomFromString("WinUnicodePath"), doc.filePath, NULL);... This code is called from an external program using menu item execution:Set app = CreateObject(AcroExch.App)app.menuItemExecute("ADBE:MyCommand") My scenario is following:Launch the command: it opens the document in AcrobatClose Acrobat manually: Acrobat disappear but a process remains in the backgroundLaunch the command again: it opends the document and then crashes Acrobat outside of the plugin code Additional information: the document contains some annotations. If annotations are not present, it seems to work. Thank you in advance for your help
I bought Adobe Acrobat Pro and currently actively using Acrobat Java SDK for about 9 months. Since then I have used several API's like createpdf and mergedocuments several times in my local. Is there limit to that usage? Are the pdf pages that I create from html, docx or forms with signature limitless? If not how can I learn what is my current consuption? Thank you.
When I click "add text comment", the bottom half of the text is cut off when I start typing text, no matter the size text I choose. Then it takes some magical incantation for the text box border/ perimeter to stay 'visible' while I click on it and drag the box bigger until the entire letter is visible. How do I change the default size of the add text comment area so that when I start typing the entire letter is visible? PLUS- how do I make the text box visible so I can drag the borders & resize? I can not seem to figure it out, it just sort of stays visible after about a million clicks. Whoever made these sweeping "improvements" since about March of last year seems to want people to run away from this product as fast as they can. It WAS a fabulous product in the many years prior. Now I try to avoid it as much as possible. Sorry, but it is true...
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.