Unlock the power of Acrobat SDK through our community.
Recently active
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!
Hi, I'm using the below javascript in adobe form. now I want to use the same code with the LiveCycle designer form but I don't know how to modify this code for LiveCycle. can you pls help me to do it? thanks. var v1 = Number(this.getField("undefined_2").value);if (v1==0) event.value = "";else event.value = 100 - v1;
Hi everyoneI am a graphic designer, Java Script is not my best friend.I am trying to create a form where the check boxes hide / show text fields.I have very simple code (in a Java Script document, not under the checkbox) that doesn't work ... Why ?! Please help me. Thank you in advance! check2 is the name of the check boxtext2 is the name of the text field.---------------------------------------------var aaa = this.getField("check2");if (aaa.value == "Yes"){this.getField("text2").display = display.hidden;}if (aaa.value == "Off"){this.getField("text2").display = display.visible;--------------------------------------------------------------- BestMaciek
Hi, I found a piece of code on the internet, I'm trying to add a custom stamp on pdf with VBA.It's working, I mean almost. Changing the property for Rect,Contents,Author or Name I can see the effect on my pdf. The only thing is, it always uses the Draft Stamp, nothing else whatever i pass in the AP property. Any idea what i'm doing wrong? Dim gApp As Acrobat.CAcroApp Dim gPDDoc As Acrobat.CAcroPDDoc Dim jso As Object Dim stampRect(3) As Integer Dim pageRect As Object Dim annot As Object Dim props As Object Dim page As Object Set gApp = CreateObject("AcroExch.App") Set gPDDoc = CreateObject("AcroExch.PDDoc") If gPDDoc.Open("whatever.pdf") Then Set jso = gPDDoc.GetJSObject Set page = gPDDoc.AcquirePage(0) Set pageRect = page.GetSize stampRect(0) = 100 stampRect(1) = 500 stampRect(2) = 400 stampRect(3) = 500 Set annot = jso.AddAnnot Set props = anno
With a PC with the latest Intel i7, 20 cores! 128 gb ram! SSD drives!... Acrobat SDK runs like garbage.Compared to Acrobat's first release 30 years ago which ran fairly smooth and nice. WOW. What an accomplish. It's a simple text editor for crying out loud. I grew up with Amiga's late 80s 60 fps. This is a disgrace. Don't bother to reply with your... give us your specs and window version. Please. Goodbye Adobe Acrobat.
when I'm installing the adobe messages say it wil l" takes a few minute to install" and takes hours and no install
I added the demo script below to my site with my client ID and it pulls in the pdf sample file as expected (URL in red). I then added my own pfd URL and it fails to work. I get a "File preview not available, please reload to try again" error. Here's the pdf I was trying to display: https://medpower.com/s/himycasstatesubmissionfilecreation.pdfDo I have to save the source PDF files in a special way or on a special website before I can pull them in using the PDF Embed API? I don't understand why the demo URL works, but mine does not. Any help you can provide is greatly apprecaited! <div id="adobe-dc-view" style="width: 800px;"></div><p><script src="https://documentservices.adobe.com/view-sdk/viewer.js"></script><script type="text/javascript">document.addEventListener("adobe_dc_view_sdk.ready", function(){var adobeDCView = new AdobeDC.View({clientId: "XXXXXXXXXXXXXX", divId: "adobe-dc-view"});adobeDCView.previ
After an inordinate amount of research here, I thought everything was working well until... (que ominous music)... I actually used it. Not terribly surprising to y'all but hey, I'm trying. 😉Anyway, I have a number of different "Yes/No" radio buttons where, ideally, they will display/hide additional fields AND their respective text label overlays. While it "appeared" to work intially, I did not notice that the specific "Yes/No" radio buttons were turning all other overlays on or off irrespective of the varying overlay names. After attempting to research and tinker, I am now unable to get any of the overlays to turn on/off via JS only the fields leading me one again to the forum Subject Matter Experts (SMEs) offering advice and their expertise. So, once again, here I am. In my attempt to employ the KISS principle and keep the JS as clean and neat as many of the examples provided here, I have clearly missed something -- or a whole lot of everything.&nb
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.