Acrobat SDK 9: how is AVAppOpenDialog a replaceable method in DMSIntegration sample?

When I try to replace the Open Dialog call in PluginImportReplaceAndRegister(void), the error received is: "Attempt to replace an unreplaceable selector" and indeed, it is not in the list of replaceable methods in the Core API reference. 
gcbAVAppOpenDialog = (void *)ASCallbackCreateReplacement(AVAppOpenDialogSEL, ECAVAppOpenDialog);  REPLACE(gAcroViewHFT, AVAppOpenDialogSEL, gcbAVAppOpenDialog);
However, the DMSIntegration sample replaces AVAppOpenDialog as follows:
ACCB1  ASBool   ACCB2   PluginImportReplaceAndRegister  ()
                // Create the replacement function callback(s)
                // Replace AVAppOpenDialog
                gcbAVAppOpenDialog  = ( void *)ASCallbackCreateReplacement(AVAppOpenDialogSEL, 
                REPLACE(gAcroViewHFT, AVAppOpenDialogSEL,  gcbAVAppOpenDialog);
Am I missing something or is the sample wrong?
Many thanks,

Actually, I was using using Acrobat 9 SDK with Acrobat 8.  When I tried the same code with Acrobat 9, it worked so I assume the method was added to the replaceable list in version 9.

Similar Messages

  • How to convert html to pdf using acrobat sdk 8.0?

    I am a beginner of acrobat sdk .
    I want to know How to use acrobat sdk 8.0 to convert html to pdf?
    herere some questions :
    1:How to support navigation inside PDF file that generated using acrobat sdk 8.0? For example: theres catalog in the top of HTML file, customer hopes can navigate inside the PDF file just like navigating inside the HTML file.
    2:How to support operating some controls in the PDF file that generated using acrobat sdk 8.0? For example: therere some drop down list and text box in HTML file, customer hopes can input text in the text box, click the drop down list to see available options in it just like in HTML file.
    Thanks in advance for any help and suggestion.

    I want a system to re-brand my 37 pages PDF for affiliates.
    I want a php dynamic link in the PDF online in order to personalize automatically the PDF for each affiliate. I need to change 2 links each time. The affiliate ID and the Paypal email (payment button) in page 36.
    Can you help?
    Please let me know
    Thank you
    PS My system is online and i can give you the url if it helps.

  • How can I find out the screen size of the users moniter using the Acrobat SDK?

    How can I find out the screen size of the users moniter using the Acrobat SDK? I need to know how much sreen real estate that is available on the users moniter. Is there some call that I can make from the SDK to discover the maximun X and Y coordinates?

    Currently, I am testing on multiple moniters and it is defaulting to the moniter designated as the #1 moniter. For our purposes, this is acceptable. Once the two documents have loaded, the user can move and re-size at will.

  • How to Use Acrobat SDK for Automation Using VB or Perl

    Hi Forum,
    I am a new bie, just 2 days old to acrobat and javascript, and I am basically a perl developer
    I am using Adobe Acrobat 9 Pro,
    I downloaded Acrobat SDK, but i don't know what else to do further, how to use??
    I tried to start learning SDK, but no proper documents i found to learn and start using SDK,
    Please suggest some guide or documentation for start learning Acrobat SDK (Step by Step guide)
    Here with I have created a small script to merge two pdf
    // Create a new PDF document:
    var newDoc = app.newDoc();
    // Insert doc1.pdf:
    nPage : -1,
    cPath : "/d/sathish/1.pdf",
    // Insert doc2.pdf:
    nPage : newDoc.numPages-1,
    cPath : "/d/sathish/2.pdf",
    // Save the new document:
    My code is working fine and merging properly,
    Is there any way to execute this script through commandline or using some other scripting languages like perl or through VB
    My objective is to automate the merging process without any manual intervention, I don't want to open acrobat manually to execute this javacript, i want to automate that process too,
    Please suggest me which will be very helpful to me,
    Thanks in advance
    Thanks & Regards
    Sathish V.

    It is a big SDK and to learn its features requires a lot of reading. But to start with I guess I should start with "Introduction to SDK".
    Since you want to control Acrobat from another application you should consider this under "Interapplication communication". You will be using OLE/COM.

  • How to use Acrobat sdk features in java application?

    In my project i have an requirement to make static pdf in to dynamic form  , So how can i make static PDF to dynamic one as my project platform is purely  in java . How can i make use Acrobat SDK  InterAppCommunicationSupport/ samples in my java code ?
    Thanks & Regards,
    Prashant P M.

    Hi Leonard,
    Thanks for your kind reply , I am attaching  a sample SchollForm static PDF with this post, where it consist of student details like Name ,lastName ,section etc.
    I like to convert this static PDF in to dynamic PDF means above field should be fillable ,So Using Acrobat SDK is it possible to achieve this above stuff.
    If yes then Please can you give a brief idea how to do this one using Acrobat SDK with java? .
    Thanks in Advance.
    Prashant P M.

  • How to start with Acrobat SDK on Xcode?

    I'm a newer with acrobat sdk, does anyone know how to start and give me some commend for  good books.
    Does acrobat SDK 9 support Snow Leopard and Xcode 3.2?

    OK, I installed the savage driver package and ran (as root)
    X -configure
    I took the resulting xorg, to /etc/X11 as xorg.conf.
    When I startx as a user, the laptop screen stays black.
    When I run
    I get
    unable to open display ""
    When I enable "startkde" in ~/.xinitcr, the KDED configuration dialog comes up, but in a poor resolution.
    In a way, X seems to work basically, but I suppose the resolution is at 640*480.
    At /var/log/xorg.0.log I can't find any errors (EE), just 3D warnings, which shouldn't bother.
    BUT..... it seems the X is taking mode 111 (640*480), but my 14" laptop would like 117 (1024*768).
    Can you tell me, where and how I can switch the resolution in X ? I read about the "Displaysize" in the Monitor Section, but I couldn't figure that out. The funny thing is, I have a second laptop running, with 1024*768 (vesa driver), and there is no DisplaySize in its Monitor section, but this machine is running at the correct resolution. Strange. 

  • How to determine the changes in Acrobat SDK version.

    Please let me know how to determine the changes in an Acrobat SDK version w.r.t. the previous one.

    The easier way is to read the SDK documentation : What's New for Acrobat SDK.

  • How to call GUI/Dialog in Acrobat sdk Plugin

    How to call GUI/Dialog in Acrobat sdk Plugin using VC++ here is my code
    ACCB1 void ACCB2 MyPluginCommand(void *clientData)
      HMODULE hAppInst = GetModuleHandle(NULL);
      HWND hWnd = ::CreateDialog(hAppInst, MAKEINTRESOURCE(IDD_DIALOG1), NULL, DlgProc);
      ::ShowWindow(hWnd, SW_SHOW);

    You can, with care, use Windows API calls in a plug-in. But you have to understand the process of loading resources. In particular, the calls you use try to load resources that belong to the main executable, which is Acrobat.exe. Plug-ins have their own instance handle, which is conveniently stored in gHINSTANCE. 
    In certain cases, especially modeless dialogs, there may be extra calls to make things work properly.
    You do need to know how to use the Windows API, and your sample lines seem confused, unless you intended to first display a modal dialog then open the same dialog as modeless. That's something for another forum,

  • How to install Acrobat SDK?

    Sorry for the stupid question, but I am really confused.
    I went to the Acrobat SDK website and downloaded the zip file for SDK X for windows and after unzipping I have found a folder structure with no clue where to begin.
    What do I need to install? Or should I just copy a certain dll somewhere?
    Probably there are instructions somewhere in the documentation files, but could someone point me where? I really do not know where to begin reading.
    A small overview of the folder structure (down to level 3) is as follows:
    Adobe \
         Acrobat 10 SDK \
              Version 1 \
    Thank you,

    It is a very good tip, but to be honest, the information in the Documentation folder is overwhelming.
    First of all there are two pdf files: pdf_reference.pdf (140 pages) and U3DElements.pdf (48 pages)
    Second there is a zip file which contains around 3500 html files.
    Third there is a folder called Javascript that contains 5 other pdf files (batch_sequences.pdf, js_3d_api_reference.pdf, js_api_reference.pdf, js_developer_guide.pdf, Tracker.pdf)
    What should I start reading first and how far should I read in order to be able to install the SDK?

  • How to enable forms extenstion for adobe reader using Acrobat SDK?

    Adobe acrobat GUI tool  enables PDF forms designers to extend the use of Adobe Reader and allow the end user to save the PDF form locally using the Reader.
    Is it possible to do the same kind of fuctionality at run time on the server using Acrobat SDK?.
    We are creating several PDF Form on the server, is there any way we can use Acrobat SDK to enable form's extenstions programatically on the server after the PDF is created.
    If Yes How? any code example?

    Not using the Acrobat SDK, no.
    However, Adobe sells the LiveCycle Reader Extensions Server that can be
    used on a server for exactly this purpose.

  • Acrobat SDK: How to get events and write event handlers in c#

    I am trying out to get events from a pdf doc and handle it in my c# code with the samples that come with Acrobat-SDK. 
    I am yet to understand how I can do it. I am yet to discover the class that provides me the events. All the classes currently expose methods only. It might be that I am missing something for sure.
    Can somebody help?
    My use case is:
    the user will open a pdf doc and my application (or my app can trigger opening the pdf doc)
    when the user selects some text from the pdf doc, my app should get the event
    My event can handle the selection and get the selected text.
    Put a bookmark on the selection in the pdf doc (with additional attributes)
    the pdf doc retains such bookmarks when the pdf is saved.
    bookmarks in the pdf should be available for edit.
    A different app/code should be able to parse and retrieve these bookmarks along with the additional attributes of the bookmark.
    I hope, I have not asked too much.

    There are no “event handlers” for C# in the Acrobat SDK.  You will have to “poll” for things such as selected text.
    Also, I don’t know what sort of “additional attributes” you are thinking about, but that may or may not be possible from C#.

  • How do I compress PDF files using Acrobat SDK?

    have a web service created in a .net environment that examines existing pdf files in a staging directory prior to sending them over the wire using FTP.
    Part of that process requires that I rename individual files in order to associate them with a particular batch.
    I also have a requirement to reduce the size of individual files as much as possible in order to reduce the traffic going over the line.
    So far I have managed about a 30% compression rate by using an open source library (iTextSharp).
    I  am hoping that I can get a better compression rate using the Acrobat SDK, but I need someone to show me how, hopefully with an example that I can follow.
    The following code snippet is a model I wrote that accomplishes the rename and file compression...
                const string filePrefix = "19512-";
                string[] fileArray = Directory.GetFiles(@"c:\temp");
                foreach (var pdffile in fileArray) {
                    string[] filePath = pdffile.Split('\\');
                    var newFile = filePath[0] + '\\' + filePath[1] + '\\' + filePrefix + filePath[2];               
                    var reader = new PdfReader(pdffile);
                    var stamper = new PdfStamper(reader, new FileStream(newFile, FileMode.Create), PdfWriter.VERSION_1_5);
                    int pageNum = 1;
                    for (int i = 1; i <= pageNum; i++) {
                        reader.SetPageContent(i, reader.GetPageContent(i), PdfStream.BEST_COMPRESSION);
                    stamper.Writer.CompressionLevel = PdfStream.BEST_COMPRESSION;
                    stamper.FormFlattening = true;
    Any assistance is appreciated.

    You can't use Adobe Acrobat on a server.

  • How do I work in Acrobat SDK?

    I have never worked with Acrobat SDK before.  I need to develop a plugin for Acrobat Reader 9.  Can someone please point me in the right direction and tell me what to do?
    After I have installed the SDK I want to develop a custom search plugin that will limit the search to only selected bookmarks in a PDF document.  Are there any examples of this available?
    Thanks so much!

    Welcome, Linda:
    I wish somebody would have given me this advice when I started dealing with the Acrobat SDK, a decade ago.
    (1) The SDK contains a MSVS Solution called "All". You will find plenty of examples there.
    (2) One of the projects is specially important: SnippetRunner. It contains a wealth of functions. Back in my day it was weird and I avoided it, but now it is based on Adobe Air, and is much simpler to install. After you have Air installed, just double click on the file CommonInterfaceAIR.air. With that interface you will be handling Acrobat with a soft of remote control, and testing all kinds of functions.
    (3) I had no idea that DLLs are so easy to debug. Boy, is my face red!! You probably know how to do it. (Plugins are just a DLL with a different extension)
    (4) Keep these links handy (actually, update them to your version): p.htm?&accessible=true eference/
    In addition to this Adobe site, we developers have this one:
    Best of luck

  • How to OCR  using Acrobat SDK

    Hi All,
    I am C# DotNet developer new to Acrobat Pro X SDK.
    I need to know how to achieve OCR extraction using Acrobat SDK?
    Please provide any link or samples to start with.
    I searched the web and not able to find any specific samples or documentation on how to use the SDK.
    Thanks in Advance

    Read this:

  • How to use Acrobat SDK with C# and how much is it?

    I just want to know these info because I'm new here and I can't seem to find any answers to these here in the forums and on the Documentation.

    The Acrobat SDK is free and can be downloaded from\devnet\acrobat. Please note to use the SDK you require Acrobat/Reader to be installed.
    As for using it with c#, there are a number of sample files in the SDK that can be used to learn. There is also documentation online and in the SDK.
    Hope thie helps

Maybe you are looking for

  • Iphone calendar sync to exchange is one-way, mail & contacts working

    i had a problem where i was getting nothing from the exchange server ( SBS2003 ) in my calendar... but if i added something to my iphone 3g, it would show up in outlook. my iphone 2.2.1, ipod touch 2.2.1, and dev iphone using 3.0b5 all were the same.

  • Database polling process

    I have created a bpel database polling process to process a single table and use a logical update (mark a column as processed). The table will contain many unprocessed records at any time. I have setup the polling interval 5 Sec and records unlimited

  • ABAP : string take 8 charatcers

    Hi Experts , I need your help. Actually i have started working in ABAP as welll. need to know that below is the coding being done for Screen Painter and need your help  in troubleshooting error. the Error is : "Program ZSCREENPAINTER1 "TYPE LINE" or

  • Clear variables in BEx WorkBook variable screen BI 7.0

    Hi BI Experts, I have developed some workbooks for the users to run the reports and one thing they are complaining is they have a predefined variable screen that pops up everytime they run the report. I have tried every option in the Work book settin

  • ITunes Video Error; causes iTunes to close down completely

    Since the update iTunes will play music fine, but any video attempt causes iTunes to create an error that closes the program.