Unlock the power of Acrobat SDK through our community.
Recently active
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...
I want to integrate a youtube video into a PDF. How do I first find out what format the video is in? Then I did tests and simply appended the ending .mp4 to the URL. The window then got an arrow and when I clicked on it, the film didn't appear, but the window turned gray. A pop-up window opened with the message "controls no". So what do I have to do to embed the video and be able to view it?
I am very new to javascript in pdf files. I have a pdf file with a button and I would like to have it clicked automatically or when the page with it is loaded or after a certain delay.I know these procedures exist in Javascript, but I did not find them in Acro-js. I cannot use methods other than Javascript. How can I do it?
I am having troubles with setting the reference to Adobe Acrobat from Excel VBA which is running on a Mac. Let me provide a bit of background:I have been programming VBA within Windows in Visual Studio, Access and Excel for a couple of decades. So I am very comfortable with both Windows and VBA. Recently, thanks to some assistance from one of the forum questions I posted, I was able to beginning writing an Excel program which interacted with the various forms I created with Adobe Acrobat Pro DC for my windows laptop to retrieve information from the form to various tabs within the Excel workbook, my first venture with Excel/Adobe interaction. I was doing all of this for a friend. Unfortunately, my friend has a Mac. So now I am trying to get this Excel workbook to work on his Mac with the loaded Office. However, I have run into a big problem with regards to the reference to Adobe Acrobat. He also has installed Adobe Acrobat Pro DC on his Mac (he has e
Hello, Good DayI have cost fields want to calculate, tried but failed, hopefully experts help me as always. I am using code:var v1 = this.getField("Text22").valueAsString;var v2 = this.getField("Text23").valueAsString;var v3 = this.getField("Text24").valueAsString;var v4 = this.getField("Text25").valueAsString;var v5 = this.getField("Text26").valueAsString;var v6 = this.getField("Text27").valueAsString;var v7 = this.getField("Text28").valueAsString;var v8 = this.getField("Total").valueAsString;if (v1=="" && v2=="" && v3=="" && v4=="" && v5=="" && v6=="" && v7=="") event.value = "";if (v1=="not applicable" && v2=="not applicable" && v3=="not applicable" && v4=="not applicable" && v5=="not applicable" && v6=="not applicable" && v7=="not applicable") event.value = "";else {var Text22 = Number(v1);var Text23 = Number(v2);var Text24 = Number(v3);var Text25 = Number(v4);var Text26 = Number(v5);var
I have two radio buttons in one group, i.e. "Yes" & "No"; overall, there are more than 40 groups. I want to change the color of the "No" field to red if "No" is selected and It should be as it is if "Yes" is selected. It should change based on the answer and reset when the form is reset.
Hi. Thanks for taking any time to review and assist.I'm creating a 24 page document for flushing multiple pallets. These pages will be needed for each pallet to be flushed that day.My fields are:Pallet/Page OnePallet1 - the first page for the first palletPart1 - for the Part Number that pallet will have boxedShopOrder1 - the shop order associated with that pallet and customer order number of that dayQuantity1 - number of boxes to that palletInitial1 - initials of the person who flushed (entered that pallet into the computer to be sent to shipping) the palletDate1 - the current date Pallet/Paget Two (and all remaining pages)Pallet2, Part2, ShopOrder2, Quantity2, Initial2, Date2These fields will all be relative to the page number they are on. Page 3 would be Pallet3 and so on.All fields except Pallet# will be slave to Page 1. Part2 will displate the part number on page two from Part1 of page 1, etc.Pallet# will increase by one for each page.Pallet1 will show a value of 01. Page two
I have two text fields Yes(Text1) and No(Text2). , two radio buttons YES and No. With a "Pass Button". So when I click on Pass the value from the "Text1" field should directly show in another text field named "Text4" and even when I change the value in "Text1" and "Text2" but do not click on "Pass" button I should get the previously entered value. I've attached the form.
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.