Unlock the power of Acrobat SDK through our community.
Actividad reciente
Hi, We have a PDF file which has font subtypes. we need to replace all font sub types with courier new font. we are using Adobe DC sdk for .net to do it. we need to understnad how can we do that using Adobe DC sdk for .net [Question moved to the Acrobat SDK forum]
I'm trying to populate a few thousands of PDF forms with around 100 fields per file. In Python it looks like this: def createPDF(data) : import winerror from win32com.client.dynamic import Dispatch, ERRORS_BAD_CONTEXT ERRORS_BAD_CONTEXT.append(winerror.E_NOTIMPL) template = 'C:\\template.pdf' for row in data: app = Dispatch('AcroExch.App') pdfDoc = Dispatch('AcroExch.PDDoc') pdfDoc.Open(template) jso = pdfDoc.GetJSObject() jso.getField('field1').Value = row[0] #... &
I am trying to add a FreeText annotation to a PDF programmatically using JavaScript. When I try to call a function specifying the FreeText annotation directly from the menuItem, everything works as expected. When I try to call the FreeText annotation from another function, I get an error "TypeError: this.addAnnot is not a function". I am not sure what is wrong. I have included my code below. Your help is much appreciated.Code:app.addSubMenu({cName: "Tech Services", cParent: "Edit"});app.addMenuItem({cName: "Add SO Info", cParent: "Tech Services", cExec: "addSalesOrderInfo();"});function addSalesOrderInfo() { addSerialNumber(); //addSalesOrderNumber(); //addEhProjectNumber(); //addNosetype(); //addNumberOfUnits();}// add serial number textboxfunction addSerialNumber() {
I need to be able to use form fields to indicate "Page X of Y". I know there's an option to do this in the document footer, but it won't work for this process because the documents are being aggregated in another system and it needs to be able to combine docs and have the page numbering change to match. If you use Acrobat's footers, combining two three-page documents gives you a six page document with page numbers 1/3, 2/3, 3/3, 1/3, 2/3, 3/3 instead of 1/6, 2/6, etc. The question: How do I set it up so each page has a field, "PageNo", that indicates the current page number, and another field next to it, "NoPages," that contains the current number of pages in the document? These fields have to be able to update dynamically on document open as the documents are combined or split in a third party system. The main problem I've run into: Any field with the same name as another field is functionally a copy of the original field and mirrors that field's contents. So you end up with
Hello.I'm creating some forms for an inspection. But I need to create an image field that at the time of touching it redirects me to the camera of my tablet and take a photo and once the photo is taken it is inserted in the document.Could someone help me creating that javascript or someone has already done it?
Dears,I have an little problem in controlling Acrobat DC with VBA (Acess 2013).My Issue: I have an Automaticly opend .pdf Document and I need to save this at an defined location.I Have activaed the necessary Libarys in AccessMy Code:Sub SavePDf() Dim AcroApp As Acrobat.CAcroApp Dim PdDoc As Acrobat.CAcroPDDoc Dim avdoc As Acrobat.CAcroAVDoc Set AcroApp = CreateObject("AcroExch.App") Set avdoc = AcroApp.GetActiveDoc Set PdDoc = avdoc.GetPDDoc WasSaved = PdDoc.Save(PDSaveFull, "C:\Users\ND01132\Documents\Excel") End SubAt the Set PDDoc line I get the Runtime Error 91 "Object variable or Wih block not Set" but I dont have any Idea why.Thanks for your Help !Regards
Hi, so I've created a document with various handlers open/close/print/save etc. All of them are executing and the js is triggered except close document handler: The handlers were added with this dictionary: 8 0 obj<</DC 9 0 R/DP 10 0 R/DS 11 0 R/WP 12 0 R/WS 13 0 R>>endobj The JS for close looks like this: 9 0 obj<</Type /Action/S /JavaScript/JS (h = 99app.alert({cMsg: 'close PDF', cTitle: 'Testing PDF JavaScript', nIcon: 3});)>>endobj Also another interesting thing I noticed is that the scope is shared between all these handlers. If I set a variable somewhere it's visibile in all the handlers. In which case I can set variable/functions in open and call them everywhere......
Hello-I am trying to create a fill-able form in Abobe Acrobat DC that has javascript that will save it, flatten all the fields and the submit form button and then submit the form as an attachment in an email. However, I am failing to get the submit button to disable. Is there a code that can help? I also need to know where to place it in my line up of actions for the button.Thank you.
Hi there. I'm trying to rename a radio button using JS by creating a new radiobutton field. There are 3 options layed out:[ ] Option 1[ ] Option 2[ ] Option 3 I'm trying to get the coords for each option using f.rect; but it returns the same coords regardless of which option I have checked. Is there a way to do this?
Hello! I have created a PDF fillable form and want the text field "EDOAyrs" from the date they selected in "dd-mmm-yyyy" from the date object, here is my code:event.value = "";var EDOAValue = this.getField("EDOA").value;var TodayValue = this.getField(new Date()).value;var EDOAValue, TodayValue,diff;if (EDOAValue!="") {var EDOA = util.scand("dd-mmm-yyyy", EDOAValue);var today = util.scand("dd-mmm-yyy", new Date());var age = today.getTime() - EDOA.getTime();// compute age in millisecondsvar nAgeMilliseconds = today.getTime() - EDOA.getTime();var EDOAyrs = ( age / (1000 * 60 * 60 * 24 * 365.2425) - 0.005);event.value = Math.floor(EDOAyrs);} And here is the error msg:InvalidSetError: Set not possible, invalid or unknown.Event.value:1:AcroForm:EDOB:Annot1:MouseEnter:Action1MissingArgError: Missing required argument.Util.scand:4:AcroForm:EDOAyrs:Calculate===> Parameter cDate. Please help! Thanks.
Before selecting a Dropdown item, I'd like to have a text box ("Text1") display the exported value as I rollover each item in the Dropdown with the mouse. I am able to successfully do this by entering the following Custom Keystroke Script on the Dropdown's Format tab: if (!event.willCommit){this.getField("Text1").value=event.changeEx;} However, this only works when using the keyboard's up/down arrow keys to step through the Dropdown list items. So rather than using the arrow keys, is it possible to display the exported values by rolling over each item with the mouse pointer before committing to a final selection?
Hello,Im looking to be able to a security and and an expiration date to a pdf when a client downloads it (i need all of the work to happen on the "on-click" button event of the site im working on). Will the Adobe SDK allow for me to do this? I would think there would be an easier way to open the pdf > add js for expire and security > save and deliver to the client. Regards
hi, how do you use these 2 methods of the Field object , getLock & setLock? there's no example in the API reference and also couldn't find useful information on google. thanks.
Hello there ! I am trying to do something which seems quite simple, but I can't manage to make it work. I have two independant sets of checkboxes and when one of the checkbox in the first set is checked, it makes one of the checkbox in the second set visible. Here is the script I have at the moment and which works, but hides all the second set of checkboxes : var nHide = (event.target.value=="CB1")?display.visible:display.hidden; this.getField("CB2").display = nHide; I am looking for a way to hide only one of the checkboxes in the second set (and unfortunately, I can not use separate names for the second set of checkboxes). Thank you for your help.
Good morning!I wonder if anyone here can help me...I have three forms (submission) with various length, but all of them, once it has been filled, will be offering two resulution at the end of the form. These resolutions are going to open a new form (actually there are two of them), lets call it result forms.The promblem I have is this.Submission 1 has 4 pages; Submission 2 has 5 pages; Submission 3 has 3 pages.When I launch Result 1 (spawn from the last page of the submission) the field names will change accordingly to P(the number follow whichever page from it is being spawned).form name.field name.Now, on each pages I have various actiones, governed by Java Scripts, and obviousley they are not going to work because the spawn starting point is different for each pages, changing the field names. Further complicating the matter that I have a number of spawned templates inside both result forms.Is there a solution to this problem?I just hope my description of the problem is clear... 
Hello,Here is a scenario: Inside the organization we would like to use the digital signature, so we can sign the forms via dedicated signature fields that manage all workflow (which fields remain editable and which are read-only after signature). Final signature will by done by customer outside the organization and for that purpose we would like to use "Wet signature" - the function for "Sign document by typing or drawing signature". Is this even possible? How should the final signature field be set? Or should it be other field type? Thank you for your help.
Hi,our requirement is to convert files in some of the common formats like DOCX, JPG, TIFF to PDF files using Adobe Acrobat DC. For each of these files, a standard application is installed and the Windows Explorer contains a context menu entry to convert a file of one of these formats to PDF.We would like to write an application in C# that automates this process. Just pick a single existing file and create a PDF from this file.I have scanned through the Acrobat SDK documentation for the IAC / OLE interface and haven't been able to find any API entry point to get this seemingly easy task done.Can you please provide me with a hint where I can get any information about how to convert / print an existing file to PDF using a C# application?
Hi,by pressing a button and executing a script on a page within a PDF formular → how can I check if this / the current page is a page template (or not...)? Thanks a lot!mycc
We have a plugin developed with the C/C++ SDK for Acrobat.The plugin was developed some years back, but seems to have started from the BasicPlugin sample (the files are still called BasicPluginInit.cpp and BasicPlugin.cpp). The plugin is placed in the correct folder (we are running on Windows), and also "Reader enabled" as part of the build. However, Acrobat Reader DC does not load the plugin at startup (no breakpoints/logmessages are hit in any of the handshake functions). We have narrowed the problem down to the following line: client = new SimpleWeb::SocketClient<SimpleWeb::WS>("127.0.0.1:8080"); SimpleWeb is a library that seems to be used to open a websocket connection to our external app. If I comment out that line (and the code that uses the client), the plugin loads just fine, and breakpoints/log messages in handshake methods are hit. What could be the cause of the plugin not loading at all when SimleWeb is used? Ps. I can instantia
I have an Adobe Acrobat form with seven (7) text boxes that contain numeric fields formatted as currency. These are the fees for each subject in a course.Beside each fee there are two checkboxes that operate exclusively (like radio buttons). The Export Values for each of the two checkboxes are Enrol and RPL.Here's a screenshot of part of the form...The textbox field names are as follows...E101-feeE102-feeE104-feeE105-feeE107-feeF102-feeF104-feeAt the bottom of the form is another currency text field named CourseFee (highlighted blue).I need the course fee to sum the fees in the other seven text fields, but I only want to include those with the associated "Enrol" checkbox selected. If "RPL" is selected there will be no charge for that subject.The "Enrol" and "RPL" checkboxes are automatically selected in specific configurations when exclusive checkboxes A, B, or C are selected (these are on another part of the form and are working perfectly). Clicking "A" selects all "Enrol" boxes, "B"
As you can see on the photo, in printing wiindow, it appears many "save as Adobe PDF'' , dose anyone knows how to delete that?
I was wondering if it's possible to read a pdf doc like a book instead of scrolling vertically. Thanks in advance.
Quiero descargar un archivo sin que se me abra directamente y no se como hacer
Sir/Ma'am, I'm unable to see and use Bookmark option in the Adobe Acrobat Reader Pro DC. Please fix the issue and guide me as to how to access the said feature. Thanks
I have a requirement where I need to know in my c++ plugin when Acrobat loses or gains focus. Is there any notification I can register for this?
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.