Unlock the power of Acrobat SDK through our community.
Actividad reciente
I have a form that will be submitted as a complete PDF. The form has required fields. Tried "Submit a Form" action but I cannot include specific fields from the form in the email subject. I switched to a Javascript function to submit the form; now I get the specificity of the email I desire (with field answers included in the subject line) but the required fields no longer prevent the form from being sent if they are not filled. Is there a way to get one method or the other to do both?1. Not submit form via email unless required fields are filled 2. Place specific field answers in subject of submission email mailto:email@server.com?subject=CONTENTOFSUBJECT&body=CONTENTOFBODYORvar targetEmail = "email@server.com";var subjectLine = "name" + " " + this.getField("CLINIC NAME").valueAsString + " " + this.getField("DATE").valueAsString ;var body = "CONTENT OF EMAIL";this.mailDoc({cTo: targetEmail, cSubject: subjectLine, cMsg: body})
Version of the app:Acrobat DC Pro v22.002.20191 Platform and OS version:Windows 10/11 (no other tested) Issue: Our application uses the IAC interface to draw PDF into one of our application windows using PDPage.DrawEx. IAC interface draws PDF in top-left corner of the screen. Steps to reproduce:use version 22.002.20191run the SDK sample 'StaticViewVB' or 'StaticViewVC' Expected result:The PDF page is drawn within the specified window Actual result:The PDF page is drawn in the top-left corner of the screen
Hi there, When selecting the 'All Javascripts' menu option I'm given a report on scripts attached to form elements.Is it possible to get the same report using JavaScript, maybe to an array?Thanks in advance.
I have written a custom action script to add checkbox fields to my form headers. Everything is working fine, but the checkbox fields are added to the end of the tab order. I could avoid this by performing the action prior to adding other fields, but I really like to use this action as a last step.I've looked at the Acrobat DC SDK Documentation and found the method setPageTabOrder, but that seems to apply changes to the entire page. I'm really just looking for a way to stick the added fields at the top of the order, rather than the bottom. Is this possible?Thank you!
I have a PDF form with a few drop down lists and I want to be able to validate that the person filling the form is not putting the default item. What is the javascript validation code I should be using ? For example : One of my drop down list is Location and the user can choose between all of the locations we have. I added an option that is called « Select here » that is the default item in my drop down list. Is there a javascript code that would validate that the user didn't leave the « Select here » item on ?
Hi everyone!The question is like in the title.How to create a button in Acrobat Pro to open a file which is attached to pdf?
I have used IAC Save function. Here is the code that no longer works (it was working for a long time until a week ago). The code still works on our old Acrobat XI Pro systems; it fails on Acrobat DC systems. Does anyone know what happened or how I can solve the problem?Here is the statement that fails (always returns false):pdDocTarget.Save((short)PDSaveFlags.PDSaveFull, targetFilespec) <--- always returns false now!!!Note that other function still work. For example, int ctrPagesInSource = pdDocSource.GetNumPages(); ,<--- still works
Hi to all,I need to print PDF file directly from command line; in Acrobat Reade XI I have used /h /t switches, but now it is wrong.Anyone does know the new options for Reader DC?My OS is Windows 7 32 bit with IE 11thanks
Hi,We are using the API services to generate PDF documents from our web app.With some mac users that are using previewApp, the PDF shows some gray boxes (that we couldn't reproduce in chrome visualization on Mac) or Windows users.Is there a parameter or something to configure that can solve this issue? we are exporting many images (check attachment).Can anyone help?Thanks!!cC
I am trying to write a script that will create a tool button to save the current file and then flatten it. This is a workaround to a bug in my PDF-creation routine in my CAD software. So here is the script so far: app.addToolButton({cName: "MyFlattenButton",cLabel: "Flatten",cTooltext: "Flatten all pages",cEnable: "event.rc = (app.doc != null);",cExec: "saveandflatten();"}); function saveandflatten() {// app.beginPriv();app.execMenuItem("Save");// app.endPriv();this.flattenPages();return 0;} I tried it first without the beginPriv and endPriv calls, then tried with those un-commented. Does not work. I imagine this is something simple. Basically I'm just trying to save the current file. Thanks!
Our org has a small collection of PDFs from which we pulled the timestamp metadata, to help track how old a given PDF really is... file server timestamps can change depending on when a file was last copied, moved, etc.Fair enough. But I don't understand what I'm looking at; it doesn't seem to make sense.An older PDF has a XMP metadata Create timestamp of: 2011-09-18T16:27:50-04:00But if one views this PDF's Properties within Acrobat, it gives the Create time as: 9/18/2006 3:27:50 PM (i.e., 15:27:50)Why is there a one hour difference?As I understand it, Acrobat stores timestamps with offsets that basically mean, in this example, the PDF was "created at 9/18/2011 16:27 local time, and that local time was 4 hours behind Zulu Time". (See this for a little more background on its XMP timestamps.)Okay; this sounds fine. But still,Why's it showing one hour difference between its Property popup and its own XMP data?Could it be because of Daylight Savings Time? DS
Does anyone know how to force the bookmark window to update when a bookmark is added via the plug-in interface (i.e. c/c++ interface) in Acrobat DC. I can close the PDF file and reopen it after a save and the bookmark displays and is active in the window, but in the current document session it won't update. I was hoping to find something at the AV level but there isn't anything obvious.
i need my real serial number
Hi, Can someone help please? I'm new to using the Acrobat SDK. I'm using Acrobat Pro DC.I'm using VBA in a MS Access database and have the Adobe Acrobat 10.0 Type Library loaded.The code I have pasted below runs and works as it should do: The pdf called Test02 is appended to Test01 and the modified Test01 is saved as WorksOK. The problem I have is that I would like to overwrtie the orignal Test01 file with the modified version. I've tried changing the If statement near the bottom of my code to "If Doc01.Save(PDSaveFull, "C:\temp\Test01.pdf") = False Then" but the result is False and nothing is saved.Thank you Sub PDFtest()Dim AcroApp As Acrobat.CAcroAppDim Doc01 As Acrobat.CAcroPDDocDim Doc02 As Acrobat.CAcroPDDocSet AcroApp = CreateObject("AcroExch.App")Set Doc01 = CreateObject("AcroExch.PDDoc")Set Doc02 = CreateObject("AcroExch.PDDoc")Doc01.Open ("C:\temp\Test01.pdf") 'Source fileDoc02.Open ("C:\temp\Test02.pdf") 'Destination fileIf Doc01.InsertPages(0, Doc02, 0
Sometime last week (after an update to acrobat pro dc) when i attempt to create a pdf by using [File-->Create--> From File] acrobat now wants to first upload the file to the cloud before it will make the pdf,. I really don't need to involve the cloud in this at all, i can't seem to find a way to do this without the file first uploading to the cloud. Does anyone know how i can prevent this?
No French reading voice for PDF What we are trying to do: We want to use the Read Out Loud function in Adobe Reader or Adobe Acrobat Pro to listen to a PDF in French. We are using the voice engine to verify that the words are spoken correctly. What we have tried: We have tried Read Out Loud in the following versions of Adobe: • Adobe Acrobat Pro XI • Adobe Reader Multilingual XI • Adobe Reader DC Each version reads an English document with an English voice. With a French document the document is either read with an English voice, or not at all. What is needed so that we can listen to a French document in a French voice?
Hi, I'm using Adobe to create a survey and expected to generate a list at the end. And here is the thought process: For each question, the participant is expected to answer Yes or No.When they select Yes, a textbox in the table will show up (see pic below) and the code for checkbox Q1-Yes is the followingvar fieldHide = event.target.isBoxChecked(0)?display.visible:display.hidden; this.getField("RequiredQ1").display=fieldHide; The same process should apply for No but it didn't work, here is the code for checkbox Q1-No:var fieldHide = event.target.isBoxChecked(0)?display.visible:display.hidden; this.getField("NAQ1").display=fieldHide; And I'm also thinking that instead of signing the code to each checkbox, is it possible to centralize the code to one command button(like the "Generate Requirement Checklist " in the pic)? And when the participant hit it, the text field in the table will show up. Any help on this would be appreciated
I have a form with several text fields that use the same name in order to autofill, i need to be able to set the tab order to skip fields and go directly into those fields. I have tried using the following code, but it doesn't work I'm assuming because there is more than one field with the same name. Is there a way to do this? this.getField("FieldName").setFocus();
I've been using Acrobat JavaScript for a long time to insert text fields, but I'm having a problem inserting them at the top of the page with alternative page orientations (portrait & landscape) because sometimes the landscape orientations push them off the page.I found another thread that said it the width of a landscaped page is greater than 800 points, so I tried this If/Then function, but it didn't work.for (var pageNumber = 0; pageNumber < this.numPages; pageNumber++) var aRect = this.getPageBox("Media"); var width = aRect[2] - aRect[0]; var height = aRect[1] - aRect[3]; if (width<800) // Insert the Uncontrolled Copy field into Portrait header. { var p = this.addField("stpUnc","text",pageNumber,[252,785,372,767]); p.textFont= "Arial"; p.textColor=color.red; p.textSize=12; p.alignment= "center"; p.readonly = true; this.getField('stpUnc').value = s; } else { // Insert the Uncontrolled Copy field into Landscape header. { var l = this.addField("stpUnc","text",pageNumber,[
I have three simple javascript add-ins that I have used successfully for years. I would like to add custom icons to them, but am having problems. When I use this code, I get an error saying "this.importIcon is not a function". I am a cut-and-paste Javascripter so likely I'm making a simple mistake. Could anyone tell me what it is and how to fix it? Thank you! this.importIcon("myIconCW", "/D/J/CAD Standards/Stamps/Acrobat tools/clockwise.jpg", 0);this.importIcon("myIconCCW", "/D/J/CAD Standards/Stamps/Acrobat tools/counterclockwise.jpg", 0);this.importIcon("myIconFlat", "/D/J/CAD Standards/Stamps/Acrobat tools/flatten.jpg", 0);var cwIcon = util.iconStreamFromIcon(this.getIcon("myIconCW"));var ccwIcon = util.iconStreamFromIcon(this.getIcon("myIconCCW"));var flatIcon = util.iconStreamFromIcon(this.getIcon("myIconFlat"));app.addToolButton({cName: "MyFlattenButton",cLabel: "Flatten",oIcon: flatIcon,cEnable: "event.rc = (app.doc != null);",cExec: "flattenPages();"});app.addToolButton({c
Hello, I am trying to combine three different forms we have at work into one. The only difference is some addresses and phone number information. It differs between each of our locations. I want to combine them into one, where a customer can select the location in a drop down, and text fields will appear based on their selection, which would be the correct shipping and contact information on the form. I have went through a couple different threads and tried different codes but can't seem to either make it work correctly, or I am doing the wrong thing. Thank you for any help.
I have converted a TIF Image to Text PDF document. Now I want to highlight the a specific coordinate of the TIF Image in the PDF Document because my client is using the Text PDF document for View and Text copy requirement. So please suggest if there is any feature or through which a PDF document can be highlighted similar to a TIF image (GDI+). Note: I am using a paid PDF component (patagames.pdf) in my C# .Net Application.
I need to call a REST service from my plugin. What would be the best practice to do so? I have tried to find a suitable function for this in the SDK, but I dont think there is such. Therefore I was thinking of using wininet under windows (and something similar for Mac). Is there a better way to do this?
I am trying to create a pdf form that hides default values on print, but will print entered values. Is there a way to do this through javascript?
I am wanting to automate the process of converting several web pages into pdf and then combining those PDFs into one large PDF file. Now, i think my searching skills have failed me here, because i have not been able to find any resources on how to approach this. All i have found are some really old and really vague posts about 'Acrobat SDK'. Is this something that is possible to automate in any way? I tried using the Action Wizard, however, these web pages are embedded in subdirectories and of course are filled with other files (css, js, png, etc) that make just dropping it into action wizard impossible. So, i want to approach it using python (or something similar) to interface with acrobat and automate this tedious task. Is it possible to script Acrobat in this way? Or am i stuck doing all 300 of them individually by hand? Thanks!
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.