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, 
                                MyAVAppOpenDialog);
                REPLACE(gAcroViewHFT, AVAppOpenDialogSEL,  gcbAVAppOpenDialog);
Am I missing something or is the sample wrong?
Many thanks,
Evan

Hello,
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.
thanks,
Evan

Similar Messages

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

    hi
    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.

    Hello,
    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
    Alex
    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?
    Thanks,
    Gregory

    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.
    Gregory

  • 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:
    newDoc.insertPages({
    nPage : -1,
    cPath : "/d/sathish/1.pdf",
    // Insert doc2.pdf:
    newDoc.insertPages({
    nPage : newDoc.numPages-1,
    cPath : "/d/sathish/2.pdf",
    // Save the new document:
    newDoc.saveAs("/d/sathish/myNewDoc.pdf");
    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?

    Hi
    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?

    Hello,
    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,conf.new to /etc/X11 as xorg.conf.
    When I startx as a user, the laptop screen stays black.
    When I run
    xdpyinfo
    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.

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

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

  • 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);
      DialogBox(hAppInst, MAKEINTRESOURCE(IDD_DIALOG1), NULL, 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?

    Hello,
    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 \
                   AccessibilitySupport
                   Documentation
                   InterAppCommunicationSupport
                   JavaScriptSupport
                   OtherSupport
                   PluginSupport
    Thank you,
    Ionel

    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 Acrobat10_0_HTMLHelp.zip 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;
                    stamper.SetFullCompression();
                    stamper.Close();
    Any assistance is appreciated.

    You can't use Adobe Acrobat on a server.

  • How do I work in Acrobat SDK?

    Hello,
    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!
    Linda

    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):
         http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/wwhelp/wwhimpl/js/html/wwhel p.htm?&accessible=true
         http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/API_References/Acrobat_API_R eference/
    In addition to this Adobe site, we developers have this one:
        http://forums.planetpdf.com/pdf-developers_forum16.html
    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
    SRR

    Read this:
    http://forums.adobe.com/thread/676594?tstart=0

  • 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.

    Hi,
    The Acrobat SDK is free and can be downloaded from http://www.adobe.com\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
    Malcolm

Maybe you are looking for

  • How to merge two resource bundle values ?

    Hi All, JDev ver : 11.1.1.7 I want to merge two resource bundle values.. How to do it ? like this #{expr ? str1 : str1 + str2} I tried like the one below and used some jstl fuctions... but no use not worked.. got some parse exception, compilation exc

  • Simple way to get a photo onto the Touch?

    Is there any way--including 3rd party app--to get a single photo, or a few pics, onto the Touch? Sometimes I just want to get something on the Touch without the bother of adding it to iPhoto or creating a dedicated folder, copying the pic to it, manu

  • Regarding FM "SELECT_OPTIONS_RESTRICT"

    Hello All, I am using the FM "SELECT_OPTIONS_RESTRICT" for restricting two tabs (For Exclusion) on the selection screen for selct-option and it is working fine. but the problem is that if i want to use this restriction for two select-options then it

  • Query selection screen not poping

    Hi BWers, I have a query, which is running correctly when I run it though RSRT. Also it run fine when I open the query in query designer and execute (it picks up the same standard web template). But when I run the same in BEx, it never pops up select

  • Why does cc app force me to update or quit - no ignore

    I have had CC since last November and on four occasions the cc cloud app required an update to continue. I don't get the choice to ignore the update like I do with the adobe applications like InDesign and Illustrator. This is causing a major annoyanc